ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
0

slam Gmapping from bag only take partial data

asked 2013-10-27 08:31:15 -0500

loppo gravatar image

updated 2013-11-18 19:12:15 -0500

tfoote gravatar image

Hi, i,ve managed to create some bags starting from some carmen log file. Now i'm trying to use those bags with for gmapping but while rosbag play doesn't show any error, gmapping get stuck at:

update frame 0
update ld=0 ad=0
Laser Pose= 0 0 0
m_count 0
Registering First Scan

so when i try to get the map file using "rosrun map_server map_saver" only a partial map file is given.

While doing this procedure with the bag given in the gmapping from logged data tutorial nothing get wrong.

one of the bags i'm trying to use is this: db.tt/BawU5lXp

Is there a way to check if the bag is suitable for what i'm doing ? what can be the problem ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-10-28 18:26:28 -0500

cognitiveRobot gravatar image

updated 2013-10-28 18:27:14 -0500

Try playing your bag as follows......

$rosparam set use_sim_time true

$rosrun tf static_transform_publisher 0 0 0 0 0 0 base_link laser 100

$rosbag play --clock <your-ros-bag.bag>

Hope it works.

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

2 followers

Stats

Asked: 2013-10-27 08:31:15 -0500

Seen: 322 times

Last updated: Oct 28 '13