From 20923e1b82e785ba985433111eed57508f902f32 Mon Sep 17 00:00:00 2001 From: Walter Fetter Lages Date: Thu, 16 Mar 2023 03:27:33 -0300 Subject: [PATCH] Change mimic joint actuation to gazebo_ros2_control. --- bhand_bringup/CMakeLists.txt | 12 +++++------- bhand_bringup/config/bhand_controller.yaml | 3 ++- bhand_bringup/package.xml | 6 +++--- bhand_description/xacro/bhand.urdf.xacro | 23 ++++++++++++----------- bhand_description/xacro/bhand_link3.urdf.xacro | 11 ----------- 5 files changed, 22 insertions(+), 33 deletions(-) diff --git a/bhand_bringup/CMakeLists.txt b/bhand_bringup/CMakeLists.txt index 915d2df..894ef6b 100644 --- a/bhand_bringup/CMakeLists.txt +++ b/bhand_bringup/CMakeLists.txt @@ -7,9 +7,6 @@ endif() # find dependencies find_package(ament_cmake REQUIRED) -# uncomment the following section in order to fill in -# further dependencies manually. -# find_package( REQUIRED) install(DIRECTORY config launch DESTINATION share/${PROJECT_NAME} @@ -26,11 +23,12 @@ install(PROGRAMS if(BUILD_TESTING) find_package(ament_lint_auto REQUIRED) # the following line skips the linter which checks for copyrights - # uncomment the line when a copyright and license is not present in all source files - #set(ament_cmake_copyright_FOUND TRUE) + # comment the line when a copyright and license is added to all source files + # set(ament_cmake_copyright_FOUND TRUE) # the following line skips cpplint (only works in a git repo) - # uncomment the line when this package is not in a git repo - #set(ament_cmake_cpplint_FOUND TRUE) + # comment the line when this package is in a git repo and when + # a copyright and license is added to all source files + # set(ament_cmake_cpplint_FOUND TRUE) ament_lint_auto_find_test_dependencies() endif() diff --git a/bhand_bringup/config/bhand_controller.yaml b/bhand_bringup/config/bhand_controller.yaml index ba8e211..17f9608 100644 --- a/bhand_bringup/config/bhand_controller.yaml +++ b/bhand_bringup/config/bhand_controller.yaml @@ -1,7 +1,8 @@ -/bhand_controller: +bhand_controller: ros__parameters: joints: - bhand_finger1_joint_2 - bhand_finger2_joint_2 - bhand_finger3_joint_2 - bhand_spread + diff --git a/bhand_bringup/package.xml b/bhand_bringup/package.xml index 39bf53f..5c4a7ff 100644 --- a/bhand_bringup/package.xml +++ b/bhand_bringup/package.xml @@ -2,10 +2,10 @@ bhand_bringup - 2.0.0 - Bring-up Barrett Hand + 2.1.0 + Barrett Hand bring-up Walter Fetter Lages - GPLv3 + GPL-3.0-only ament_cmake diff --git a/bhand_description/xacro/bhand.urdf.xacro b/bhand_description/xacro/bhand.urdf.xacro index c5543a5..47f8a80 100644 --- a/bhand_description/xacro/bhand.urdf.xacro +++ b/bhand_description/xacro/bhand.urdf.xacro @@ -59,17 +59,6 @@ - - - bhand_spread - bhand_spread_mimic - -1.0 - 0.0 - 30.0 - 0.0 - - - @@ -125,6 +114,9 @@ + bhand_finger1_joint_2 + ${48 / 140} + @@ -137,6 +129,9 @@ + bhand_finger2_joint_2 + ${48 / 140} + @@ -149,6 +144,9 @@ + bhand_finger3_joint_2 + ${48 / 140} + @@ -161,6 +159,9 @@ + bhand_spread + -1.0 + diff --git a/bhand_description/xacro/bhand_link3.urdf.xacro b/bhand_description/xacro/bhand_link3.urdf.xacro index 41177e3..d81cdd2 100644 --- a/bhand_description/xacro/bhand_link3.urdf.xacro +++ b/bhand_description/xacro/bhand_link3.urdf.xacro @@ -66,17 +66,6 @@ - - - bhand_${mimic_joint} - bhand_${joint} - ${48 / 140} - 0.0 - 30.0 - 0.0 - - - -- 2.12.0