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.
| Term | Required | Unit (SI) | Units a fit may use | Bounds | Measured by | Definition |
|---|---|---|---|---|---|---|
motorconst | yes | engine-defined (the engine's own SI unit for each component) | mujoco | — | measure-only board calibration, then the envelope ladder | MuJoCo dcmotor's motorconst (2 numbers), as mjs_setToDCMotor takes it; unit mujoco means MuJoCo's own (SI) units for each entry. |
resistance | yes | Ω | Ω, mΩ | > 0 | measure-only board calibration, then the envelope ladder | MuJoCo dcmotor's resistance, the winding resistance the electrical model uses, as mjs_setToDCMotor takes it. |
nominal | no | engine-defined (the engine's own SI unit for each component) | mujoco | — | measure-only board calibration, then the envelope ladder | MuJoCo dcmotor's nominal (3 numbers), as mjs_setToDCMotor takes it; unit mujoco means MuJoCo's own (SI) units for each entry. |
saturation | no | engine-defined (the engine's own SI unit for each component) | mujoco | — | measure-only board calibration, then the envelope ladder | MuJoCo dcmotor's saturation (3 numbers), as mjs_setToDCMotor takes it; unit mujoco means MuJoCo's own (SI) units for each entry. |
inductance | no | engine-defined (the engine's own SI unit for each component) | mujoco | — | measure-only board calibration, then the envelope ladder | MuJoCo dcmotor's inductance (2 numbers), as mjs_setToDCMotor takes it; unit mujoco means MuJoCo's own (SI) units for each entry. |
cogging | no | engine-defined (the engine's own SI unit for each component) | mujoco | — | measure-only board calibration, then the envelope ladder | MuJoCo dcmotor's cogging (3 numbers), as mjs_setToDCMotor takes it; unit mujoco means MuJoCo's own (SI) units for each entry. |
controller | no | engine-defined (the engine's own SI unit for each component) | mujoco | — | measure-only board calibration, then the envelope ladder | MuJoCo dcmotor's controller (6 numbers), as mjs_setToDCMotor takes it; unit mujoco means MuJoCo's own (SI) units for each entry. |
thermal | no | engine-defined (the engine's own SI unit for each component) | mujoco | — | measure-only board calibration, then the envelope ladder | MuJoCo dcmotor's thermal (6 numbers), as mjs_setToDCMotor takes it; unit mujoco means MuJoCo's own (SI) units for each entry. |
lugre | no | engine-defined (the engine's own SI unit for each component) | mujoco | — | measure-only board calibration, then the envelope ladder | MuJoCo 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.
| Signal | Unit | What it is |
|---|---|---|
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). |
Backends
| Backend | How | Engine | Implementation | Note |
|---|---|---|---|---|
mujoco | native | mujoco ≥ 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
| Dim | Unit | What a fit states its range over |
|---|---|---|
output_speed | rad/s | |v|, the output speed the terms were fitted or checked across. |
current | A | |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.
| File | Bytes | sha256 |
|---|---|---|
| README.md | 4,891 | aabc9ebce725dcfb2b3ee41c16e01e32e85d43ea7c41c09cb212ed72949709f7 |
| model.json | 5,797 | cfae50f856db6518519ecc18817b5745361a3b0368b8586641096f4668405931 |
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
| term | required | unit (SI) | units a fit may use | measured by |
|---|---|---|---|---|
motorconst | yes | engine-defined (the engine's own SI unit for each component) | mujoco (engine-defined) | measure-only board calibration, then the envelope ladder |
resistance | yes | Ω | Ω, mΩ | measure-only board calibration, then the envelope ladder |
nominal | no | engine-defined (the engine's own SI unit for each component) | mujoco (engine-defined) | measure-only board calibration, then the envelope ladder |
saturation | no | engine-defined (the engine's own SI unit for each component) | mujoco (engine-defined) | measure-only board calibration, then the envelope ladder |
inductance | no | engine-defined (the engine's own SI unit for each component) | mujoco (engine-defined) | measure-only board calibration, then the envelope ladder |
cogging | no | engine-defined (the engine's own SI unit for each component) | mujoco (engine-defined) | measure-only board calibration, then the envelope ladder |
controller | no | engine-defined (the engine's own SI unit for each component) | mujoco (engine-defined) | measure-only board calibration, then the envelope ladder |
thermal | no | engine-defined (the engine's own SI unit for each component) | mujoco (engine-defined) | measure-only board calibration, then the envelope ladder |
lugre | no | engine-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
| backend | how | engine | what runs |
|---|---|---|---|
| mujoco | native | mujoco ≥ 3.16.0, release named by the fit | 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. |
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.