diff --git a/src/picknik_ur_base_config/description/picknik_ur_macro.xacro b/src/picknik_ur_base_config/description/picknik_ur_macro.xacro
index 52525cc1..d1779980 100644
--- a/src/picknik_ur_base_config/description/picknik_ur_macro.xacro
+++ b/src/picknik_ur_base_config/description/picknik_ur_macro.xacro
@@ -36,17 +36,6 @@
-
-
-
-
-
-
-
-
-
-
-
@@ -61,9 +50,9 @@
tf_prefix=""
parent="${parent}"
joint_limits_parameters_file="$(arg joint_limits_parameters_file)"
- kinematics_parameters_file="${kinematics_parameters_file_full_path}"
- physical_parameters_file="${physical_parameters_file_full_path}"
- visual_parameters_file="${visual_parameters_file_full_path}"
+ kinematics_parameters_file="$(arg kinematics_parameters_file)"
+ physical_parameters_file="$(arg physical_parameters_file)"
+ visual_parameters_file="$(arg visual_parameters_file)"
use_fake_hardware="${use_fake_hardware}"
initial_positions="${xacro.load_yaml(initial_positions_file)}"
sim_ignition="${simulation == 'gazebo'}"
diff --git a/src/picknik_ur_gazebo_config/config/config.yaml b/src/picknik_ur_gazebo_config/config/config.yaml
index 093f0fcc..a4cd4b48 100644
--- a/src/picknik_ur_gazebo_config/config/config.yaml
+++ b/src/picknik_ur_gazebo_config/config/config.yaml
@@ -61,14 +61,17 @@ hardware:
# ogre2 (which is the Gazebo default) is also an option if your system supports it.
- gazebo_renderer: ${GAZEBO_RENDERER:-ogre}
- kinematics_parameters_file:
+ # Load default_kinematics.yaml from ur_description/config/
package: "ur_description"
- path: "config"
+ path: "config/%>> hardware.type <<%/default_kinematics.yaml"
- physical_parameters_file:
+ # Load physical_parameters.yaml from ur_description/config/
package: "ur_description"
- path: "config"
+ path: "config/%>> hardware.type <<%/physical_parameters.yaml"
- visual_parameters_file:
+ # Load visual_parameters.yaml from ur_description/config/
package: "ur_description"
- path: "config"
+ path: "config/%>> hardware.type <<%/visual_parameters.yaml"
# Override MoveIt parameters
moveit_params: