issue while building a map

asked 2017-01-23 08:32:32 -0500

ghaith gravatar image

updated 2017-01-24 05:58:39 -0500

hi i am trying to build a map using slam i am using arduino with ROS. i am using arduino duo and it publish imu data and encoder and subscribe to cmd vel know every thing is good all the odometer data is good but some time while building the map robot move in the map few cm to left or right more than real life sometimes he correct his position on the map and some times not. drive method is diff drive. i test the encoder if i move 1 meter there is no error at all. and imu data is correct without any error some problem occur some time is:

WARN] [WallTime: 1485180236.120524] Serial Port read returned short (expected 312 bytes, received 147 instead).
[WARN] [WallTime: 1485180236.120981] Serial Port read failure: 
[INFO] [WallTime: 1485180236.121363] Packet Failed :  Failed to read msg data
[INFO] [WallTime: 1485180236.121683] msg len is 312

this not happen all the time just some time.

but this happen alot :

scan Matching Failed, using odometry. Likelihood=-754.114
lp:-0.826714 -0.201986 -0.497758
op:-0.564566 -0.17674 -2.21354
Scan Matching Failed, using odometry. Likelihood=-4266.67
lp:-0.826714 -0.201986 -0.497758
op:-0.564566 -0.17674 -2.21354
Scan Matching Failed, using odometry. Likelihood=-4266.67

now i have question in the main launch the following line 

node pkg="tf" type="static_transform_publisher" name="base_to_kinect_broadcaster" args="-0.17 0.04 0.1975 0 0 0 \/base_link \/camera_link 100" />

now is this line is important or not ? and if its important how exactly i can adjust this parameter after args= i try to search how to adjust it and i dont know now. Is this parameter cuse the problem above or not.

for the information sometime i can build the map with relatively small error not noticeable but its not happen all the time. i need a way or solution that help for building the map without any issue like this. i use ROS indigo . thanks i hope any one can help.

edit retag flag offensive close merge delete

Comments

Could you please use the Preformatted Text button (the one with 101010 on it) to properly format console copy/pasted text (ie: the error messages and launch file snippets)? That would make things much easier to read. Thanks.

gvdhoorn gravatar image gvdhoorn  ( 2017-01-23 09:49:13 -0500 )edit

i did it thanks for the note.

ghaith gravatar image ghaith  ( 2017-01-23 15:51:45 -0500 )edit