Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-play argument #444

Closed
mjforan opened this issue Aug 16, 2023 · 2 comments
Closed

Auto-play argument #444

mjforan opened this issue Aug 16, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@mjforan
Copy link

mjforan commented Aug 16, 2023

Desired behavior

In the ROS 1 version of this package (ros_ign), the simulator would "play" as soon as it started running. In the current ROS 2 version I have to hit the play button every time. I can understand how some people would prefer this new behavior, but it is a pain for me. Could this be exposed as a launch argument? I would like to be able to choose if the simulator should start up right away or wait for user input.

@mjforan mjforan added the enhancement New feature or request label Aug 16, 2023
@mjcarroll
Copy link
Collaborator

The command line parameter exists for gz-sim, but it hasn't been exposed as part of the launch file. It should be relatively straightforward to add here:

return [ExecuteProcess(
cmd=[exec, exec_args, '--force-version', gz_version],
output='screen',
additional_env=env,
shell=True,
prefix=debug_prefix,
on_exit=on_exit
)]

The -r CLI flag will cause the simulation to start as soon as gazebo is loaded.

@mjforan
Copy link
Author

mjforan commented Aug 18, 2023

Thanks for the tip, adding -r to gz_args works.

@mjforan mjforan closed this as completed Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

2 participants