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

[GUI] Rapid stepping puts play/pause button in bad state #4

Open
osrf-migration opened this issue Oct 11, 2018 · 2 comments
Open

[GUI] Rapid stepping puts play/pause button in bad state #4

osrf-migration opened this issue Oct 11, 2018 · 2 comments
Labels
bug Something isn't working GUI Gazebo's graphical interface (not pure Ignition GUI)

Comments

@osrf-migration
Copy link

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.

@osrf-migration
Copy link
Author

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.

@osrf-migration
Copy link
Author

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


  • set component to "gui"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working GUI Gazebo's graphical interface (not pure Ignition GUI)
Projects
None yet
Development

No branches or pull requests

2 participants