Mujoco mjv_movePerturb: how does it work? There is no detailed documentation #2790
Unanswered
jacopotdsc
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
Hi!
I am a graduate student and I use MuJoCo for a project
My setup
C++ with mujoco 3-3-4, ubuntu 22.04
My question
I have to implement drag feature in a Mujoco simulator with mouse but I am struggling to do it: the aim to achieve is to move an object as the mouse move. Following I will put some code.
When i click on an object and I move the mouse, the object start move but not as the mouse. I also tried to use the following function to compute the delta using a function to compute the delta in 3D coordinate.
My question is: where am I wrong? is projectClick function working well? how should I compute the delta? Furthemore, in what reference system the delta's values to given to mjv_movePerturb? I tried different ways but none of them are working.
I want to understand how compute reldx and reldx. I tried with delta of the mouse, delta with projectClick, projectClick and intersectRayAndPlane but I can't compute the right delta to have the effect to drag an object as the mouse
Minimal model and/or code that explain my question
Confirmations
Beta Was this translation helpful? Give feedback.
All reactions