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

Revision history [back]

Yes, you need to add your laser scanner to the tf tree. Otherwise, gmapping cannot process the sensor data.

There is the Universal Robot Description Format URDF for this. Check out the tutorials there is everything described.

Yes, you need to add your laser scanner to the tf tree. Otherwise, gmapping cannot process the sensor data.

There is the Universal Robot Description Format URDF for this. Check out the tutorials there is everything described.


EDIT

You need to start use robot_state_publisher to publish the transfrom base_link->scan (I would rather rename scan to laser_link or r2000_link or similar).

Then, you need to add this link name to the frame_id of the scan. This allows the tf library to handle sensor data correctly.

Yes, you need to add your laser scanner to the tf tree. Otherwise, gmapping cannot process the sensor data.

There is the Universal Robot Description Format URDF for this. Check out the tutorials there is everything described.


EDIT

You need to start use robot_state_publisher to publish the transfrom base_link->scan (I would rather rename scan to laser_link or r2000_link or similar).

Then, you need to add this link name to the frame_id of the scan. This allows the tf library to handle sensor data correctly.


EDIT2

You need to change the following line in the launch file where you start the r2000 driver from:

<param name="frame_id" value="/scan"/>

to

<param name="frame_id" value="scan_link"/>

This is how rviz determines which message comes in which frame.