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

M3.load

Load-dependent friction

Family
static friction
Rung
M3: friction that changes with state: speed, load or rest
Category
Actuator
Since
robotparts/2.3 (robotparts/2.3 kind load_dependent)
Fits
0
Definition
model.json · sha256 fc915dd8f01476838ebb081de75b37b12b3ed2e002abbc0754789a8396f6d157 (a fit binds it by this sha256)
Kept versions
none: no fit binds an earlier model.json

What it is

Coulomb + viscous + load. Coulomb friction that grows with the load torque the part transmits (gear mesh friction), plus viscous friction.

Equation

tau_r = (coulomb_friction + friction_load_coefficient*|tau_load|)*sign(v) + viscous_friction*v, tau_load the output load torque

Terms

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

TermRequiredUnit (SI)Units a fit may useBoundsMeasured byDefinition
coulomb_frictionyesN·mN·m, mN·m—velocity plateaus, both directions, 6-8 speeds, each at least one rotor turnCoulomb friction torque at the output: the constant torque that opposes motion (MuJoCo frictionloss; robot.json frictionloss_nm, from a scope-part value only).
viscous_frictionyesN·m·s/radN·m·s/rad, mN·m·s/rad—velocity plateaus, both directions, 6-8 speeds, each at least one rotor turnViscous friction coefficient at the output (MuJoCo damping).
friction_load_coefficientyes1 (dimensionless)—pendulum sweeps with 2-3 massesLoad-dependent friction: the extra output friction torque per N·m of output load torque the part transmits (tau_f = Fc + mu |tau_load|), dimensionless. Gear mesh friction that grows with load.
output_inertianokg·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.

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.
input tau_loadN·mThe load torque the part transmits at the output (what it carries besides its own friction).
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 03b5cb124ad4a66bffa3298b4fccf831f17c33c147d15c43d99ef44920587033The contract's own ruler: stdlib Python, torque(terms, inputs, state, dt) -> (tau_r, state), terms in SI.
jsreference—model.js · sha256 d50eb2222039019497aa11972aca5479a7517a429ef2b99c28cd8655c9b3a0d0The 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.
mujocopluginmujoco—The unloaded level sticks natively; the plugin raises the joint's frictionloss each step by friction_load_coefficient * |tau_load|. Maps: armature = output_inertia, frictionloss = coulomb_friction, damping = viscous_friction. 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

DimUnitWhat a fit states its range over
output_speedrad/s|v|, the output speed the terms were fitted or checked across.
load_torqueN·m|tau_load|, the load the friction-load coefficient was fitted across.

Assumptions

  • Friction grows linearly with the load the gear mesh carries, the same in both directions.
  • Valid across the loads it was fitted on.

Fits of this model

No part hosts a fit of it yet.

Source

robotparts has no GitHub repository to link: the source of M3.load is these published files, the folder models/actuator/load/ of robotparts release 2026.12.01.1, served byte for byte under /v2/models/actuator/load/ (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.md3,762261bf3e5975117bb9b0dbff795183092848149697f63b9e580f4d2df2df7db0a
model.js789d50eb2222039019497aa11972aca5479a7517a429ef2b99c28cd8655c9b3a0d0
model.json4,133fc915dd8f01476838ebb081de75b37b12b3ed2e002abbc0754789a8396f6d157
model.py1,26603b5cb124ad4a66bffa3298b4fccf831f17c33c147d15c43d99ef44920587033

README

M3.load — Load-dependent friction

Coulomb + viscous + load. Family: static friction. Rung: 3, friction that changes with state. Category: actuator.

Coulomb friction that grows with the load the gearbox carries (gear-mesh friction), plus viscous drag. The plugin raises the joint's friction level each step from the load torque it reads.

When to use it. Use it for geared joints that carry gravity or payload; measure it with pendulum sweeps at 2-3 masses.

Equation

tau_r = (coulomb_friction + friction_load_coefficient*|tau_load|)*sign(v) + viscous_friction*v, tau_load the output load torque

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
coulomb_frictionyesN·mN·m, mN·mvelocity plateaus, both directions, 6-8 speeds, each at least one rotor turn
viscous_frictionyesN·m·s/radN·m·s/rad, mN·m·s/radvelocity plateaus, both directions, 6-8 speeds, each at least one rotor turn
friction_load_coefficientyes11pendulum sweeps with 2-3 masses
output_inertianokg·m²kg·m², kg·cm², kg·mm², g·cm², g·mm²chirps (or 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.
  • input tau_load (N·m): The load torque the part transmits at the output (what it carries besides its own friction).

Backends

backendhowenginewhat runs
pythonreference—model.py (sha256 03b5cb124ad4…). The contract's own ruler: stdlib Python, torque(terms, inputs, state, dt) -> (tau_r, state), terms in SI.
jsreference—model.js (sha256 d50eb2222039…). 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.
mujocopluginmujoco, release named by the fitrobotparts.mujoco. The unloaded level sticks natively; the plugin raises the joint's frictionloss each step by friction_load_coefficient *tau_load. Maps: armature = output_inertia, frictionloss = coulomb_friction, damping = viscous_friction.

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 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 load_torque (N·m) it holds across: |tau_load|, the load the friction-load coefficient was fitted across.
  • Friction grows linearly with the load the gear mesh carries, the same in both directions.
  • Valid across the loads it was fitted on.

Use it

import importlib.util
spec = importlib.util.spec_from_file_location("load", "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, "tau_load": 0.0}, None, 0.001)

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