-
Notifications
You must be signed in to change notification settings - Fork 293
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
[GUI] Rapid stepping puts play/pause button in bad state #4
Comments
Original comment by Nate Koenig (Bitbucket: Nathan Koenig). There is a timing issue related to this problem. The GUI changes button state when a WorldStats message is received and when the step-button is pressed. The service call to step/play/pause simulation returns when the message is received, not when the state actually changes. Finally, the WorldStats message is published at 5Hz. So, if the GUI button is clicked rapidly, then the WorldStats message could skip state transitions and get out of sync with the GUI. We may need an additional topic that publishes all state transitions. Or, we modify the service call to return only when the state actually changes. |
Original report (archived issue) by Nate Koenig (Bitbucket: Nathan Koenig).
Rapidly clicking the step button can cause the play/pause button to get into the opposite state. For example, the pause icon will show but the simulation is already paused.
The text was updated successfully, but these errors were encountered: