From afa8120d08d3bf9992eac3d58b65eef699583c70 Mon Sep 17 00:00:00 2001 From: Zimeng Chai Date: Sun, 6 Oct 2024 16:40:35 -0400 Subject: [PATCH] fix: arm ros2 model --- .../WalliArm_V2_Block_base.ros2_control.xacro | 119 +++++++++--------- .../config/WalliArm_V2_Block_base.urdf.xacro | 5 +- .../config/ros2_controllers.yaml | 5 +- 3 files changed, 63 insertions(+), 66 deletions(-) diff --git a/walli_arm_v2_moveit_config/config/WalliArm_V2_Block_base.ros2_control.xacro b/walli_arm_v2_moveit_config/config/WalliArm_V2_Block_base.ros2_control.xacro index 48a4b0d0..04dc031b 100644 --- a/walli_arm_v2_moveit_config/config/WalliArm_V2_Block_base.ros2_control.xacro +++ b/walli_arm_v2_moveit_config/config/WalliArm_V2_Block_base.ros2_control.xacro @@ -1,64 +1,63 @@ - - + + - - - - mock_components/GenericSystem - - - - - - - ${initial_positions['base_yaw_joint']} - - - - - - - - - - ${initial_positions['upper_arm_joint']} - - - - - - - - - - ${initial_positions['fore_arm_joint']} - - - - - - - - - - ${initial_positions['ee_roll_jont']} - - - - - - - - - - ${initial_positions['ee_pitch_joint']} - - - - + + + + mock_components/GenericSystem + + + + + + ${initial_positions['base_yaw_joint']} + + + + + + + + + ${initial_positions['upper_arm_joint']} + + - - - + + + + + + + ${initial_positions['fore_arm_joint']} + + + + + + + + + + ${initial_positions['ee_roll_jont']} + + + + + + + + + + ${initial_positions['ee_pitch_joint']} + + + + + + + + \ No newline at end of file diff --git a/walli_arm_v2_moveit_config/config/WalliArm_V2_Block_base.urdf.xacro b/walli_arm_v2_moveit_config/config/WalliArm_V2_Block_base.urdf.xacro index 06ed459b..1d22a5fe 100644 --- a/walli_arm_v2_moveit_config/config/WalliArm_V2_Block_base.urdf.xacro +++ b/walli_arm_v2_moveit_config/config/WalliArm_V2_Block_base.urdf.xacro @@ -9,6 +9,7 @@ - + - + \ No newline at end of file diff --git a/walli_arm_v2_moveit_config/config/ros2_controllers.yaml b/walli_arm_v2_moveit_config/config/ros2_controllers.yaml index bd94601f..6736ba4e 100644 --- a/walli_arm_v2_moveit_config/config/ros2_controllers.yaml +++ b/walli_arm_v2_moveit_config/config/ros2_controllers.yaml @@ -1,12 +1,11 @@ # This config file is used by ros2_control controller_manager: ros__parameters: - update_rate: 100 # Hz + update_rate: 100 # Hz walli_arm_v2_block_controller: type: joint_trajectory_controller/JointTrajectoryController - joint_state_broadcaster: type: joint_state_broadcaster/JointStateBroadcaster @@ -21,8 +20,6 @@ walli_arm_v2_block_controller: command_interfaces: - position - velocity - - effort state_interfaces: - position - velocity - - effort \ No newline at end of file