Skip to content

Export ROS2 Package

## Exporting Robot Model in ROS 2 Format

In this section, we will learn how to export the robot model in ROS 2 format, we need to use the export_ros2 function. This function takes two arguments: the name of the robot and the path where you want to save the exported file. The exported file will be a URDF (Unified Robot Description Format) file that can be used by other programs such as Gazebo or ROS 2.

Webots Simulation Blocks

We can use the Control Block to control the robot's movement.

image1

image2

We getting from Webots simulation control block.

Sensor From IMU Sensor

image3

We getting from with imu sensor.

image4

Basicly getting Command

image5

Send Actuator to Robot

image6

ROS2 Package showing like this

image7

Reference