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

Revision history [back]

click to hide/show revision 1
initial version

This is likely because the global frame that you have set in rviz2 is not laser_frame and you haven't defined a transform between laser_frame (the frame in which the laser scans are being published) and the global frame that you are using in rviz2. In order to visualize the scan data while using a global frame other than the sensor's frame, you must define and publish (either with a URDF file and robot_state_publisher or tf2_static_transform_publisher) the frame transform between the laser's frame and at least one other frame in your transform tree (usually base_link). Hope this helps.