diff --git a/launch/description.launch b/launch/description.launch index 9a5520fe1b5f7f135064008785e909cb0fe8076b..b715195e4f9c415621085f88cc030f4568c7d29c 100644 --- a/launch/description.launch +++ b/launch/description.launch @@ -3,6 +3,7 @@ <arg name="ns" default="helena"/> <arg name="model" default="helena"/> + <arg name="state_pub" default="true" /> <arg name="static_wheels" default="false" /> <group ns="$(arg ns)"> @@ -10,7 +11,10 @@ <param name="robot_description" command="$(find xacro)/xacro --inorder '$(find iri_helena_description)/urdf/$(arg model).xacro' name:=$(arg ns)" /> - <node pkg="robot_state_publisher" type="robot_state_publisher" name="robot_state_publisher"> + <node if="$(arg state_pub)" + pkg="robot_state_publisher" + type="robot_state_publisher" + name="robot_state_publisher"> <param name="tf_prefix" type="string" value="/$(arg ns)"/> <param name="publish_frequency" type="double" value="20.0"/> </node>