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

Getting Error while mapping with rplidar

asked 2023-03-29 01:51:17 -0600

Bhavesh Patidar gravatar image

image descriptionI am currently using ROS2 Humble and RP Lidar. I want to use SLAM with this so I am trying the Slam toolbox. So first I am doing: ros2 launch rplidar_ros rplidar.launch.py

Then in another terminal, I am doing: ros2 launch slam_toolGetbox online_async_launch.py

I don't have any urdf file, I just want to do static slam in RP lidar. I am getting the error:[async_slam_toolbox_node-1] [INFO] [1679982623.449307761] [slam_toolbox]: Message Filter dropping message: frame 'laser' at time 1679982623.312 for reason 'discarding message because the queue is full'

Please help me or guide to do SLAM. My rqt graph is also attached for more informationRQT GraphOutput

I am expecting to do slam or its related projects in which we do mapping using lidar and SLAM

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-04-21 02:23:37 -0600

kathan gravatar image

Hello, I was also facing a similar problem. Then I decided to use turtlebot 4 package SLAM and I am giving you the commands that helped me solve this problem. I hope this helps you: The first step was to Install the odometry package which isrf2o_laser_odometry The second step was to start the Lidar node using: ros2 launch rplidar_ros rplidar.launch.py The third step is to start odometry from ros2 workspace:ros2 launch rf2o_laser_odometry rf2o_laser_odometry.launch.py laser_scan_topic:=scan The fourth step is to do static transformation:

ros2 run tf2_ros static_transform_publisher 0 0 0 0 0 0 base_link laser

ros2 run tf2_ros static_transform_publisher 0 0 0 0 0 0 base_link odom

The fifth step was to start the SLAM algorithm:

ros2 launch turtlebot4_navigation slam.launch.py params:=/full/path/to/slam.yaml

The final step is to Bring up the robot:

ros2 launch turtlebot4_viz view_robot.launch.py
edit flag offensive delete link more

Question Tools

Stats

Asked: 2023-03-29 01:51:17 -0600

Seen: 357 times

Last updated: Apr 21 '23