NoteFor more information, see simulation_2d_lidar_slam on GitHub.
Figure: Sample effects of simulation_2d_lidar_slam
Pipeline flow for simulation_2d_lidar_slam
Figure: Pipeline flow for simulation_2d_lidar_slam
ROS nodes used in the simulation_2d_lidar_slam pipeline
ROS topics used in the simulation_2d_lidar_slam pipeline
| ROS topic | Type | Published by |
|---|---|---|
/tracked_pose | geometry_msgs.msg.PoseStamped | cartographer_node |
/tf | tf2_msgs.msg.TFMessage | cartographer_node |
/submap_list | cartographer_ros_msgs.msg.SubmapList | cartographer_node |
/scan_matched_points2 | sensor_msgs.msg.PointCloud2 | cartographer_node |
/map | nav_msgs.msg.OccupancyGrid | cartographer_occupancy_grid_node |
Prerequisites
You have completed the following settings in Set up the environment for running sample applications (Skip the settings of Set up host docker).- Set up the device
- Set up the host computer
NoteEnsure that the board is connected to the simulation host using an Ethernet cable. Otherwise, the sample’s performance may degrade due to data transmission issues.
Set up the simulation environment
- On your host computer, complete the following actions to build the Qualcomm robotic simulation environment according to the README of QRB ROS Simulation. Ensure that the device and the host are in the same local network and can communicate with each other through ROS communication.
- Set up development environment on Ubuntu24.04 host.
- Build from source.
- Run the QRB Robot Base AMR on the host.
Run out-of-the-box 2d lidar SLAM in the simulator
Try me
Try me
1
Run the 2D lidar SLAM
In a new terminal, run the following commands.
2
Run the qrb_slam_service_request script
In a new terminal, run the following commands.
3
Start mapping
Use the keyboard to send control commands, such as 0: start mapping.

