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

Play sim automatically #52

Merged
merged 2 commits into from
Nov 4, 2024
Merged

Play sim automatically #52

merged 2 commits into from
Nov 4, 2024

Conversation

hilary-luo
Copy link
Contributor

@hilary-luo hilary-luo commented Oct 29, 2024

Fixes #46, #50

This change is in reaction to the following PR: ros-controls/ros2_control#1659 where a timeout is added for the switch controller service. This timeout is hardcoded as 5 seconds here: https://github.com/ros-controls/ros2_control/blob/8779757f7e5cdb5e6998d9b162e65015003e3c1f/controller_manager/controller_manager/spawner.py#L332

Further discussion should be had on proposing to parameterize that timeout so that we can adapt for low resource sims which are slow to launch and/or making the timeout based on ROS time.

@hilary-luo hilary-luo requested a review from a team as a code owner October 29, 2024 21:47
@hilary-luo hilary-luo requested review from tonybaltovski, mhosmar-cpr, civerachb-cpr, roni-kreinin and luis-camero and removed request for a team October 29, 2024 21:47
@roni-kreinin
Copy link
Contributor

@hilary-luo Can you keep this the default behaviour but add a launch argument allowing the sim to be launched paused?

@hilary-luo
Copy link
Contributor Author

@roni-kreinin I can do that, is there an expected use case for this? As things currently stand, if they do not press play within 5 seconds of launch then the simulation will fail.

@roni-kreinin
Copy link
Contributor

Its just to maintain backwards compatibility with how it worked before.

@hilary-luo hilary-luo merged commit 0642177 into humble Nov 4, 2024
4 checks passed
@hilary-luo hilary-luo deleted the hluo/auto-play branch November 4, 2024 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch Controller fails launch after 5 seconds, unable to control Husky in simulation
2 participants