Inverse dynamics with equality constraints (parallel robot) #2833
-
IntroHi! I am a 3d printing hobbyist, and I use MuJoCo to simulate a delta 3d printer design (parallel bot). I am totally new to multibody system dynamics, so I apologize for my ignorance. My setupMuJoCo 3.3.3 (but python says 335) on Ubuntu 24.04 My questionI want to estimate the forces applying to various elements of the design so I modeled the delta 3d printer in MuJoCo using equality constraints to "close the loops" in the kinematic chain. Conceptually, those equality should be strictly enforced, but I understand that MuJoCo considers soft constraints, so I just set model.eq_solref to the smallest possible value. I have meaningful results in forward dynamics, using three position actuators for the printer's three carriages: setting the actuators' positions to move the end-effector according to a sinusoïdal function of time, I could check that the forces at various joints match what I could estimate by other means, given the involved masses. I also tried a fixed position combined with an external force applied using xfrc_applied on the end effector (which is a root "floating" body only linked to the rest through constraints) with success. However, inverse dynamics gives me meaningless values, so I wonder if I'm doing something wrong, or if inverse dynamics is the adequate tool for my problem with equality constraints. Here is what I did:
I have non-zero values in sensors and in qfrc_inverse, but those value are inconsistent. I read the "Inverse dynamics" section of the manual's Simulation chapter, but I don't have the required background to understand it fully. So, any hint to put me on the right track will be greatly appreciated ! Minimal model and/or code that explain my questionI'm hoping that the above "high-level" description of what I'm doing can lead to some useful advice (I don't think my issue indicates a bug in MuJoCo), but if more details are required, I will try to minimize my model for illustration. Confirmations
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hello, I worked a bit on five-bar closed-loop mechanism earlier. I might be able to help or learn somthing new from this interesting application!
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Hello,
I worked a bit on five-bar closed-loop mechanism earlier. I might be able to help or learn somthing new from this interesting application!