From 6e822d3c3d9e1fc312db3570cf9483e0612ff6c5 Mon Sep 17 00:00:00 2001 From: Walter Fetter Lages Date: Wed, 21 Feb 2024 14:30:07 -0300 Subject: [PATCH] Add URDF property for profile density. --- crane_description/urdf/base.xacro | 25 +++++++++++++------------ crane_description/urdf/bridge.xacro | 19 ++++++++++--------- crane_description/urdf/crane.urdf.xacro | 8 ++++---- crane_description/urdf/hoist.xacro | 29 +++++++++++++++-------------- crane_description/urdf/ros2_control.xacro | 12 ++++++------ crane_description/urdf/trolley.xacro | 19 ++++++++++--------- 6 files changed, 58 insertions(+), 54 deletions(-) diff --git a/crane_description/urdf/base.xacro b/crane_description/urdf/base.xacro index e7953ff..28ec223 100644 --- a/crane_description/urdf/base.xacro +++ b/crane_description/urdf/base.xacro @@ -30,13 +30,14 @@ + @@ -45,7 +46,7 @@ width="${profile_width}" length="${base_width}" height="${profile_width}" - mass="${base_width*profile_width*profile_width*1.0}" + mass="${base_width*profile_width*profile_width*profile_density}" parent="${parent}"> @@ -54,7 +55,7 @@ width="${base_length}" length="${profile_width}" height="${profile_width}" - mass="${base_width*profile_width*profile_width*1.0}" + mass="${base_width*profile_width*profile_width*profile_density}" parent="${parent}"> @@ -63,7 +64,7 @@ width="${base_length}" length="${profile_width}" height="${profile_width}" - mass="${base_width*profile_width*profile_width*1.0}" + mass="${base_width*profile_width*profile_width*profile_density}" parent="${parent}"> @@ -72,7 +73,7 @@ width="${profile_width}" length="${profile_width}" height="${base_height}" - mass="${base_width*profile_width*profile_width*1.0}" + mass="${base_width*profile_width*profile_width*profile_density}" parent="${parent}"> @@ -81,7 +82,7 @@ width="${profile_width}" length="${profile_width}" height="${base_height}" - mass="${base_width*profile_width*profile_width*1.0}" + mass="${base_width*profile_width*profile_width*profile_density}" parent="${parent}"> @@ -90,7 +91,7 @@ width="${profile_width}" length="${profile_width}" height="${base_height}" - mass="${base_width*profile_width*profile_width*1.0}" + mass="${base_width*profile_width*profile_width*profile_density}" parent="${parent}"> @@ -99,7 +100,7 @@ width="${profile_width}" length="${profile_width}" height="${base_height}" - mass="${base_width*profile_width*profile_width*1.0}" + mass="${base_width*profile_width*profile_width*profile_density}" parent="${parent}"> @@ -108,7 +109,7 @@ width="${profile_width}" length="${base_width}" height="${profile_width}" - mass="${base_width*profile_width*profile_width*1.0}" + mass="${base_width*profile_width*profile_width*profile_density}" parent="${parent}"> @@ -117,7 +118,7 @@ width="${profile_width}" length="${base_width}" height="${profile_width}" - mass="${base_width*profile_width*profile_width*1.0}" + mass="${base_width*profile_width*profile_width*profile_density}" parent="${parent}"> @@ -126,7 +127,7 @@ width="${base_length}" length="${profile_width}" height="${profile_width}" - mass="${base_width*profile_width*profile_width*1.0}" + mass="${base_width*profile_width*profile_width*profile_density}" parent="${parent}"> @@ -135,7 +136,7 @@ width="${base_length}" length="${profile_width}" height="${profile_width}" - mass="${base_width*profile_width*profile_width*1.0}" + mass="${base_width*profile_width*profile_width*profile_density}" parent="${parent}"> diff --git a/crane_description/urdf/bridge.xacro b/crane_description/urdf/bridge.xacro index 601aaed..5d84530 100644 --- a/crane_description/urdf/bridge.xacro +++ b/crane_description/urdf/bridge.xacro @@ -30,24 +30,25 @@ + - + - - - - + + + + @@ -56,7 +57,7 @@ width="${profile_width}" length="${bridge_width}" height="${profile_width}" - mass="${bridge_width*profile_width*profile_width*1.0}" + mass="${bridge_width*profile_width*profile_width*profile_density}" parent="${name}_link"> @@ -65,7 +66,7 @@ width="${bridge_length}" length="${profile_width}" height="${profile_width}" - mass="${bridge_width*profile_width*profile_width*1.0}" + mass="${bridge_width*profile_width*profile_width*profile_density}" parent="${name}_link"> @@ -74,7 +75,7 @@ width="${bridge_length}" length="${profile_width}" height="${profile_width}" - mass="${bridge_width*profile_width*profile_width*1.0}" + mass="${bridge_width*profile_width*profile_width*profile_density}" parent="${name}_link"> diff --git a/crane_description/urdf/crane.urdf.xacro b/crane_description/urdf/crane.urdf.xacro index 5b4bfd9..9056d53 100644 --- a/crane_description/urdf/crane.urdf.xacro +++ b/crane_description/urdf/crane.urdf.xacro @@ -37,21 +37,21 @@ - + - + - + - + diff --git a/crane_description/urdf/hoist.xacro b/crane_description/urdf/hoist.xacro index 44e084d..c60bd2a 100644 --- a/crane_description/urdf/hoist.xacro +++ b/crane_description/urdf/hoist.xacro @@ -28,44 +28,45 @@ + - + - - - - + + + + - - - - + + + + - - - - + + + + diff --git a/crane_description/urdf/ros2_control.xacro b/crane_description/urdf/ros2_control.xacro index 2955fdb..99e9cd7 100644 --- a/crane_description/urdf/ros2_control.xacro +++ b/crane_description/urdf/ros2_control.xacro @@ -51,8 +51,8 @@ - -1.0 - 1.0 + -100.0 + 100.0 @@ -61,8 +61,8 @@ - -1.0 - 1.0 + -100.0 + 100.0 @@ -86,8 +86,8 @@ - -1.0 - 1.0 + -100.0 + 100.0 diff --git a/crane_description/urdf/trolley.xacro b/crane_description/urdf/trolley.xacro index bea6409..a636266 100644 --- a/crane_description/urdf/trolley.xacro +++ b/crane_description/urdf/trolley.xacro @@ -28,24 +28,25 @@ + - + - - - - + + + + @@ -54,7 +55,7 @@ width="${trolley_height}" length="${trolley_width}" height="${trolley_height}" - mass="${trolley_width*trolley_height*trolley_height*1.0}" + mass="${trolley_width*trolley_height*trolley_height*profile_density}" parent="${name}_link"> @@ -63,7 +64,7 @@ width="${trolley_length}" length="${trolley_height}" height="${trolley_height}" - mass="${trolley_width*trolley_height*trolley_height*1.0}" + mass="${trolley_width*trolley_height*trolley_height*profile_density}" parent="${name}_link"> @@ -72,7 +73,7 @@ width="${trolley_length}" length="${trolley_height}" height="${trolley_height}" - mass="${trolley_width*trolley_height*trolley_height*1.0}" + mass="${trolley_width*trolley_height*trolley_height*profile_density}" parent="${name}_link"> -- 2.12.0