-
Notifications
You must be signed in to change notification settings - Fork 25
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
Clean-up scheduling #71
Conversation
@jbmouret thanks for this! I added a |
I think we can merge this, no? |
I have planned to use this API in the run() method first + remove the current scheduling code for control & graphics. |
OK then! I'll let you finish this.. Thanks! |
Many changes here. A few questions:
|
Nice work! This is going to be a nice feature of the library.
Yes. I think that this makes sense.
What do you mean? You can get the states by:
There are a few small things to fix. I will fix them tomorrow.
Indeed. I will do it.
This makes sense. I agree.
You're not, but I will fix that. It's minor. |
For the state question: I wanted to write a simple control loop in |
When using |
What's left? |
I made a few small changes and a bigger one: we do not want to synchronize when using
We should see how to handle the cameras. Either we make them independent of the |
You are right. Since the Graphics object stores a pointer to the simulator, maybe the graphics object could decide to be synchronized or not? (call set_sync() on the pointer to the simulation) For the camera, I think we need an API for sensors: IMU, force-torque sensors, and cameras (at least). I don't know if we want to have a Sensor abstract class (all these sensors are quite different), but they should not "live" in the gui (even if they depend on Magnum too). |
I did this. In the process, I also simplified the Graphics classes to make them independent of the templates for the basic usages.
Let's handle this in a different PR. |
Merging... |
See