How can i run Google-cartographer on customized rosbag file?

asked 2017-10-05 06:49:59 -0500

Raksha Murthy gravatar image

Hello, Is there a way to run google cartographer for customized rosbag? If yes, what are the changes need to be made in the launch files? Thanks.

edit retag flag offensive close merge delete


What do you mean by "customized bagfile"? The Cartographer launch files actually just run rosbag play and Cartographer listens to the few topics it needs data from.

M@t gravatar image M@t  ( 2017-10-05 20:59:53 -0500 )edit

I mean our own Rosbag. How to run cartographer on my dataset? Please let me know the steps in detail. Thanks in advance.

Raksha Murthy gravatar image Raksha Murthy  ( 2017-10-09 00:38:28 -0500 )edit

I assume by "customized" you mean a bagfile you've collected on your robot? I can help but I'll need more information: do you want to run Cartographer in 2D or 3D? What sensors do you have? The more info you can post about your setup and sensors, the less assumptions I have to make.

M@t gravatar image M@t  ( 2017-10-09 22:09:22 -0500 )edit

Also, if you haven't done so already I highly suggest thoroughly reading the documentation. Try running the demos if you haven't already to get a feel for what the output looks like when everything is tuned and working properly.

M@t gravatar image M@t  ( 2017-10-09 22:12:00 -0500 )edit these are some of the bag files that i am running. I have already run the demos.

Raksha Murthy gravatar image Raksha Murthy  ( 2017-10-10 00:27:09 -0500 )edit

I tried running a launch and config file over your bagfiles, but there's something odd about them as I keep getting a "frame_id cannot be empty" error.

M@t gravatar image M@t  ( 2017-10-10 17:25:18 -0500 )edit

Try those launch/config files for yourself (remember to update the filepath in the launch file) and if you get the same error I did, update this ROS question and create an issue on the Cartographer issue tracker and link it back here.

M@t gravatar image M@t  ( 2017-10-10 17:27:44 -0500 )edit

Usage is:

$ roslaunch TeamHector_cartographer_2d.launch bagfilename:=/path/to/your/bagfile/bagfile.bag
M@t gravatar image M@t  ( 2017-10-10 17:28:15 -0500 )edit