diff --git a/spot_description/launch/description.launch.py b/spot_description/launch/description.launch.py index bd1ea47b5..0398d0a75 100644 --- a/spot_description/launch/description.launch.py +++ b/spot_description/launch/description.launch.py @@ -39,6 +39,12 @@ def generate_launch_description() -> launch.LaunchDescription: choices=["True", "true", "False", "false"], description="Flag to enable putting frames at the feet", ), + DeclareLaunchArgument( + name="gripperless", + default_value="False", + choices=["True", "true", "False", "false"], + description="Flag to remove the gripper from the arm model", + ), DeclareLaunchArgument( "tf_prefix", default_value='""', description="Apply namespace prefix to robot links and joints" ), @@ -56,6 +62,8 @@ def generate_launch_description() -> launch.LaunchDescription: LaunchConfiguration("arm"), " feet:=", LaunchConfiguration("feet"), + " gripperless:=", + LaunchConfiguration("gripperless"), " tf_prefix:=", LaunchConfiguration("tf_prefix"), ] diff --git a/spot_description/urdf/spot.urdf.xacro b/spot_description/urdf/spot.urdf.xacro index 5fb809923..51774251e 100644 --- a/spot_description/urdf/spot.urdf.xacro +++ b/spot_description/urdf/spot.urdf.xacro @@ -7,9 +7,18 @@ + + + + + + + + + + - @@ -24,7 +33,8 @@ + tf_prefix="$(arg tf_prefix)" + gripperless="$(arg gripperless)"/> diff --git a/spot_description/urdf/spot_arm_macro.urdf b/spot_description/urdf/spot_arm_macro.urdf index 146c9bca3..f15882bcc 100644 --- a/spot_description/urdf/spot_arm_macro.urdf +++ b/spot_description/urdf/spot_arm_macro.urdf @@ -1,7 +1,10 @@ + tf_prefix gripperless custom_gripper_base_link"> + + + @@ -201,107 +204,127 @@ upper="1.83259571459404613236" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/spot_description/urdf/spot_macro.xacro b/spot_description/urdf/spot_macro.xacro index 5f947457c..f145f1b96 100644 --- a/spot_description/urdf/spot_macro.xacro +++ b/spot_description/urdf/spot_macro.xacro @@ -4,6 +4,8 @@ @@ -417,7 +419,9 @@ - +