How to implement dynamically-created/destroyed snapping joints #2852
Unanswered
PLeoncini
asked this question in
Asking for Help
Replies: 0 comments
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.
-
Intro
Hello everybody,
I am a researcher in VR at CIRA the Italian Aerospace Research Centre, I use MuJoCo since some months coming from OpenDE (a.k.a.ODE).
My setup
MuJoCo 3.2.6, Simulate, Windows 11, Visual Studio 22 C++, Intel Core Ultra 165 w/ NVIDIA RTX graphics.
My question
For doing stable assemblies in a VR maintainance simulator based on ODE, I use to create/destroy a joint linking two bodies whenever assembly/disassembly (breaking) conditions hold (e.g. distance a/o angle b/w the two over/below certain thresholds) - a sort of breakable snaps b/w two bodies to directly manipulate in VR.
Is there a way to resemble such a behaviour in MuJoCo?
I saw a mjs_delete function for destroying an Element, such as maybe a Joint. But I can't find how to create a new joint with type and attributes programmatically. And, is this the straight way to do it, or would it be possible to somehow disable temporarily a joint for re-enabling it later if needed?
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