From 43dc42742aa470b921ec647955ef3d888c6f9850 Mon Sep 17 00:00:00 2001 From: Katie Hughes Date: Tue, 29 Oct 2024 11:33:19 -0400 Subject: [PATCH 1/5] Baseline gripperless parameter --- spot_description/urdf/spot.urdf.xacro | 2 + spot_description/urdf/spot_arm_macro.urdf | 120 +++++++++++----------- spot_description/urdf/spot_macro.xacro | 3 +- 3 files changed, 65 insertions(+), 60 deletions(-) diff --git a/spot_description/urdf/spot.urdf.xacro b/spot_description/urdf/spot.urdf.xacro index 5fb809923..90f58519d 100644 --- a/spot_description/urdf/spot.urdf.xacro +++ b/spot_description/urdf/spot.urdf.xacro @@ -8,6 +8,7 @@ + @@ -23,6 +24,7 @@ diff --git a/spot_description/urdf/spot_arm_macro.urdf b/spot_description/urdf/spot_arm_macro.urdf index 146c9bca3..e8ae971a8 100644 --- a/spot_description/urdf/spot_arm_macro.urdf +++ b/spot_description/urdf/spot_arm_macro.urdf @@ -1,7 +1,7 @@ + tf_prefix gripperless"> @@ -217,9 +217,9 @@ - - - + + + @@ -248,60 +248,62 @@ upper="2.87979326579064354163" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/spot_description/urdf/spot_macro.xacro b/spot_description/urdf/spot_macro.xacro index 5f947457c..1b99c6af4 100644 --- a/spot_description/urdf/spot_macro.xacro +++ b/spot_description/urdf/spot_macro.xacro @@ -4,6 +4,7 @@ @@ -417,7 +418,7 @@ - + From 7d2e56d65f7931867379d5ae4d90673a33bc4d5e Mon Sep 17 00:00:00 2001 From: Katie Hughes Date: Wed, 30 Oct 2024 16:11:57 -0400 Subject: [PATCH 2/5] Fix for stray meshes in WR1 link --- spot_description/launch/description.launch.py | 8 ++ spot_description/urdf/spot_arm_macro.urdf | 83 ++++++++++--------- 2 files changed, 53 insertions(+), 38 deletions(-) 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_arm_macro.urdf b/spot_description/urdf/spot_arm_macro.urdf index e8ae971a8..f7e7aa923 100644 --- a/spot_description/urdf/spot_arm_macro.urdf +++ b/spot_description/urdf/spot_arm_macro.urdf @@ -201,44 +201,51 @@ upper="1.83259571459404613236" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From d16078a0a819a213877099c3ae20fd94224c1365 Mon Sep 17 00:00:00 2001 From: Katie Hughes Date: Wed, 30 Oct 2024 17:18:27 -0400 Subject: [PATCH 3/5] seems to be working correctly --- spot_description/urdf/spot.urdf.xacro | 10 +++++++--- spot_description/urdf/spot_arm_macro.urdf | 24 ++++++++++++++++++----- spot_description/urdf/spot_macro.xacro | 5 ++++- 3 files changed, 30 insertions(+), 9 deletions(-) diff --git a/spot_description/urdf/spot.urdf.xacro b/spot_description/urdf/spot.urdf.xacro index 90f58519d..760a49bf1 100644 --- a/spot_description/urdf/spot.urdf.xacro +++ b/spot_description/urdf/spot.urdf.xacro @@ -8,10 +8,13 @@ - + + + + @@ -24,9 +27,10 @@ + tf_prefix="$(arg tf_prefix)" + gripperless="$(arg gripperless)" + custom_gripper_base_link="$(arg custom_gripper_base_link)"/> diff --git a/spot_description/urdf/spot_arm_macro.urdf b/spot_description/urdf/spot_arm_macro.urdf index f7e7aa923..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"> + + + @@ -202,9 +205,11 @@ - - + + + + @@ -250,11 +255,20 @@ - + + + + + + + + + + diff --git a/spot_description/urdf/spot_macro.xacro b/spot_description/urdf/spot_macro.xacro index 1b99c6af4..fd36ad15c 100644 --- a/spot_description/urdf/spot_macro.xacro +++ b/spot_description/urdf/spot_macro.xacro @@ -5,6 +5,7 @@ arm:=false feet:=false gripperless:=false + custom_gripper_base_link tf_prefix"> @@ -418,7 +419,9 @@ - + From c638955826cbd4171fba2862f99de29d11180ac0 Mon Sep 17 00:00:00 2001 From: Katie Hughes Date: Thu, 31 Oct 2024 10:37:46 -0400 Subject: [PATCH 4/5] don't expose custom_gripper_base_link through main spot.urdf.xacro, only through load_spot macro --- spot_description/urdf/spot.urdf.xacro | 3 +-- spot_description/urdf/spot_macro.xacro | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/spot_description/urdf/spot.urdf.xacro b/spot_description/urdf/spot.urdf.xacro index 760a49bf1..0380aa69d 100644 --- a/spot_description/urdf/spot.urdf.xacro +++ b/spot_description/urdf/spot.urdf.xacro @@ -13,7 +13,6 @@ - @@ -30,7 +29,7 @@ feet="$(arg feet)" tf_prefix="$(arg tf_prefix)" gripperless="$(arg gripperless)" - custom_gripper_base_link="$(arg custom_gripper_base_link)"/> + custom_gripper_base_link=""/> diff --git a/spot_description/urdf/spot_macro.xacro b/spot_description/urdf/spot_macro.xacro index fd36ad15c..f145f1b96 100644 --- a/spot_description/urdf/spot_macro.xacro +++ b/spot_description/urdf/spot_macro.xacro @@ -5,7 +5,7 @@ arm:=false feet:=false gripperless:=false - custom_gripper_base_link + custom_gripper_base_link:='' tf_prefix"> From 3018d2feb73026540b5f079e46cbbf648d53a545 Mon Sep 17 00:00:00 2001 From: Katie Hughes Date: Thu, 31 Oct 2024 10:51:44 -0400 Subject: [PATCH 5/5] add descriptions to parameters --- spot_description/urdf/spot.urdf.xacro | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/spot_description/urdf/spot.urdf.xacro b/spot_description/urdf/spot.urdf.xacro index 0380aa69d..51774251e 100644 --- a/spot_description/urdf/spot.urdf.xacro +++ b/spot_description/urdf/spot.urdf.xacro @@ -7,13 +7,19 @@ - - + + - + + + + + + + @@ -28,8 +34,7 @@ arm="$(arg arm)" feet="$(arg feet)" tf_prefix="$(arg tf_prefix)" - gripperless="$(arg gripperless)" - custom_gripper_base_link=""/> + gripperless="$(arg gripperless)"/>