Description
Intro
Hi!
I am a phd in BIT, I use MuJoCo for my research on Collaborative control of dual-arm robot.
My setup
mujoco3.3.0 / mac os 15 / python3.10
What's happening? What did you expect?
When I use a weld constraint in MuJoCo to form a closed-loop constraint system, the data read by the torque/force sensor attached to the joint is inconsistent with data.qfrc_applied, data.qfrc_constraint, data.qfrc_actuator, or their combinations. I expect the value of the torque sensor in the direction of the joint's rotation axis to be consistent with these data. To verify that my assumption is correct, I also built a Simscape Multibody model, and the data obtained there were consistent, which further convinces me that this is a bug.
Steps for reproduction
Reproducing this bug is straightforward. You need to download the zip file I’ve uploaded here and run the scene2_position.py file. The corresponding XML file is also included in the zip file.
I’ve also uploaded the .slx file from Simulink here, which requires MATLAB version >= R2023a.
Minimal model for reproduction
Code required for reproduction
No response
Confirmations
- I searched the latest documentation thoroughly before posting.
- I searched previous Issues and Discussions, I am certain this has not been raised before.