Skip to content

torque/force sensor bug in closed loop system with weld constraints #2533

Open
@Swk6666

Description

@Swk6666

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.

Image

Image

Image

Image

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

github.zip

Code required for reproduction

No response

Confirmations

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions