Open daichi-3110 opened 4 years ago
add actuator/motor
You can also set sim.data.xfrc_applied or sim.data.qfrc_applied xfrc_applied is (nbody, 6) 3D force and 3D torque qfrc_applied is (nv, 6) 3D force and 3D torque applied at generalized position
To set these variables you need to update the matrix values since they are not explicitly writeable: sim.data.xfrc_applied[:] = new_xfrc # Or something like that
I hope this helps
For xfrc_applied
where is the force applied?
Ie center of mass? or at some other position?
Based on this, xfrc_applied
is applied at the center of mass for the body.
If you want to apply force on object in a short time, just add it to data->xfrc_applied, this work on next step only, xfrc_applied() will apply the force forever.
Hello.
I want to apply external forces to the model. Is there a way to apply an external force to the model?