NotImplementedError: rne_postconstraint not implemented with equality constraints: connect, weld. #2382
Unanswered
HuNingHe
asked this question in
Asking for Help
Replies: 1 comment
-
MJX support for equality constraints is listed in Feature Parity. However, there are certain sensor and equality constraint combinations that MJX does not currently support. Please see this check in io.py for more details. Support for these sensor and equality constraint combinations could be added to MJX by updating rne_postconstraint to include the necessary equality constraint terms. For reference, the MuJoCo implementation is mj_rnePostConstraint. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Intro
I get error:
Traceback (most recent call last):
File "/home/zy/a2_model/model/xml/romela/test.py", line 16, in
mjx_model = mjx.put_model(mj_model)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zy/miniconda3/envs/mujoco_playground/lib/python3.12/site-packages/mujoco/mjx/_src/io.py", line 160, in put_model
raise NotImplementedError(
NotImplementedError: rne_postconstraint not implemented with equality constraints: connect, weld.
My setup
When I run code below:
mujoco>3.0.1
this xml works fine in mujoco
My question
how to add equality constraint in mjx
Minimal model and/or code that explain my question
If you encountered the issue in a complex model, please simplify it as much as possible (while still reproducing the issue).
Model:
minimal XML
Code:
Confirmations
Beta Was this translation helpful? Give feedback.
All reactions