Skip to main content
The QRB ROS Simulation package provides the simulation environment. It allows you to control the movement of QRB AMRs and get the scanning data of lidar through a ROS topic.
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 topicTypePublished by
/tracked_posegeometry_msgs.msg.PoseStampedcartographer_node
/tftf2_msgs.msg.TFMessagecartographer_node
/submap_listcartographer_ros_msgs.msg.SubmapListcartographer_node
/scan_matched_points2sensor_msgs.msg.PointCloud2cartographer_node
/mapnav_msgs.msg.OccupancyGridcartographer_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

  1. 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.
    1. Set up development environment on Ubuntu24.04 host.
    2. Build from source.
  2. Run the QRB Robot Base AMR on the host.

Run out-of-the-box 2d lidar SLAM in the simulator

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.