MuJoCo Actuator Targets#
Code |
MUJOCO.DJ.002 |
|---|---|
Validator |
MuJoCoActuatorTargetsChecker |
Compatibility |
other |
Tags |
🔑 |
Summary#
MuJoCo actuator prims must target valid MuJoCo-driven USD physics joints and author valid actuator parameter values.
Description#
MuJoCo-driven articulation control is represented by MjcActuator prims, fixed MjcTendon transmissions, and MjcEqualityJointAPI / NewtonMimicAPI joint equality couplings. Every MjcActuator prim must:
target exactly one non-fixed
UsdPhysics.Joint(that appliesMjcJointAPI) or one fixedMjcTendon(mjc:type = "fixed", whose selectedmjc:path/mjc:path:indicesentries target valid 1-DOFUsdPhysics.Jointprims withMjcJointAPIand non-zero effectivemjc:path:coefcontribution; omitted or empty[]mjc:path:indices/mjc:path:coefresolve to relationship order and unit1.0coefficients) viamjc:targetauthor paired range attributes when ranges are present
keep
mjc:ctrlRange:min,mjc:ctrlRange:max,mjc:forceRange:min, andmjc:forceRange:maxfinite, with min less than or equal to maxkeep authored
mjc:gainPrmandmjc:biasPrmvalues as non-empty numeric arraysauthor a non-empty
mjc:biasTypevalue whenmjc:biasTypeis present
Every non-fixed MuJoCo articulation joint (MjcJointAPI, physics:excludeFromArticulation = false) in the feature contract must satisfy one of the following:
be targeted directly by at least one
MjcActuator,receive a non-zero effective contribution in
mjc:path(andmjc:path:indices/mjc:path:coef) of a fixedMjcTendon(mjc:type = "fixed") targeted by anMjcActuator,be a 1-DOF scalar joint (
PhysicsRevoluteJointorPhysicsPrismaticJoint) coupled viaMjcEqualityJointAPI/NewtonMimicAPI(rel newton:mimicJoint, or legacyrel mjc:target) to an acyclic chain of 1-DOFMjcJointAPIarticulation leader joints rooted at an actuated joint, withnewton:mimicEnablednotfalse, non-zero effective coupling consumed by the applied schema (newton:mimicCoef1taking precedence over legacymjc:coef1, and higher-ordermjc:coef2..4consumed only whenMjcEqualityJointAPIis applied), finite polynomial coefficients, and numericmjc:solimp/mjc:solrefarrays when authored, orbe a 1-DOF scalar passive parallel-branch joint on a closed kinematic loop closed by an enabled joint with
physics:excludeFromArticulation = true(where at least one joint on that same loop is actuated, holding the loop’s actuated joint(s) leaves zero free unactuated motion dimensions in the loop constraint, and at least one endpoint body of the passive joint is a loop-only branch body whose movable joints all belong to the loop). Loop-closing joints (physics:excludeFromArticulation = true) omitMjcJointAPI.
Why is it required?#
Ensures MuJoCo actuators resolve to concrete USD joints.
Prevents orphaned actuators and unactuated MuJoCo-driven joints.
Catches invalid control, force, gain, and bias values before MuJoCo import.
Examples#
# Valid: actuator targets a MuJoCo-marked USD joint.
def MjcActuator "shoulder_actuator"
{
rel mjc:target = </robot/Physics/shoulder>
float mjc:ctrlRange:min = -3.14
float mjc:ctrlRange:max = 3.14
float mjc:forceRange:min = -150.0
float mjc:forceRange:max = 150.0
float[] mjc:gainPrm = [100.0, 0.0, 0.0]
float[] mjc:biasPrm = [0.0, -100.0, -10.0]
token mjc:biasType = "affine"
}
# Invalid: actuator target is missing.
def MjcActuator "bad_actuator"
{
float mjc:ctrlRange:min = -1.0
float mjc:ctrlRange:max = 1.0
}
How to comply#
Author one or more
MjcActuatorprims for independently driven MuJoCo articulation joints.Set
rel mjc:targetto either one valid non-fixedUsdPhysics.Jointthat appliesMjcJointAPI, or oneMjcTendonwhosemjc:pathtargets validMjcJointAPIjoints.For mimic / equality-coupled follower joints, apply
["MjcJointAPI", "NewtonMimicAPI", "MjcEqualityJointAPI"]on the follower joint withrel newton:mimicJointtargeting the leader joint (plusnewton:mimicCoef0,newton:mimicCoef1,newton:mimicEnabled = 1, and optionalmjc:solimp/mjc:solref), rather than authoring a competingMjcActuatoron the follower.For closed-loop 4-bar / parallel linkages, set
physics:excludeFromArticulation = 1on the loop-closing joint and omitMjcJointAPIfrom that excluded joint.Keep authored control and force ranges finite and ordered.
Keep authored gain and bias parameters numeric.
For More Information#
MuJoCo USD converter output and actuator authoring conventions.