How ROS2 communication works

Visual Components and ROS2 exchange data using ROS2 topics. Depending on the configuration, simulation data can be published from Visual Components to ROS2 or data from ROS2 can be subscribed to and used in a Visual Components simulation.

Communication between Visual Components and the ROS2 bridge is configured using an XML configuration file. The configuration defines how Visual Components data is mapped to ROS2 topics and message types.

The following Visual Components behaviors can be used with ROS2:

  • DataPacket Signal transfers structured data containing multiple values. Data Packet Signals can be used for data such as velocity commands, odometry, IMU data, and lidar scans.
  • Wheel Drive Controller can receive velocity commands and provide simulated odometry and IMU data.
  • Lidar Sensor generates lidar scan data from the simulated environment.

These behaviors are not specific to ROS2 and can also be used independently in Visual Components.