Project-MANAS/slam_gmapping

Message Filter dropping message: frame 'laser'

Lshenni opened this issue · 1 comments

Hi, how do i display the map in rviz? I currently have a lidar with publishes data through the topic /scan, and when I run the lidar driver, this error pops out. How do i set the parameters in rviz?

My procedure to run the code:

  1. run lidar driver : ros2 launch sllidar_ros2 view_sllidar_s2_launch.py
  2. run slam gmapping: ros2 launch slam_gmapping slam_gmapping.launch.py
  3. run fake_odom : ros2 launch fake_odom fake_odom.launch.py (could not compile this, and will figure it out later)

Terminal error when running 1 & 2:
[slam_gmapping-1] [INFO] [1693378221.572223528] [slam_gmapping]: Message Filter dropping message: frame 'laser' at time 1693378220.469 for reason 'Unknown'

Here are my settings for rviz:
image
image
image

First, in order to run fake odom, there is another way: ros2 run tf2_ros static_transform_publisher 0 0 0 0 0 0 odom base_link
Then, regarding the error, make sure you have the full transform tree: odom -> base_link -> laser
NOTE: if you name the base frame name to a name other than "base_link", the gmapping will not work and will throw some errors!
Fixed Frame should be set to "map" or "base_link"