Gmapping no map received rviz
Im following this tutorial series about making a laser scanner simulation using rviz and gmapping (https://kiranpalla.com/autonomous-navigation-ros-differential-drive-robot-simulation/creating-map-using-laser-scanner-and-gmapping/).
The laser scanning works, but trying to visualize the map that needs to be created by gmapping, results in the warning "no map received". Indeed, there are no messages published on the /map topic.
My Gmapping launch file:
<?xml version="1.0"?>
<launch>
<node name="slam_gmapping" pkg="gmapping" type="slam_gmapping">
<remap from="/scan" to="/kbot/sensor_laser/scan"/>
<param name="base_frame" value="base_footprint"/>
</node>
</launch>
The laser scanner published on /kbot/sensor_laser/scan. This is done correctly. If more information is required, I will provide it.
Asked by JasonMc on 2019-11-19 06:23:07 UTC
Comments
Gmapping requires odom. Do you have that part of the tutorial running?
Asked by billy on 2019-11-19 10:44:06 UTC
Hi,
As @billy said:
Can you post the tf tree that is generating your set up?. It is common to miss the Map -> odom -> Base footprint transform.
Asked by Weasfas on 2019-11-21 06:47:42 UTC