-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Synchronous simContinueForTime? #2285
Comments
You can implement a kinda synchronous version of simContinueForTime() by doing this, even though this is not very satisfactory: microsoft/AirSim-NeurIPS2019-Drone-Racing#17 (comment) |
I do not see how that would help at all - what I want is to run the simulator for a specified amount of simulated time, and then have it pause and tell me when it is done. |
@ANogin, gotcha. I updated the API to do that. Can you give it a shot now? Also, see discussion here microsoft/AirSim-NeurIPS2019-Drone-Racing#113 (comment) |
Sorry @madratman but I didn't see this comment, do you mean that SimContinueForTime() has been updated from using the CPU time to using the simulated time ? |
(Oh my bad you only made it synchronous, right?) |
The typical use of
simContinueForTime
(including in AirSim's own examples) seems to be to immediately sleep for just a bit longer than thesimContinueForTime
argument (ideally also accounting forClockSpeed
/etc). This seems both unnecessary, unnecessarily slow (if the extra sleep is largish), error-prone (if the extra sleep is not enough, if the clock speed is not accounted for, etc). Would it be possible to have a synchronous version of simContinueForTime that would simply block until after the sim is done?The text was updated successfully, but these errors were encountered: