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