ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

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

Comments

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
0

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

Question Tools

2 followers

Stats

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

Seen: 355 times

Last updated: Dec 12 '16