-
Notifications
You must be signed in to change notification settings - Fork 171
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
How to restart simulation #59
Comments
There is nothing exposed right now, but it should be easy to clear the scene and re-spawn the agents |
In simulator_node.cpp, I add the following calls too a ros listener callback:
Where sm.cleanUp is defined in simulator.cpp as:
This seems to get the simulator to reset on callback, except the pedsim simulator node crashes after a few times. I get an exit code -11, which sounds to me like a memory reference problem. Furthermore, each time new agents spawn, their number in rviz also increases? Is there a different way to clear and respawn? |
Yes, this is a little more involved. We need to also reset agent ids in the libpedsim part. |
Hi, are there any exposed functions that would let me restart the simulation without killing and relaunching? I'm looking to implementing an openaigym-like interface and want to restart the simulation for each episode.
The text was updated successfully, but these errors were encountered: