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

M0.ideal

The ideal actuator

Family
ideal
Rung
M0: the ideal part: no losses, the stated inertia and ratio; the ablation baseline
Category
Actuator
Since
robotparts/2.5
Fits
0
Definition
model.json · sha256 4bcee8de7d6f1390d9492115e05026d8a5d67f3734120ccc3de0b95d25fc82e2 (a fit binds it by this sha256)
Kept versions
none: no fit binds an earlier model.json

What it is

no losses. The ablation baseline every rung is measured from: the stated inertia and ratio, no friction, no ripple.

Equation

tau_r = 0; armature = output_inertia

Terms

Every term a fit of M0.ideal may state: 1 required, 1 optional. Click a term for its definition and how it is measured.

TermRequiredUnit (SI)Units a fit may useBoundsMeasured byDefinition
output_inertiayeskg·m²kg·m², kg·cm², kg·mm², g·cm², g·mm²—chirps (or the datasheet)The part's own moment of inertia about its joint axis, referred to the OUTPUT: for a geared part its reflected inertia, MuJoCo's armature. A datasheet value or a scope-part measurement only. A joint's inertia together with whatever it drives belongs to the assembly, not the part, and robotparts does not publish it.
gear_rationo1 (dimensionless):1, —reading the datasheetRotor (input) turns per output turn, as a magnitude > 0: 10 for a 10:1 reducer such as the GIM4305-10, 1 for direct drive. A reversing reducer is still positive (a direction, if one is ever needed, is a separate key). cad2robot/1 robot.json stores rotor_to_output_ratio = 1 / gear_ratio. Missing means unknown, never 1, except on drivetrain direct_drive or motor, where it is 1 by definition.

Inputs, state and output

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

SignalUnitWhat it is
input vrad/sThe output's angular speed.
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
pythonreference—model.py · sha256 ba6b33a4cbd28aea7cb1874e6e646e9f5dd34c67a33290cb489296aeda0d4b76The contract's own ruler: stdlib Python, torque(terms, inputs, state, dt) -> (tau_r, state), terms in SI.
jsreference—model.js · sha256 533668d33e34e67d5e6d1dcc04fdf3f3f9d1b5d7d409f7f67c264d808a28e805The same equation as model.py as an ES module (torque(terms, inputs, state, dt) -> {tau, state}); tests/acceptance_v2/test_amendment_2_5.py holds the two to 1e-12.
mujoconativemujoco—MuJoCo expresses it as the joint's armature; nothing runs per step. Maps: armature = output_inertia. Settings a fit may give: friction_solref (number-list of 2): The joint's solreffriction (timeconst, dampratio): how hard frictionloss sticks; MuJoCo's soft default creeps below about 0.4 rad/s on a light hinge; friction_solimp (number-list of 5, > 0): The joint's solimpfriction (dmin, dmax, width, midpoint, power), every entry > 0.

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

No dims: a stated model is fitted from nothing, so it states no range.

Assumptions

  • No losses of any kind: the model is a baseline, never a prediction of a real part.

Fits of this model

No part hosts a fit of it yet.

Source

robotparts has no GitHub repository to link: the source of M0.ideal is these published files, the folder models/actuator/ideal/ of robotparts release 2026.12.01.1, served byte for byte under /v2/models/actuator/ideal/ (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.md2,83623e453d4989df9f01d788714026655079ed4284c02a4683e204581815ecb7103
model.js313533668d33e34e67d5e6d1dcc04fdf3f3f9d1b5d7d409f7f67c264d808a28e805
model.json2,9074bcee8de7d6f1390d9492115e05026d8a5d67f3734120ccc3de0b95d25fc82e2
model.py701ba6b33a4cbd28aea7cb1874e6e646e9f5dd34c67a33290cb489296aeda0d4b76

README

M0.ideal — The ideal actuator

no losses. Family: ideal. Rung: 0, the ideal part. Category: actuator.

The ideal actuator is the zero every other model is measured from: the part's inertia and ratio, and no losses at all. Nobody should simulate a real robot with it. Its job is the ablation baseline: a rung's gain is how much better it tracks the real part than M0 does on the same runs.

When to use it. Use it as the first row of every ladder, and to see how much of a twin's error is friction at all.

Equation

tau_r = 0; armature = output_inertia

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
output_inertiayeskg·m²kg·m², kg·cm², kg·mm², g·cm², g·mm²chirps (or the datasheet)
gear_rationo1:1, 1reading the datasheet

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

  • none

Inputs and state

  • input v (rad/s): The output's angular speed.

Backends

backendhowenginewhat runs
pythonreference—model.py (sha256 ba6b33a4cbd2…). The contract's own ruler: stdlib Python, torque(terms, inputs, state, dt) -> (tau_r, state), terms in SI.
jsreference—model.js (sha256 533668d33e34…). The same equation as model.py as an ES module (torque(terms, inputs, state, dt) -> {tau, state}); tests/acceptance_v2/test_amendment_2_5.py holds the two to 1e-12.
mujoconativemujoco, release named by the fitMuJoCo expresses it as the joint's armature; nothing runs per step. Maps: armature = output_inertia.

mujoco settings a fit may state:

  • friction_solref: 2 numbers. The joint's solreffriction (timeconst, dampratio): how hard frictionloss sticks; MuJoCo's soft default creeps below about 0.4 rad/s on a light hinge.
  • friction_solimp: 5 numbers, in (0, inf). The joint's solimpfriction (dmin, dmax, width, midpoint, power), every entry > 0.

Validity

  • A stated model is fitted from nothing, so it has no fitted range.
  • No losses of any kind: the model is a baseline, never a prediction of a real part.

Use it

import importlib.util
spec = importlib.util.spec_from_file_location("ideal", "model.py")
model = importlib.util.module_from_spec(spec); spec.loader.exec_module(model)
terms = {...}  # a fit's terms in SI (robotparts.models.si_terms(fit, definition) converts them)
tau_r, state = model.torque(terms, {"v": 0.0}, None, 0.001)

Defined since robotparts/2.5. The contract is SCHEMA2.md §4.3.2; the fit format is schemas/model.schema.json.