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

Catch exceptions when stopping the simulation with SimulationManager #11

Closed
mbusy opened this issue Apr 27, 2019 · 1 comment
Closed
Assignees
Labels
enhancement New feature or request

Comments

@mbusy
Copy link
Member

mbusy commented Apr 27, 2019

If the GUI is used to close the simulation, any call to stopSimulation or resetSimulation from SimulationManager will throw an exception. Catching that exception would be cleaner

pybullet.disconnect(physicsClientId=physics_client)
pybullet.error: Not connected to physics server.
@mbusy mbusy added the enhancement New feature or request label Apr 27, 2019
@mbusy mbusy self-assigned this Apr 29, 2019
mbusy added a commit that referenced this issue Dec 31, 2019
@mbusy
Copy link
Member Author

mbusy commented Dec 31, 2019

As specified in the related PR, resetSimulation will still raise a pybullet.error if the client has been stopped

@mbusy mbusy closed this as completed Dec 31, 2019
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
None yet
Development

No branches or pull requests

1 participant