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

Revision history [back]

Check that RViz is running and configured properly so it can display grid maps, including making sure all necessary visualization plugins for grid mapping have been enabled in RViz.

Verify that grid map data is being extracted from the rosbag file. Although you have opened and created a view in Rosbag, there's no code in Rosbag that extracts grid map data directly; to do this iteratively through messages in View mode to extract grid map data from each one individually.

Once your grid map data has been extracted from Rosbag, make sure it populates properly into your GridMap object before publishing it for visualization by RViz. Without enough data in its GridMap object (map in your code). RViz won't know what to show visually otherwise!

Verify whether the frame IDs used in your code match those expected by RViz, specifically checking that gridMap (map.setFrameId) and static transform publisher frames IDs (static_transform_publisher) use correct and consistent frame IDs.

Verify that RViz is receiving your published grid map messages by using tools such as rostopic echo or rostopic hz to verify if the grid_map topic is publishing what should be expected messages.

By considering these points, you should be able to quickly recognize and address issues related to visualizing grid maps in RViz.