ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

rosbag, unable to create a map

asked 2016-12-12 04:26:53 -0600

ThiemPHAM gravatar image

updated 2016-12-12 05:21:01 -0600

I have another problem that need your help,

I built a data.bag using rosbag

terminal 1: turn on rosaria

terminal 2: using keyboard to drive a robot

terminal 3: turn on hokuyo_scan

terminal 4: turn on tf between hokuyo_scan and base_link

terminal 5: rosparam use_sim_time true

termial 6: rosbag record -O data.bag /scan /tf

, but when i use rosrun gmapping slam.. and rosbag play and rosrun map_sever map_saver. I do not create a map.

Please, show me how can i fix it.

Thanks you advance in your help

edit retag flag offensive close merge delete


Replace data.bag with just file name

Gokul gravatar image Gokul  ( 2016-12-12 05:41:52 -0600 )edit

it is not a main problem, i change data.bag to data , but i still meet the same situation above

ThiemPHAM gravatar image ThiemPHAM  ( 2016-12-12 09:59:13 -0600 )edit

Can you update your question by pasting the terminal outputs after running each commands, so that it will be easy to trace the problem.

Gokul gravatar image Gokul  ( 2016-12-12 23:26:22 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-12-12 04:45:37 -0600

Gokul gravatar image

Your rosbag record command seems wrong. Your command should be like this

rosbag record -O data /scan /tf

Then try creating a map.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2016-12-12 04:26:53 -0600

Seen: 211 times

Last updated: Dec 12 '16