robotparts.dev is a preview: every part is in the full catalog on GitHub and in a local build (python3 build/all.py).
robotparts

M5.dcmotor

MuJoCo's DC motor

Family
motor electrics
Rung
M5: the motor's electrics and heat: R, L, back-EMF, winding temperature
Category
Actuator
Since
robotparts/2.3 (robotparts/2.3 kind mujoco_dcmotor)
Fits
0
Definition
model.json · sha256 cfae50f856db6518519ecc18817b5745361a3b0368b8586641096f4668405931 (a fit binds it by this sha256)
Kept versions
none: no fit binds an earlier model.json

What it is

DC motor electrics + heat + cogging + LuGre. MuJoCo's DC motor actuator (the dcmotor shortcut, mjs_setToDCMotor, MuJoCo 3.16): electrical dynamics, gain and bias (back-EMF, cogging, LuGre friction), with its parameters named and shaped as MuJoCo takes them. The simulator pins the MuJoCo release and the code that sets them.

Equation

MuJoCo's own: mjDYN_DCMOTOR (electrical dynamics), mjGAIN_DCMOTOR (K or K/R), mjBIAS_DCMOTOR (back-EMF, cogging, LuGre friction)

Terms

Every term a fit of M5.dcmotor may state: 2 required, 7 optional. Click a term for its definition and how it is measured.

TermRequiredUnit (SI)Units a fit may useBoundsMeasured byDefinition
motorconstyesengine-defined (the engine's own SI unit for each component)mujoco—measure-only board calibration, then the envelope ladderMuJoCo dcmotor's motorconst (2 numbers), as mjs_setToDCMotor takes it; unit mujoco means MuJoCo's own (SI) units for each entry.
resistanceyesΩΩ, mΩ> 0measure-only board calibration, then the envelope ladderMuJoCo dcmotor's resistance, the winding resistance the electrical model uses, as mjs_setToDCMotor takes it.
nominalnoengine-defined (the engine's own SI unit for each component)mujoco—measure-only board calibration, then the envelope ladderMuJoCo dcmotor's nominal (3 numbers), as mjs_setToDCMotor takes it; unit mujoco means MuJoCo's own (SI) units for each entry.
saturationnoengine-defined (the engine's own SI unit for each component)mujoco—measure-only board calibration, then the envelope ladderMuJoCo dcmotor's saturation (3 numbers), as mjs_setToDCMotor takes it; unit mujoco means MuJoCo's own (SI) units for each entry.
inductancenoengine-defined (the engine's own SI unit for each component)mujoco—measure-only board calibration, then the envelope ladderMuJoCo dcmotor's inductance (2 numbers), as mjs_setToDCMotor takes it; unit mujoco means MuJoCo's own (SI) units for each entry.
coggingnoengine-defined (the engine's own SI unit for each component)mujoco—measure-only board calibration, then the envelope ladderMuJoCo dcmotor's cogging (3 numbers), as mjs_setToDCMotor takes it; unit mujoco means MuJoCo's own (SI) units for each entry.
controllernoengine-defined (the engine's own SI unit for each component)mujoco—measure-only board calibration, then the envelope ladderMuJoCo dcmotor's controller (6 numbers), as mjs_setToDCMotor takes it; unit mujoco means MuJoCo's own (SI) units for each entry.
thermalnoengine-defined (the engine's own SI unit for each component)mujoco—measure-only board calibration, then the envelope ladderMuJoCo dcmotor's thermal (6 numbers), as mjs_setToDCMotor takes it; unit mujoco means MuJoCo's own (SI) units for each entry.
lugrenoengine-defined (the engine's own SI unit for each component)mujoco—measure-only board calibration, then the envelope ladderMuJoCo dcmotor's lugre (5 numbers), as mjs_setToDCMotor takes it; unit mujoco means MuJoCo's own (SI) units for each entry.

Inputs, state and output

What a backend feeds the model each step, what it carries between steps, and what it returns.

SignalUnitWhat it is
output tau_rN·mThe resisting torque at the output: what the motor must add to move the output as the inputs say. The joint feels -tau_r (a resisting torque opposes motion; ripple pushes and pulls with angle).

Backends

BackendHowEngineImplementationNote
mujoconativemujoco ≥ 3.16.0—MuJoCo 3.16's dcmotor actuator (mjs_setToDCMotor) takes the terms as they are; no other backend implements it. Maps: motorconst = motorconst, resistance = resistance, nominal = nominal, saturation = saturation, inductance = inductance, cogging = cogging, controller = controller, thermal = thermal, lugre = lugre.

reference: a file in this folder, torque(terms, inputs, state, dt) with terms in SI (the contract's own ruler; model.py and model.js agree to 1e-12), linked by its content at /v2/models/by-sha256/, the bytes a fit pins. native: the engine alone. plugin: robotparts' MuJoCo plugin runs the python reference each step. external: code outside robotparts, which a fit pins.

Validity

DimUnitWhat a fit states its range over
output_speedrad/s|v|, the output speed the terms were fitted or checked across.
currentA|i|, the winding current the electrics were fitted across.

Assumptions

  • MuJoCo's own DC motor equations, as its release documents them.

Fits of this model

No part hosts a fit of it yet.

Source

robotparts has no GitHub repository to link: the source of M5.dcmotor is these published files, the folder models/actuator/dcmotor/ of robotparts release 2026.12.01.1, served byte for byte under /v2/models/actuator/dcmotor/ (no listing there: each file below is its link). Each sha256 is the file's own; a fit's reference backend pins the same one.

FileBytessha256
README.md4,891aabc9ebce725dcfb2b3ee41c16e01e32e85d43ea7c41c09cb212ed72949709f7
model.json5,797cfae50f856db6518519ecc18817b5745361a3b0368b8586641096f4668405931

README

M5.dcmotor — MuJoCo's DC motor

DC motor electrics + heat + cogging + LuGre. Family: motor electrics. Rung: 5, the motor's electrics and heat. Category: actuator.

MuJoCo's own DC motor actuator (3.16): the winding's electrical dynamics, the motor constant, heat, cogging and LuGre friction, with every parameter named and shaped as MuJoCo takes it. Only MuJoCo implements it.

When to use it. Use it when current, voltage and heat limits matter: fast moves, long duty, a drive near its ceiling.

Equation

MuJoCo's own: mjDYN_DCMOTOR (electrical dynamics), mjGAIN_DCMOTOR (K or K/R), mjBIAS_DCMOTOR (back-EMF, cogging, LuGre friction)

Output tau_r (N·m): The resisting torque at the output: what the motor must add to move the output as the inputs say. The joint feels -tau_r (a resisting torque opposes motion; ripple pushes and pulls with angle).

Terms

termrequiredunit (SI)units a fit may usemeasured by
motorconstyesengine-defined (the engine's own SI unit for each component)mujoco (engine-defined)measure-only board calibration, then the envelope ladder
resistanceyesΩΩ, mΩmeasure-only board calibration, then the envelope ladder
nominalnoengine-defined (the engine's own SI unit for each component)mujoco (engine-defined)measure-only board calibration, then the envelope ladder
saturationnoengine-defined (the engine's own SI unit for each component)mujoco (engine-defined)measure-only board calibration, then the envelope ladder
inductancenoengine-defined (the engine's own SI unit for each component)mujoco (engine-defined)measure-only board calibration, then the envelope ladder
coggingnoengine-defined (the engine's own SI unit for each component)mujoco (engine-defined)measure-only board calibration, then the envelope ladder
controllernoengine-defined (the engine's own SI unit for each component)mujoco (engine-defined)measure-only board calibration, then the envelope ladder
thermalnoengine-defined (the engine's own SI unit for each component)mujoco (engine-defined)measure-only board calibration, then the envelope ladder
lugrenoengine-defined (the engine's own SI unit for each component)mujoco (engine-defined)measure-only board calibration, then the envelope ladder

Declared terms (the rest are registry keys, defined in SCHEMA2.md §7.3):

  • motorconst: MuJoCo dcmotor's motorconst (2 numbers), as mjs_setToDCMotor takes it; unit mujoco means MuJoCo's own (SI) units for each entry.
  • resistance: MuJoCo dcmotor's resistance, the winding resistance the electrical model uses, as mjs_setToDCMotor takes it.
  • nominal: MuJoCo dcmotor's nominal (3 numbers), as mjs_setToDCMotor takes it; unit mujoco means MuJoCo's own (SI) units for each entry.
  • saturation: MuJoCo dcmotor's saturation (3 numbers), as mjs_setToDCMotor takes it; unit mujoco means MuJoCo's own (SI) units for each entry.
  • inductance: MuJoCo dcmotor's inductance (2 numbers), as mjs_setToDCMotor takes it; unit mujoco means MuJoCo's own (SI) units for each entry.
  • cogging: MuJoCo dcmotor's cogging (3 numbers), as mjs_setToDCMotor takes it; unit mujoco means MuJoCo's own (SI) units for each entry.
  • controller: MuJoCo dcmotor's controller (6 numbers), as mjs_setToDCMotor takes it; unit mujoco means MuJoCo's own (SI) units for each entry.
  • thermal: MuJoCo dcmotor's thermal (6 numbers), as mjs_setToDCMotor takes it; unit mujoco means MuJoCo's own (SI) units for each entry.
  • lugre: MuJoCo dcmotor's lugre (5 numbers), as mjs_setToDCMotor takes it; unit mujoco means MuJoCo's own (SI) units for each entry.

Inputs and state

  • no per-step inputs

Backends

backendhowenginewhat runs
mujoconativemujoco ≥ 3.16.0, release named by the fitMuJoCo 3.16's dcmotor actuator (mjs_setToDCMotor) takes the terms as they are; no other backend implements it. Maps: motorconst = motorconst, resistance = resistance, nominal = nominal, saturation = saturation, inductance = inductance, cogging = cogging, controller = controller, thermal = thermal, lugre = lugre.

Validity

  • A fit states the range of output_speed (rad/s) it holds across: |v|, the output speed the terms were fitted or checked across.
  • A fit states the range of current (A) it holds across: |i|, the winding current the electrics were fitted across.
  • MuJoCo's own DC motor equations, as its release documents them.

Use it

Only MuJoCo implements this model: a fit's terms go into the dcmotor actuator as the backend's maps say.

Defined since robotparts/2.3. It is robotparts/2.3's mujoco_dcmotor kind. The contract is SCHEMA2.md §4.3.2; the fit format is schemas/model.schema.json.