Ask Your Question

AMCL package with rosbag

asked 2020-02-15 15:10:49 -0500

cgarcia gravatar image


I'm new to ROS and I'm trying to use the amcl package to calculate the position of a robot with the information from a laser scan and odom that I have saved on a rosbag file. The rosbag file also contains a map (nav_msgs/OccupancyGrid message type). The problem is I'm not sure how to subscribe the amcl node to the map nor the scan. Do I have to create a publisher node first or can I take the information directly from the bag file. I hope the question is not silly. Any help is appreciated!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-02-17 14:31:26 -0500

When you play your rosbag, the information from the rosbag will be played back and published to their original topics. So as long as you have the rosbag containing the map and scan topics, you should be good to go with rosbag play ...

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



Asked: 2020-02-15 15:10:49 -0500

Seen: 248 times

Last updated: Feb 17 '20