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

Sim steps calculation error #42

Open
ankile opened this issue May 14, 2024 · 0 comments
Open

Sim steps calculation error #42

ankile opened this issue May 14, 2024 · 0 comments

Comments

@ankile
Copy link
Contributor

ankile commented May 14, 2024

It seems dividing by substeps is not correct in this case as per the IsaacGym documentation:

What is the difference between dt and substep?
dt is the time increment of the simulation. Every time you step the simulation via gym.simulate(...) you more the sim forward in time by dt. The substep is how many slices this dt is split into in order to do the simulation. The more substeps, the finer the slicing of time and the greater the accuracy of the simulation, but the more computationally intensive it becomes. For example: say your dt is 1/60 and your substep is 2. When you call gym.simulate(...) the physics is propagated forward 1/60th of a second in two time steps of 1/120th of a second each. You do not have access to the results of these 1/120th of a second time steps, only the total result at 1/60th of a second can be retrieved by calling gym.fetch_results(...). This is probably a consequence of certain numerical integration methods.

/ sim_config["sim_params"].substeps

The fix should be to just delete this line if you believe this issue to be correct. I'd be happy to make a simple PR for this as well if preferable!

Best, Lars

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant