Inconsistencies in sim2sim transfer to mujoco #2398
Replies: 4 comments 5 replies
-
|
Do you enable mujoco compatibility? rigid_options=gs.options.RigidOptions(
[...],
enable_mujoco_compatibility=True,
), |
Beta Was this translation helpful? Give feedback.
-
|
Note that Genesis does not advertise matching physics between Mujoco and Genesis. It turns out today Rigid Body physics is mostly consistent at the moment, but there is no guarantee it is still going to be the case in the future. |
Beta Was this translation helpful? Give feedback.
-
|
I suggest that you have a look at this unit test, and accompanying |
Beta Was this translation helpful? Give feedback.
-
|
Hi @duburcqa , Thanks a lot for the suggestions! There is still some gap in the recorded joint angles (see picture below). However this gap goes away if I increase the substeps in mujoco. Any idea about this?
|
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to debug the inconsistencies from genesis to mujoco transfer. I started with a tracking policy, but this had significant divergence, so now I am trying to simply open loop replay a trajectory in both genesis and mujoco.
I mimic all the joint physical properties: kp,kd,armature,frictionloss,stiffness,damping, as well as scene parameters such as dt, substeps etc.
I use affine actuators in mujoco (which should mimic the pd control in genesis).
My xml is also generated from the urdf using mujoco gui.
Am I missing anything? Or is this kind of divergence expected in transfer?
Public Repo for reproduction -> https://github.com/chaitanya1chawla/genesis_sim2sim
Below is the mujoco env, with debug balls showing the states of genesis.

Beta Was this translation helpful? Give feedback.
All reactions