Robotics StackExchange | Archived questions

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

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.

Asked by Raksha Murthy on 2017-10-05 06:49:59 UTC

Comments

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.

Asked by M@t on 2017-10-05 20:59:53 UTC

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

Asked by Raksha Murthy on 2017-10-09 00:38:28 UTC

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.

Asked by M@t on 2017-10-09 22:09:22 UTC

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.

Asked by M@t on 2017-10-09 22:12:00 UTC

https://code.google.com/archive/p/tu-darmstadt-ros-pkg/downloads these are some of the bag files that i am running. I have already run the demos.

Asked by Raksha Murthy on 2017-10-10 00:27:09 UTC

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.

Asked by M@t on 2017-10-10 17:25:18 UTC

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.

Asked by M@t on 2017-10-10 17:27:44 UTC

Usage is:

$ roslaunch TeamHector_cartographer_2d.launch bagfilename:=/path/to/your/bagfile/bagfile.bag

Asked by M@t on 2017-10-10 17:28:15 UTC

Answers