Skip to content

Commit

Permalink
Merge pull request #342 from 130s/impr/allow_respawn_gazebo
Browse files Browse the repository at this point in the history
[empty_world.launch] Allow respawning gazebo node.
  • Loading branch information
scpeters committed Apr 25, 2016
2 parents 1946e27 + 71dcc77 commit a0f13fc
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 a0f13fc

Please sign in to comment.