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

stdr_simulatorTutorialsCreate a map with gmapping - "the right topic"?

asked 2018-01-26 14:00:48 -0500

pitosalas gravatar image

updated 2018-01-26 15:12:05 -0500

jayess gravatar image

In this tutorial: http://wiki.ros.org/stdr_simulator/Tu... in section 4 it says:

After you have subscribed to the correct topic, you should see the generated map by gmapping...

What's the "correct topic" and how do I subscribe to it in Rviz? Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-01-26 15:17:01 -0500

jayess gravatar image

You can get the correct topic in RViz by

  1. Clicking the "Add" button
  2. Clicking on the "By topic" tab in the popup
  3. Search for the topic under the /gmapping node (or whatever name you have given it) that has a message type of nav_msgs/OccupancyGrid (most likely the /map topic)
  4. Click "Ok"
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-01-26 14:00:48 -0500

Seen: 71 times

Last updated: Jan 26 '18