From fd2924c83dbd3e06726f0a23128c62b900bb7f41 Mon Sep 17 00:00:00 2001 From: "Dr. Denis" Date: Thu, 12 Jan 2023 00:45:58 +0100 Subject: [PATCH] Update URDF templates for better simulator support. (#94) --- templates/robot_description/robot.urdf.xacro | 3 ++- .../robot_description/robot_macro.ros2_control.xacro | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/templates/robot_description/robot.urdf.xacro b/templates/robot_description/robot.urdf.xacro index a206158a..327ddcd4 100644 --- a/templates/robot_description/robot.urdf.xacro +++ b/templates/robot_description/robot.urdf.xacro @@ -28,6 +28,7 @@ use_mock_hardware="$(arg use_mock_hardware)" mock_sensor_commands="$(arg mock_sensor_commands)" sim_gazebo_classic="$(arg sim_gazebo_classic)" - sim_gazebo="$(arg sim_gazebo)"/> + sim_gazebo="$(arg sim_gazebo)" + simulation_controllers:="$(arg simulation_controllers)" /> diff --git a/templates/robot_description/robot_macro.ros2_control.xacro b/templates/robot_description/robot_macro.ros2_control.xacro index 2d24670d..7486ff02 100644 --- a/templates/robot_description/robot_macro.ros2_control.xacro +++ b/templates/robot_description/robot_macro.ros2_control.xacro @@ -7,7 +7,8 @@ use_mock_hardware:=^|false mock_sensor_commands:=^|false sim_gazebo_classic:=^|false - sim_gazebo:=^|false" + sim_gazebo:=^|false + simulation_controllers" > @@ -121,7 +122,7 @@ - $(arg simulation_controllers) + ${simulation_controllers} @@ -132,8 +133,8 @@ - $(arg simulation_controllers) - $(arg prefix)controller_manager + ${simulation_controllers} + ${prefix}controller_manager