Skip to content

gz_ros2_control-system

GitHub Official Documentation

The gz_ros2_control-system plugin integrates the ros2_control framework with the Gazebo Sim.

Internally, it instantiates Controller Manager, which loads the following controllers:

Note

Since Controller Manager is instantiated within the plugin, the explicit Node launch can be omitted.

This plugin is included in the robot's URDF/Xacro file under the <gazebo> tag in twr_description/urdf/packages/gz.xacro:

<plugin filename="gz_ros2_control-system" name="gz_ros2_control::GazeboSimROS2ControlPlugin">
    <parameters> $(find twr_control)/ros2_controllers/controller_manager/config/controller_manager.yaml </parameters>
</plugin>

To initialize Controller Manager and the controllers, this plugin reads the configuration from the specified <parameters> tag.