-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Use fixed simulation step #886
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
Comments
Could you please submit PR for #808 ? The simple_flight already works with fixed dt. I think what you mean is ability to step through via API. I think I have an idea. Right now AirSim supports different types of clocks which provides timing. All clocks should be derived from ClockBase class. We can create a new type of clock called ManualClock that simply doesn't do anything. You can just set whatever time you want in it and it returns you precisely same time you had set until you set the new value. Now you can have API called setManualClock which allows you to advance the clock. |
Thanks for the quick response. Just to check if the proposed solution would work for me, here is more detailed description of my idea. What I want to achieve is to write the main() which will handle RL calls and which will communicate with the Blocks environment. Can that be achieved with your proposed solution? Feel free to ask if something is unclear. |
I think APIs should be just left alone and shouldn't have parameters for clock speed. The clock speed is controlled using separate API call. I'm planning to work on this shortly... |
Can you elaborate that a bit? Which API call is controlling the clock speed? |
Hello again.
I've asked the same thing here: #808, but you can close that issue because I have managed to implement it.
My next step would be to implement the functionality that is mentioned in issue:
#600
What I would like to do is to get the rotor speeds via the reinforcement learning, apply them by using movebyrotorspeed command, and get the state from the environment.
I would like to do that with the fixed timestep dt.
Can you give me a few pointers?
The text was updated successfully, but these errors were encountered: