From 623a2b9aefc0b4c159e3f87bc47ab76558715192 Mon Sep 17 00:00:00 2001 From: Walter Fetter Lages Date: Mon, 20 Mar 2023 14:43:48 -0300 Subject: [PATCH] Add support to ros2_control. --- config/controller_manager.yaml | 4 + config/gazebo.yaml | 4 + launch/gazebo.launch.xml | 1 + launch/ignition.launch.xml | 19 +-- launch/plier.launch.xml | 3 +- urdf/plier.urdf | 273 ++++++++++++++++++++++++----------------- 6 files changed, 182 insertions(+), 122 deletions(-) create mode 100644 config/controller_manager.yaml create mode 100644 config/gazebo.yaml diff --git a/config/controller_manager.yaml b/config/controller_manager.yaml new file mode 100644 index 0000000..c12730f --- /dev/null +++ b/config/controller_manager.yaml @@ -0,0 +1,4 @@ +controller_manager: + ros__parameters: + update_rate: 1000 + use_sim_time: true diff --git a/config/gazebo.yaml b/config/gazebo.yaml new file mode 100644 index 0000000..c9cdc3c --- /dev/null +++ b/config/gazebo.yaml @@ -0,0 +1,4 @@ +gazebo: + ros__parameters: + # This is the /clock update rate + publish_rate: 1000.0 diff --git a/launch/gazebo.launch.xml b/launch/gazebo.launch.xml index 3fc4fc8..7ecdb3c 100644 --- a/launch/gazebo.launch.xml +++ b/launch/gazebo.launch.xml @@ -33,6 +33,7 @@ + diff --git a/launch/ignition.launch.xml b/launch/ignition.launch.xml index 0a1ef9e..ea7cee3 100644 --- a/launch/ignition.launch.xml +++ b/launch/ignition.launch.xml @@ -1,7 +1,7 @@ + + + gazebo_ros2_control/GazeboSystem + + + + + + ign_ros2_control/IgnitionSystem + + + + + + 0.0 + 0.05 + + + + + + joint + -1.0 + + + + + + + + + + robot_description + robot_state_publisher + $(find plier_description)/config/controller_manager.yaml + + + + + + robot_description + robot_state_publisher + $(find plier_description)/config/controller_manager.yaml + + + + -- 2.12.0