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

How to create 2Dmap with p3dx with rosbag?

asked 2016-11-02 23:56:13 -0500

Dhagash Desai gravatar image

updated 2016-11-02 23:57:40 -0500

I recorded the data in rosbag file of /tf and /scan topics and when i run the gmapping and playback the recorded data from rosbag file nothing changes. And the error is 100% messages dropped.Do i have to record different topic and do i need to do something in the tf topic or not. The scan noe is created by depthimage_to_laserscan and the /scan node is working but the map is not building whats the error. I have implemented same method in gazebo and its working but with p3dx its not working. I have followed from the book programming robots with ros.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-11-03 03:03:01 -0500

mgruhler gravatar image

Did you follow the tutorial?

I guess the important line for you would be:

Make sure that use_sim_time is set to true before any nodes are started:

rosparam set use_sim_time true
edit flag offensive delete link more


yeah i have done this to and followed each and every step thats why i got the map from gazebo but when i am trying to do this p3dx on actual ground its not working. Have i made any mistake in tf orsomething

Dhagash Desai gravatar image Dhagash Desai  ( 2016-11-03 06:56:32 -0500 )edit

Question Tools

1 follower


Asked: 2016-11-02 23:56:13 -0500

Seen: 115 times

Last updated: Nov 03 '16