diff --git a/rosbot_controller/launch/controller.launch.py b/rosbot_controller/launch/controller.launch.py index ed0d73c5..d169d7a8 100644 --- a/rosbot_controller/launch/controller.launch.py +++ b/rosbot_controller/launch/controller.launch.py @@ -42,6 +42,14 @@ def generate_launch_description(): description="Whether to use mecanum drive controller (otherwise diff drive controller is used)", ) + simulation_engine = LaunchConfiguration("simulation_engine") + declare_simulation_engine_arg = DeclareLaunchArgument( + "simulation_engine", + default_value="ignition-gazebo", + description="Which simulation engine to be used", + choices=["ignition-gazebo", "webots"], + ) + use_sim = LaunchConfiguration("use_sim") declare_use_sim_arg = DeclareLaunchArgument( "use_sim", @@ -79,10 +87,12 @@ def generate_launch_description(): ), " mecanum:=", mecanum, - " use_sim:=", - use_sim, " namespace:=", namespace, + " simulation_engine:=", + simulation_engine, + " use_sim:=", + use_sim, ] ) robot_description = {"robot_description": robot_description_content} @@ -172,6 +182,7 @@ def generate_launch_description(): [ declare_namespace_arg, declare_mecanum_arg, + declare_simulation_engine_arg, declare_use_sim_arg, SetParameter("use_sim_time", value=use_sim), control_node, diff --git a/rosbot_description/urdf/body.urdf.xacro b/rosbot_description/urdf/body.urdf.xacro index 647087b0..459b4a9a 100644 --- a/rosbot_description/urdf/body.urdf.xacro +++ b/rosbot_description/urdf/body.urdf.xacro @@ -1,7 +1,7 @@ - + diff --git a/rosbot_description/urdf/rosbot.urdf.xacro b/rosbot_description/urdf/rosbot.urdf.xacro index eccac3db..99b8c88d 100644 --- a/rosbot_description/urdf/rosbot.urdf.xacro +++ b/rosbot_description/urdf/rosbot.urdf.xacro @@ -2,7 +2,6 @@ - @@ -11,7 +10,6 @@ @@ -20,7 +18,7 @@ parent_link="cover_link" xyz="0.02 0.0 0.0" rpy="0.0 0.0 0.0" - use_gpu="$(arg use_gpu)" + use_gpu="true" namespace="$(arg namespace)" simulation_engine="$(arg simulation_engine)" /> diff --git a/rosbot_description/urdf/rosbot_macro.urdf.xacro b/rosbot_description/urdf/rosbot_macro.urdf.xacro index 48b30f2c..d7381a9f 100644 --- a/rosbot_description/urdf/rosbot_macro.urdf.xacro +++ b/rosbot_description/urdf/rosbot_macro.urdf.xacro @@ -1,6 +1,6 @@ - + @@ -21,7 +21,7 @@ - +