Skip to content

[FEATURE] Support MJCF damper actuators #3749

Description

@han-xudong

Description

ModelBuilder.add_mjcf() silently drops MuJoCo <damper> actuator shortcuts. A damper is a controllable viscous actuator with F = -kv * velocity * control, so replacing it with a motor or passive joint damping would not preserve behavior.

Expected behavior

Import the target, inherited kv, gear, and ranges; expand the shortcut to affine gain [0, 0, -kv], no bias, direct control, and a required nonnegative control range; then reconstruct it with MjsActuator.set_to_damper().

Validation

Compare compiled fields and generalized force against native MuJoCo. For kv=4, transmission velocity 3, and control 0.5, both models should produce -6. Reject missing or negative control ranges clearly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions