Skip to content

Commit

Permalink
[empty_world.launch] Allow respawning gazebo node.
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac IY Saito committed Aug 6, 2015
1 parent 1a5efe5 commit 71dcc77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gazebo_ros/launch/empty_world.launch
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<arg name="physics" default="ode"/>
<arg name="verbose" default="false"/>
<arg name="world_name" default="worlds/empty.world"/> <!-- Note: the world_name is with respect to GAZEBO_RESOURCE_PATH environmental variable -->
<arg name="respawn_gazebo" default="false"/>

<!-- set use_sim_time flag -->
<group if="$(arg use_sim_time)">
Expand All @@ -27,7 +28,7 @@
<arg if="$(arg debug)" name="script_type" value="debug"/>

<!-- start gazebo server-->
<node name="gazebo" pkg="gazebo_ros" type="$(arg script_type)" respawn="false" output="screen"
<node name="gazebo" pkg="gazebo_ros" type="$(arg script_type)" respawn="$(arg respawn_gazebo)" output="screen"
args="$(arg command_arg1) $(arg command_arg2) $(arg command_arg3) -e $(arg physics) $(arg extra_gazebo_args) $(arg world_name)" />

<!-- start gazebo client -->
Expand Down

0 comments on commit 71dcc77

Please sign in to comment.