Skip to content

Confusing unphysical interaction of noslip, frictionloss, and damping #2423

Open
@jjyyxx

Description

@jjyyxx

Intro

Hi!

I am a graduate student at HKU, I use MuJoCo for my research on robotic manipulation.

My setup

MuJoCo 3.2.7, Python and C, Linux

What's happening? What did you expect?

While experimenting with a hinge joint that includes frictionloss, I encountered an unexpected and unphysical behavior. After simplifying the model, I found that when using a single-joint setup with all of the following parameters set to values greater than 0—noslip_iterations, frictionloss, and damping—the deceleration of the joint becomes excessively slow.

Specifically, when I load the model and keyframe it, I expect the cylinder to decelerate to zero speed quickly due to the effects of friction and damping. This behavior works as expected when any one of the three options is turned off. However, when all three are active, the cylinder continues rotating, but the deceleration is very gradual.

Questions:

  1. Is this slow deceleration the expected behavior (documentation mentions that noslip solver "no longer be solving a well-defined optimization problem")?
  2. Could I be misusing one or more of these options?
  3. Or, is this potentially indicative of a bug in the simulation?

Steps for reproduction

Load the model, and load keyframe 0.

Minimal model for reproduction

<?xml version="1.0" encoding="utf-8"?>
<mujoco>
  <compiler angle="radian"/>

  <option timestep="0.01" integrator="implicit" noslip_iterations="1" />

  <worldbody>
    <body>
      <joint type="hinge" axis="0 0 1" frictionloss="0.01" damping="0.1" />
      <geom type="cylinder" size="0.0125 0.005"/>
      <site pos="0.0125 0 0" rgba="0 1 0 1"/>
    </body>
  </worldbody>

  <keyframe>
    <key qpos="0" qvel="10"/>
  </keyframe>
</mujoco>

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