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

Python Mujoco simulation timing #116

Open
Zolkin1 opened this issue Aug 20, 2024 · 0 comments
Open

Python Mujoco simulation timing #116

Zolkin1 opened this issue Aug 20, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Zolkin1
Copy link
Collaborator

Zolkin1 commented Aug 20, 2024

Previously, the Mujoco C++ simulation loop was simulating until a render is required, then rendering, then sleeping to match real time. In practice this causes issues where the simulation would happen much quicker than reality and therefore no data from intermediate simulation steps would be captured by sensors. Now, the simulation busy waits for the time step duration after each simulation so the sensor timer callbacks can activate and grab the correct data.

Now The rendering is also placed in its own thread to keep the simulation time as close to wall time as possible.

This needs to be updated on the Python side now too.

@Zolkin1 Zolkin1 added the enhancement New feature or request label Aug 20, 2024
@Zolkin1 Zolkin1 changed the title Mujoco simulation timing Python Mujoco simulation timing Dec 2, 2024
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

2 participants