M3.stribeck
Stribeck 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
stribeck) - Fits
- 0
- Definition
- model.json · sha256
336b22e8b61428b5cc58a24504d711778a59b455c29875152e0da7fefb77b8d8(a fit binds it by this sha256) - Kept versions
- none: no fit binds an earlier model.json
What it is
Coulomb + viscous + Stribeck. Friction that falls from its breakaway value to the Coulomb value as the output speeds up, plus viscous friction (the Stribeck curve).
Equation
tau_r = (coulomb_friction + (breakaway_torque - coulomb_friction)*exp(-(|v|/stribeck_velocity)^stribeck_exponent))*sign(v) + viscous_friction*v; stribeck_exponent is 2 when absent
Terms
Every term a fit of M3.stribeck may state: 4 required, 2 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). |
breakaway_torque | yes | N·m | N·m, mN·m | — | slow plateaus below 0.5 rad/s | Static (breakaway) friction torque at the output: the smallest torque that starts the output moving from rest, the peak of the Stribeck curve. It decays toward coulomb_friction as speed rises, over stribeck_velocity. |
stribeck_velocity | yes | rad/s | rad/s, rpm, deg/s | — | slow plateaus below 0.5 rad/s | Output speed scale over which friction falls from breakaway_torque to coulomb_friction (v_s in tau_f = Fc + (Fs - Fc) exp(-(|v|/v_s)^d)). The exponent d, when fitted, goes in conditions.stribeck_exponent; without it d = 2. |
stribeck_exponent | no | 1 (dimensionless) | > 0, default 2 | slow plateaus below 0.5 rad/s | Shape exponent d of the Stribeck curve, how sharply friction falls with speed; 2 when absent. | |
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. |
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 87f9bc8becd9dd5db7e1811b349fb96eb31e422435ab4c18ed43db7ab3952a5b | The contract's own ruler: stdlib Python, torque(terms, inputs, state, dt) -> (tau_r, state), terms in SI. |
js | reference | — | model.js · sha256 15bdb5ab166da818de23201e58f524d1cfb5e0604aa64ecad9f2ce51d68f1c34 | 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 static level sticks natively (frictionloss = breakaway_torque); the plugin adds back what friction falls by as the output speeds up, so sliding friction is the Stribeck curve. Maps: armature = output_inertia, frictionloss = breakaway_torque, 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. |
Assumptions
- Friction depends on speed only: not on load, temperature or rest time.
- The curve holds across the speeds it was fitted on; below the slowest plateau the breakaway level is extrapolated.
Fits of this model
No part hosts a fit of it yet.
Source
robotparts has no GitHub repository to link: the source of M3.stribeck is these published files, the folder models/actuator/stribeck/ of robotparts release 2026.12.01.1, served byte for byte under /v2/models/actuator/stribeck/ (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,968 | 5a1c264a105f1425b918710e6e478bc9980bffeb2e78c893273b1d72017b96cc |
| model.js | 827 | 15bdb5ab166da818de23201e58f524d1cfb5e0604aa64ecad9f2ce51d68f1c34 |
| model.json | 4,476 | 336b22e8b61428b5cc58a24504d711778a59b455c29875152e0da7fefb77b8d8 |
| model.py | 1,400 | 87f9bc8becd9dd5db7e1811b349fb96eb31e422435ab4c18ed43db7ab3952a5b |
README
M3.stribeck — Stribeck friction
Coulomb + viscous + Stribeck. Family: static friction. Rung: 3, friction that changes with state. Category: actuator.
Friction that is highest just as the output breaks away and falls to the Coulomb level as it speeds up (the Stribeck curve), plus viscous drag. In MuJoCo the breakaway level sticks natively and the plugin gives back the fall with speed each step.
When to use it. Use it when slow motion and starts from rest matter: the plateaus below 0.5 rad/s show the curve.
Equation
tau_r = (coulomb_friction + (breakaway_torque - coulomb_friction)*exp(-(|v|/stribeck_velocity)^stribeck_exponent))*sign(v) + viscous_friction*v; stribeck_exponent is 2 when absent
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 |
breakaway_torque | yes | N·m | N·m, mN·m | slow plateaus below 0.5 rad/s |
stribeck_velocity | yes | rad/s | rad/s, rpm, deg/s | slow plateaus below 0.5 rad/s |
stribeck_exponent | no | 1 | 1 | slow plateaus below 0.5 rad/s |
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):
stribeck_exponent: Shape exponent d of the Stribeck curve, how sharply friction falls with speed; 2 when absent.
Inputs and state
- input
v(rad/s): The output's angular speed.
Backends
| backend | how | engine | what runs |
|---|---|---|---|
| python | reference | — | model.py (sha256 87f9bc8becd9…). The contract's own ruler: stdlib Python, torque(terms, inputs, state, dt) -> (tau_r, state), terms in SI. |
| js | reference | — | model.js (sha256 15bdb5ab166d…). 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 static level sticks natively (frictionloss = breakaway_torque); the plugin adds back what friction falls by as the output speeds up, so sliding friction is the Stribeck curve. Maps: armature = output_inertia, frictionloss = breakaway_torque, 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. - Friction depends on speed only: not on load, temperature or rest time.
- The curve holds across the speeds it was fitted on; below the slowest plateau the breakaway level is extrapolated.
Use it
import importlib.util
spec = importlib.util.spec_from_file_location("stribeck", "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.3. It is robotparts/2.3's stribeck kind. The contract is SCHEMA2.md §4.3.2; the fit format is schemas/model.schema.json.