Difficulty Achieving Elastic Contact with Constant Energy in Robot Jump Simulation #2535
Replies: 1 comment 2 replies
-
You need to use the negative semantics of solref, as explained here https://mujoco.readthedocs.io/en/latest/modeling.html#reference |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Intro
Hi!
I am a graduate student at UCI, I use MuJoCo for my research.
My setup
I'm using Python to run the MuJoCo simulations.
My question
I'm reaching out because I'm experiencing an issue with contact dynamics in my simulation. My robot needs to jump on the floor, but I'm having trouble achieving a clean, elastic-like contact. Specifically, I'm trying to get a jump where the energy during contact is fully conserved — in other words, a perfectly elastic interaction.
The jump occurs at around 0.15 seconds into the simulation.
When I use the following

solref
values:solref = [2e-5, 1]
I get these results:
However, when I change the values to:
solref = [-2e-5, 0]
I observe a different behavior:

I’d appreciate any guidance on how to tune the contact parameters to achieve constant energy during impacts, or if there's a better approach to simulate perfectly elastic contact.
Minimal model and/or code that explain my question
Confirmations
Beta Was this translation helpful? Give feedback.
All reactions