From 473ee38fdab8b15124c2d15e52cb7eded86c255a Mon Sep 17 00:00:00 2001 From: Felix Exner Date: Fri, 28 Jan 2022 10:53:12 +0100 Subject: [PATCH] Introduced a conditional for mesh path inclusion As of writing this, gazebo_ros cannot handle the package://-syntax of mesh filenames. In order to work with gazebo, we'll have to rely on absolute paths. This will however destroy visualizing the description from a remote machine, as the absolute path there can (and most probably will) be different. This is considered a workaround until this issue is resolved upstream. --- urdf/inc/ur_common.xacro | 74 +++++++++++++++++++++++++++++++--------- urdf/ur_macro.xacro | 3 +- 2 files changed, 60 insertions(+), 17 deletions(-) diff --git a/urdf/inc/ur_common.xacro b/urdf/inc/ur_common.xacro index 04741b8..a66c239 100644 --- a/urdf/inc/ur_common.xacro +++ b/urdf/inc/ur_common.xacro @@ -21,7 +21,8 @@ - + + @@ -166,35 +167,76 @@ - - + + + + + + + + - - + + + + + + + + - - - + + + + + + + + - - + + + + + + + + - - + + + + + + + + - - + + + + + + + + - - + + + + + + + + diff --git a/urdf/ur_macro.xacro b/urdf/ur_macro.xacro index 73c996c..75a764e 100644 --- a/urdf/ur_macro.xacro +++ b/urdf/ur_macro.xacro @@ -79,7 +79,8 @@ joint_limits_parameters_file="${joint_limits_parameters_file}" kinematics_parameters_file="${kinematics_parameters_file}" physical_parameters_file="${physical_parameters_file}" - visual_parameters_file="${visual_parameters_file}"/> + visual_parameters_file="${visual_parameters_file}" + force_abs_paths="${sim_gazebo or sim_ignition}"/>