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.
| Term | Required | Unit (SI) | Units a fit may use | Bounds | Measured by | Definition |
|---|---|---|---|---|---|---|
coulomb_friction | yes | N·m | N·m, mN·m | — | velocity plateaus, both directions, 6-8 speeds, each at least one rotor turn | Coulomb friction torque at the output: the constant torque that opposes motion (MuJoCo frictionloss; robot.json frictionloss_nm, from a scope-part value only). |
viscous_friction | yes | N·m·s/rad | N·m·s/rad, mN·m·s/rad | — | velocity plateaus, both directions, 6-8 speeds, each at least one rotor turn | Viscous friction coefficient at the output (MuJoCo damping). |
friction_load_coefficient | yes | 1 (dimensionless) | — | pendulum sweeps with 2-3 masses | Load-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_inertia | no | kg·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.
| Signal | Unit | What it is |
|---|---|---|
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). |
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 |
|---|---|---|---|---|
python | reference | — | model.py · sha256 03b5cb124ad4a66bffa3298b4fccf831f17c33c147d15c43d99ef44920587033 | The contract's own ruler: stdlib Python, torque(terms, inputs, state, dt) -> (tau_r, state), terms in SI. |
js | reference | — | model.js · sha256 d50eb2222039019497aa11972aca5479a7517a429ef2b99c28cd8655c9b3a0d0 | 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. |
mujoco | plugin | 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. 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
| Dim | Unit | What a fit states its range over |
|---|---|---|
output_speed | rad/s | |v|, the output speed the terms were fitted or checked across. |
load_torque | N·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.
| File | Bytes | sha256 |
|---|---|---|
| README.md | 3,762 | 261bf3e5975117bb9b0dbff795183092848149697f63b9e580f4d2df2df7db0a |
| model.js | 789 | d50eb2222039019497aa11972aca5479a7517a429ef2b99c28cd8655c9b3a0d0 |
| model.json | 4,133 | fc915dd8f01476838ebb081de75b37b12b3ed2e002abbc0754789a8396f6d157 |
| model.py | 1,266 | 03b5cb124ad4a66bffa3298b4fccf831f17c33c147d15c43d99ef44920587033 |
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
| term | required | unit (SI) | units a fit may use | measured by |
|---|---|---|---|---|
coulomb_friction | yes | N·m | N·m, mN·m | velocity plateaus, both directions, 6-8 speeds, each at least one rotor turn |
viscous_friction | yes | N·m·s/rad | N·m·s/rad, mN·m·s/rad | velocity plateaus, both directions, 6-8 speeds, each at least one rotor turn |
friction_load_coefficient | yes | 1 | 1 | pendulum sweeps with 2-3 masses |
output_inertia | no | kg·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
| backend | how | engine | what runs | ||
|---|---|---|---|---|---|
| python | reference | — | model.py (sha256 03b5cb124ad4…). The contract's own ruler: stdlib Python, torque(terms, inputs, state, dt) -> (tau_r, state), terms in SI. | ||
| js | reference | — | 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. | ||
| mujoco | plugin | mujoco, release named by the fit | robotparts.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.