Robotics StackExchange | Archived questions

Publish data for Cartographer

Hi all, I'm currently using Cartographer and I have to emulate the sensors of a robot to provide data to the node. I cannot use gazebo and rviz so my I chose to use the sensor data in the Deutsches Museum bag (found in cartographer's examples). The data is provided to Cartographer by having a publisher node running the rosbag play cartographer_paper_deutsches_museum.bag command. The two nodes are running in separate containers in a K8s environment and the messages from the publisher can reach the Cartographer container.

The problem is that, when I listen to Cartographer's published topics, scanmatchedpoints2 and trackedpose are always empty, while in the submaplist topic messages get published, but the submap_list is empty.

Am I doing something terribly wrong?

Asked by texdade on 2021-09-21 05:17:23 UTC

Comments

Answers

The problem was in the files I was sourcing. Since I was running cartographer in a container, I was sourcing ros_entrypoint.sh each time. Sourcing also /catkin_ws/devel_isolated/cartographer_ros/setup.bash worked for me.

Asked by texdade on 2021-09-22 04:49:38 UTC

Comments