From: Walter Fetter Lages Date: Mon, 20 Mar 2023 01:08:57 +0000 (-0300) Subject: Add supports to ros2_control in Ignition. X-Git-Url: http://git.ece.ufrgs.br/?a=commitdiff_plain;h=bab34fc19df0309a7dacf863936fe967b577fa56;p=q2d.git Add supports to ros2_control in Ignition. --- diff --git a/q2d_bringup/config/bypass.yaml b/q2d_bringup/config/bypass.yaml index 2a7bfe6..29d9a17 100644 --- a/q2d_bringup/config/bypass.yaml +++ b/q2d_bringup/config/bypass.yaml @@ -1,10 +1,10 @@ -/shoulder_controller: +shoulder_controller: ros__parameters: joints: - shoulder_active_joint interface_name: effort -/elbow_controller: +elbow_controller: ros__parameters: joints: - elbow_active_joint diff --git a/q2d_bringup/config/computed_torque.yaml b/q2d_bringup/config/computed_torque.yaml index ebadbfd..c16f2f0 100644 --- a/q2d_bringup/config/computed_torque.yaml +++ b/q2d_bringup/config/computed_torque.yaml @@ -1,4 +1,4 @@ -/computed_torque_controller: +computed_torque_controller: ros__parameters: joints: - shoulder_active_joint diff --git a/q2d_bringup/config/group_bypass.yaml b/q2d_bringup/config/group_bypass.yaml index 8d815e0..61eef34 100644 --- a/q2d_bringup/config/group_bypass.yaml +++ b/q2d_bringup/config/group_bypass.yaml @@ -1,4 +1,4 @@ -/group_controller: +group_controller: ros__parameters: joints: - shoulder_active_joint diff --git a/q2d_bringup/config/group_pid.yaml b/q2d_bringup/config/group_pid.yaml index 8cc2bec..1bcbd0b 100644 --- a/q2d_bringup/config/group_pid.yaml +++ b/q2d_bringup/config/group_pid.yaml @@ -1,4 +1,4 @@ -/group_controller: +group_controller: ros__parameters: joints: - shoulder_active_joint diff --git a/q2d_bringup/config/pid.yaml b/q2d_bringup/config/pid.yaml index 281d110..962b7f6 100644 --- a/q2d_bringup/config/pid.yaml +++ b/q2d_bringup/config/pid.yaml @@ -1,9 +1,9 @@ -/shoulder_controller: +shoulder_controller: ros__parameters: joint: shoulder_active_joint pid: {p: 2310, i: 4640, d: 0.299} -/elbow_controller: +elbow_controller: ros__parameters: joint: elbow_active_joint pid: {p: 339, i: 851, d: 0.351} diff --git a/q2d_bringup/config/pid_plus_gravity.yaml b/q2d_bringup/config/pid_plus_gravity.yaml index 6a8e286..a0ad17a 100644 --- a/q2d_bringup/config/pid_plus_gravity.yaml +++ b/q2d_bringup/config/pid_plus_gravity.yaml @@ -1,4 +1,4 @@ -/pid_plus_gravity_controller: +pid_plus_gravity_controller: ros__parameters: joints: - shoulder_active_joint diff --git a/q2d_bringup/launch/gazebo.launch.xml b/q2d_bringup/launch/gazebo.launch.xml index 6b53402..f685019 100644 --- a/q2d_bringup/launch/gazebo.launch.xml +++ b/q2d_bringup/launch/gazebo.launch.xml @@ -23,11 +23,18 @@ + - + + + + + + + diff --git a/q2d_bringup/launch/ignition.launch.xml b/q2d_bringup/launch/ignition.launch.xml deleted file mode 100644 index d2305bd..0000000 --- a/q2d_bringup/launch/ignition.launch.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/q2d_description/launch/ignition.launch.xml b/q2d_description/launch/ignition.launch.xml index 4e39ec5..7bab226 100644 --- a/q2d_description/launch/ignition.launch.xml +++ b/q2d_description/launch/ignition.launch.xml @@ -1,7 +1,7 @@ + + gazebo_ros2_control/GazeboSystem + + + + + + ign_ros2_control/IgnitionSystem + + + -27.94 @@ -273,45 +284,22 @@ - - robot_description - robot_state_publisher - $(find q2d_description)/config/controller_manager.yaml - - - + + robot_description + robot_state_publisher + $(find q2d_description)/config/controller_manager.yaml + + + + + + robot_description + robot_state_publisher + $(find q2d_description)/config/controller_manager.yaml + + ---> + diff --git a/q2d_teleop/launch/gazebo.launch.xml b/q2d_teleop/launch/gazebo.launch.xml index aae3501..1e78fa7 100644 --- a/q2d_teleop/launch/gazebo.launch.xml +++ b/q2d_teleop/launch/gazebo.launch.xml @@ -23,15 +23,18 @@ --> + + - + + - + - + - + - +