spec add_equality behave differently from mjcf(dm_control) equality.add #2591
-
`### Intro Hi! I am a graduate student at SDU, I been using MuJoCo for my research on Manipulation.
They both have the same keyargument Is there something i am missing for spec api? spec_test.zip My setupMuJoCo 3.3.0 My questionNo response Minimal model and/or code that explain my question
Confirmations
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
Can you compare the relevant |
Beta Was this translation helpful? Give feedback.
-
@yuvaltassa for spec_weld_test it seems like they have different eq data, but I don't yet have a clear intuition for what that data implies. It would be nice if you could provide some insight on this. |
Beta Was this translation helpful? Give feedback.
-
Isn't the mocap body in two different positions i.e. [.1, .1, .1] vs [.1, .1, .2]? |
Beta Was this translation helpful? Give feedback.
-
Also, could you please compare m.eq_type as well? |
Beta Was this translation helpful? Give feedback.
-
So the issue is that when using mjSpec the default anchor position is [0, 1, 0]. This is defaulted to zero in the parser if no anchor is given but it needs to be done explicitly in mjSpec:
|
Beta Was this translation helpful? Give feedback.
So the issue is that when using mjSpec the default anchor position is [0, 1, 0].
This is defaulted to zero in the parser if no anchor is given
https://github.com/google-deepmind/mujoco/blob/main/src/xml/xml_native_reader.cc#L1987
but it needs to be done explicitly in mjSpec: