Replies: 1 comment 1 reply
-
|
Did you manage to solve it using damping? |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Subject: A micro-diagnostic for step-to-step energy jitter in contact-heavy simulations
MuJoCo shows excellent long-term energy stability. However, I’ve noticed that total energy drift can hide high-frequency behavior at the per-step scale, especially in stiff contact or SDF-based setups.
Instead of long-term drift, I’m using a "Energy Jitter Index" (EJI) to look at short-term statistics:
Python
E = np.array(energies)
dE = np.diff(E)
# Captures high-frequency noise even if total drift is ~0
eji = np.std(dE) / (np.mean(np.abs(E)) + 1e-9)
Why this matters:
For SDF/Stiff Models: EJI becomes non-zero in setups where the solver averages out energy over time but exhibits step-level "chattering."
For MJX/RL: This jitter might introduce gradient noise in policies trained on per-step transitions, even if the physics remains "globally" conserved.
Question: Has anyone else used similar diagnostics for fine-grained stability? Could EJI be a useful metric (or even a reward penalty) to improve training smoothness in MJX?
Beta Was this translation helpful? Give feedback.
All reactions