From 929bafc4cd3d4b922e2061e4b110f3a2bbecb95f Mon Sep 17 00:00:00 2001 From: rickstaa Date: Mon, 23 Aug 2021 17:55:15 +0200 Subject: [PATCH 1/4] Adds the 'transmission' arg to the 'panda_arm.urdf.xacro' file This commit gives users the ability to set the hardware_interface that is used in the panda arm joints when loading the 'panda_arm.urdf.xacro' file. --- .../robots/panda_arm.urdf.xacro | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/franka_description/robots/panda_arm.urdf.xacro b/franka_description/robots/panda_arm.urdf.xacro index 2e663d713..4589a54ad 100644 --- a/franka_description/robots/panda_arm.urdf.xacro +++ b/franka_description/robots/panda_arm.urdf.xacro @@ -1,12 +1,13 @@ - - - - - - + + + + + + + @@ -45,13 +46,13 @@ - - - - - - - + + + + + + + Date: Wed, 27 Oct 2021 18:15:46 +0200 Subject: [PATCH 2/4] Allow short transmission argument: position, velocity, or effort Automatically translate into full name, e.g. hardware_interface/PositionJointInterface --- .../robots/panda_arm.urdf.xacro | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/franka_description/robots/panda_arm.urdf.xacro b/franka_description/robots/panda_arm.urdf.xacro index 4589a54ad..9caa30b1b 100644 --- a/franka_description/robots/panda_arm.urdf.xacro +++ b/franka_description/robots/panda_arm.urdf.xacro @@ -4,10 +4,10 @@ - + + - @@ -46,13 +46,20 @@ - - - - - - - + + + + ${xacro.fatal("transmission:=" + transmission + " is not one of position, velocity, or effort")} + + + + + + + + + + Date: Wed, 27 Oct 2021 19:49:12 +0200 Subject: [PATCH 3/4] Expose transmission argument in franka_gazebo/panda.launch --- franka_description/robots/panda_arm.urdf.xacro | 11 ++++++----- franka_gazebo/launch/panda.launch | 2 ++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/franka_description/robots/panda_arm.urdf.xacro b/franka_description/robots/panda_arm.urdf.xacro index 9caa30b1b..f2a77d219 100644 --- a/franka_description/robots/panda_arm.urdf.xacro +++ b/franka_description/robots/panda_arm.urdf.xacro @@ -1,14 +1,15 @@ - - - + + + + + + - - diff --git a/franka_gazebo/launch/panda.launch b/franka_gazebo/launch/panda.launch index 8090742b5..ffd000e0b 100644 --- a/franka_gazebo/launch/panda.launch +++ b/franka_gazebo/launch/panda.launch @@ -11,6 +11,7 @@ + @@ -43,6 +44,7 @@ command="xacro $(find franka_description)/robots/panda_arm.urdf.xacro gazebo:=true hand:=$(arg use_gripper) + transmission:=$(arg transmission) arm_id:=$(arg arm_id) xyz:='$(arg x) $(arg y) $(arg z)' rpy:='$(arg roll) $(arg pitch) $(arg yaw)'"> From 1cc9431ea3705f9023bb095f08cc9e8cfa24cbd9 Mon Sep 17 00:00:00 2001 From: rickstaa Date: Thu, 25 Nov 2021 22:15:51 +0100 Subject: [PATCH 4/4] fix: fix conflict with #181 This commit fixes a unhandeled conflict that is created when both #181 and #157 are merged. --- franka_gazebo/launch/panda.launch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/franka_gazebo/launch/panda.launch b/franka_gazebo/launch/panda.launch index ffd000e0b..4be9d9e07 100644 --- a/franka_gazebo/launch/panda.launch +++ b/franka_gazebo/launch/panda.launch @@ -11,8 +11,8 @@ - +