Friction Models (M1-M6)#
BAM supports six friction models of increasing expressiveness, denoted \(\mathcal{M}_1\) to \(\mathcal{M}_6\).
They are ordered from the simplest Coulomb-Viscous approximation to a richer directional and quadratic formulation that better captures gearbox behavior.
\(\mathcal{M}_1\): Coulomb-Viscous
\(\mathcal{M}_2\): Stribeck
\(\mathcal{M}_3\): Load-dependent
\(\mathcal{M}_4\): Stribeck + load-dependent
\(\mathcal{M}_5\): Directional load-dependent
\(\mathcal{M}_6\): Quadratic directional variant
Notation#
In the equations below:
\(\dot{\theta}\) is joint velocity
\(\tau_m\) is motor torque
\(\tau_e\) is external/load torque
\(\tau_{fm}\) is the maximum resistive friction torque (friction budget)
The simulation then applies friction by clipping the stopping torque in \([-\tau_{fm},\tau_{fm}]\).
Drive/backdrive diagrams#
The drive/backdrive diagrams help to visualize the effect of friction. Let’s for example consider the \(\mathcal{M}_6\) model:
Here:
Below the blue line, the motor is driving the system
Above the red line, the system is backdriving the motor
On the black dashed line, motor torque and external torque exacttly cancel out
In the middle, the friction budget is preventing motion in the system
The lines with less opacity depicts what happens when the system is moving (1 rad/s per step). As you can notice, the faster the system is moving, the less friction appears here.
They can be obtained using bam.drive_backdrive command from the repository:
uv run -m bam.drive_backdrive --params bam/params/erob80_100/m1.json --max_torque 100
Model \(\mathcal{M}_1\): Coulomb-Viscous#
This is the baseline model used in most physics simulators. It keeps only viscous damping and a constant Coulomb term.
Model \(\mathcal{M}_2\): Stribeck#
This adds higher friction near zero speed and smooth transition to sliding. It models the fact that static friction is usually stronger than sliding friction.
Model \(\mathcal{M}_3\): Load-dependent#
This captures the increase of friction with transmitted gearbox load. It is useful when the apparent resistance depends on how hard the transmission is loaded.
Model \(\mathcal{M}_4\): Stribeck + load-dependent#
This combines presliding dynamics with load dependence. It adds Stribeck smoothing on top of a load-sensitive friction budget.
Model \(\mathcal{M}_5\): Directional load-dependent#
This separates motor-side and external-side contributions, which helps model directional efficiency/backdrivability asymmetry. It is appropriate when the gearbox behaves differently depending on the torque direction.
Model \(\mathcal{M}_6\): Quadratic directional#
with piecewise quadratic contribution:
This is useful for actuators where harmonic-drive-like effects create nonlinear load-friction coupling. It extends the directional model with a quadratic load term.
Modeling hierarchy#
The sequence \(\mathcal{M}_1 \rightarrow \mathcal{M}_6\) reflects increasing expressiveness and parameter count. In practice, BAM fits all candidates and selects the best trade-off from validation error.
Implementation in BAM#
Model behaviors are implemented in bam.model, notably: