Skip to content

Commit

Permalink
gzserver.launch.py: add initial_sim_time argument
Browse files Browse the repository at this point in the history
Expose gzserver CLI parameter added in
gazebosim/gazebo-classic#3294.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
  • Loading branch information
scpeters committed Mar 3, 2023
1 parent efa494f commit c6f90bc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gazebo_ros/launch/gzserver.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ def generate_launch_description():
_boolean_command('lockstep'),
_boolean_command('help'),
_boolean_command('pause'),
# join with '=' (--initial_sim_time=[time]) so that old versions of
# gazebo will parse it all as a single argument and ignore the [time].
_arg_command('initial_sim_time', join_with='='),
_arg_command('physics'),
_arg_command('play'),
_boolean_command('record'),
Expand Down Expand Up @@ -112,6 +115,10 @@ def generate_launch_description():
'help', default_value='false',
description='Set "true" to produce gzserver help message.'
),
DeclareLaunchArgument(
'initial_sim_time', default_value='',
description='Specify the initial simulation time (seconds).'
),
DeclareLaunchArgument(
'pause', default_value='false',
description='Set "true" to start the server in a paused state.'
Expand Down

0 comments on commit c6f90bc

Please sign in to comment.