Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
scpeters committed Mar 2, 2023
1 parent eb1d266 commit 75df23b
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
@@ -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'),
@@ -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.'

0 comments on commit 75df23b

Please sign in to comment.