Inferensys

Glossary

Friction Model

A friction model is a mathematical representation of the resistive forces that oppose motion between contacting surfaces in a robotic joint or actuator, essential for accurate physics simulation.
ML engineer working on model compression and quantization, laptop showing performance benchmarks, technical workspace.
SENSOR AND ACTUATOR SIMULATION

What is a Friction Model?

A friction model is a mathematical representation of the complex resistive forces that oppose motion between contacting surfaces in a robotic joint or actuator.

A friction model mathematically represents the resistive forces opposing motion between contacting surfaces in a joint or actuator. It is a critical component of an actuator model within a physics simulation engine, enabling accurate prediction of motor behavior, energy consumption, and control stability. Key modeled phenomena include static friction (stiction), which must be overcome to initiate motion, Coulomb (dry) friction during sliding, and viscous damping, which increases with velocity. Accurate friction modeling is essential for sim-to-real transfer, as unmodeled friction is a primary source of the reality gap that degrades policy performance when moving from simulation to physical hardware.

In reinforcement learning for robotics, simplified friction models can lead to policies that fail on real actuators. Therefore, high-fidelity simulations employ advanced models like the LuGre model, which captures dynamic pre-sliding displacement and the Stribeck effect. These models are often calibrated using system identification techniques on real hardware data. For digital twin creation and hardware-in-the-loop testing, an accurate friction model allows the simulation of torque ripple, stick-slip oscillations, and thermal effects, providing a vital testbed for developing robust impedance control and torque control strategies before physical deployment.

MATHEMATICAL REPRESENTATION

Key Components of a Friction Model

A friction model decomposes the complex resistive forces in a joint or actuator into distinct, mathematically defined components. These components are combined to simulate realistic motor behavior, contact dynamics, and energy dissipation.

01

Coulomb (Dry) Friction

Coulomb friction models the constant force that opposes motion, independent of velocity. It is characterized by distinct static and kinetic coefficients.

  • Static Friction (Stiction): The force that must be overcome to initiate motion from rest. It is typically higher than kinetic friction.
  • Kinetic Friction: The constant opposing force present during sliding motion.
  • Model: Often represented as F_c = μ * F_n * sign(v), where μ is the friction coefficient and F_n is the normal force.
02

Viscous Friction

Viscous friction models the force that increases linearly with the relative velocity between surfaces, analogous to moving through a fluid.

  • Linear Damping: The force is proportional to velocity (F_v = b * v), where b is the viscous damping coefficient.
  • Energy Dissipation: This component is responsible for dissipating kinetic energy, preventing infinite oscillation in simulated systems.
  • Application: Critical for modeling motor damping, air resistance on moving parts, and the behavior of lubricated bearings.
03

Stribeck Effect

The Stribeck effect captures the observed decrease in friction force as velocity increases from zero, bridging static and kinetic friction regimes.

  • Negative Damping: At very low velocities, friction force decreases with increasing speed before the viscous term dominates.
  • Realism: This non-linear transition is essential for accurately simulating the 'stick-slip' phenomenon and the startup behavior of motors and sliding contacts.
  • Model: Often incorporated via an exponential decay term added to the Coulomb model.
04

Static Friction (Stiction) Breakaway

This component specifically models the discontinuity at zero velocity, where the applied force must exceed a threshold to overcome static adhesion.

  • Breakaway Torque: The maximum torque a motor can output before its rotor begins to turn against static friction.
  • Hysteresis: The model must account for the fact that the breakaway force is not applied continuously; once motion starts, the resisting force drops to the kinetic friction level.
  • Implementation: Often handled with a conditional state machine in the simulation, tracking whether the system is in a 'stuck' or 'sliding' state.
05

Friction as a Function of State

Advanced models incorporate dependencies beyond velocity, making friction a function of multiple system states for higher fidelity.

  • Position-Dependent Friction: Accounts for variations due to joint angle, lead screw position, or uneven wear on a surface.
  • Load-Dependent Friction: Models how normal force (F_n) changes with payload or configuration, directly scaling Coulomb friction.
  • Temperature Dependence: Simulates how heating in a motor or gearbox can reduce lubricant viscosity, altering viscous damping coefficients during extended operation.
06

Integration with Actuator & Physics Engine

The friction model is not standalone; it is integrated into the broader simulation loop to affect system dynamics.

  • Actuator Model Integration: The computed friction torque is subtracted from the motor's commanded torque to determine the net torque applied to the joint.
  • Physics Engine Coupling: Provides the resistive forces for the rigid body dynamics solver during contact resolution between objects.
  • Numerical Stability: The discontinuous nature of Coulomb friction requires careful numerical integration techniques (like implicit solvers) to prevent simulation instability.
SENSOR AND ACTUATOR SIMULATION

How Friction Models Work in Simulation

A friction model is a mathematical representation of the resistive forces opposing motion between contacting surfaces in a simulated joint or actuator. It is a critical component for achieving high-fidelity actuator simulation and enabling robust sim-to-real transfer for robotic policies.

A friction model mathematically defines the complex resistive forces between contacting surfaces in a simulated joint or actuator. It typically decomposes friction into distinct components: static friction (stiction) prevents motion initiation, Coulomb friction opposes sliding motion proportionally to normal force, and viscous damping increases with velocity. Accurate modeling of these non-linear effects is essential for simulating realistic motor dynamics, actuator saturation, and energy dissipation, which directly impacts the training and validation of low-level torque control and impedance control policies.

In physics simulation engines, friction models are implemented within the contact and rigid body dynamics solver, often as part of a joint's actuator model. Common implementations include the Dahl, LuGre, and generalized Maxwell-slip models, which capture pre-sliding displacement and hysteresis. Calibrating these models against ground truth data from physical hardware—a process known as system identification—is crucial for minimizing the sim-to-real gap. Without accurate friction, policies trained in simulation may fail on real robots due to unmodeled torque losses or unexpected stick-slip behavior.

COMPARISON

Common Friction Models in Robotics

A comparison of mathematical models used to simulate the resistive forces in robot joints and actuators, detailing their complexity, computational cost, and typical applications.

Model FeatureCoulomb (Static + Kinetic)Coulomb + ViscousLuGre (Dynamic Friction)

Core Components

Static (F_s), Kinetic (F_k) friction

Static (F_s), Kinetic (F_k), Viscous (b·v) damping

Bristle deflection state (z), Stribeck effect

Mathematical Complexity

Low (Discontinuous)

Low-Medium (Piecewise)

High (Differential Equation)

Computational Cost

Very Low

Low

High

Captures Stiction (Pre-Sliding)

Captures Velocity Dependence

Captures Frictional Memory/Hysteresis

Parameter Identification Difficulty

Low (2-3 params)

Medium (3-4 params)

High (6+ params)

Typical Simulation Use Case

Basic contact, coarse dynamics

General-purpose joint/actuator modeling

High-fidelity control, precise force feedback

CRITICAL BRIDGE

Role in Sim-to-Real Transfer

A high-fidelity friction model is essential for closing the 'reality gap' in Sim-to-Real Transfer. It ensures that control policies trained in simulation exhibit the same dynamic behavior and stability when deployed on physical hardware.

01

Closing the Actuation Reality Gap

The primary role of a friction model is to accurately simulate the non-linear resistive forces in joints and actuators. Without it, a policy trained in a frictionless simulation will fail on real hardware because:

  • It overestimates the robot's ability to make precise, small movements (defeated by static friction or stiction).
  • It cannot manage limit cycles—small, persistent oscillations—caused by the stick-slip phenomenon.
  • It misjudges energy dissipation, leading to overshoot and instability. A calibrated model allows the policy to learn robust control strategies that account for these real-world dynamics.
02

Enabling Robust Policy Learning

Incorporating friction during training forces the reinforcement learning agent to develop generalized, noise-invariant strategies. This is often combined with Domain Randomization, where friction parameters (Coulomb, viscous coefficients) are varied within plausible bounds. The policy learns to:

  • Exert slightly higher initial torques to overcome stiction.
  • Apply damping to settle movements smoothly.
  • Be less sensitive to exact actuator dynamics, which vary between units and degrade with wear. This results in a policy that is robust to the parameter uncertainty inherent in all physical systems.
03

System Identification & Calibration

Before simulation training begins, real robot data is used to calibrate the friction model. This process, called System Identification (SysID), involves:

  • Commanding the physical joint through a range of motions and measuring its response with high-resolution encoders and torque sensors.
  • Fitting the parameters of a chosen friction model (e.g., LuGre, Maxwell-slip) to the recorded data.
  • Validating the model by comparing its predicted motion to new, unseen real-world motion sequences. A well-identified model is the foundation for a high-fidelity simulation.
04

Preventing Simulation Bias

An oversimplified friction model (or none at all) introduces a simulation bias. The policy exploits this bias, learning behaviors that are physically impossible. For example, it might learn to rely on infinitesimally small joint adjustments for balance—a strategy that fails instantly on hardware where stiction prevents such micro-movements. A high-fidelity model mitigates this by ensuring the action space and state transitions in simulation closely match the real world's response, leading to policies that transfer effectively.

05

Key Model Formulations

Different mathematical models capture friction at varying levels of fidelity and computational cost:

  • Coulomb + Viscous: A simple, static model combining constant friction force and velocity-dependent damping. Fast but misses stiction and pre-sliding displacement.
  • LuGre Model: A dynamic model that captures the bristle deflection analogy, simulating pre-sliding displacement, stiction, and the Stribeck effect. More computationally expensive but highly accurate for precise control.
  • Maxwell-slip Models: Use a set of parallel spring-slider elements to model hysteresis and non-local memory effects. The choice depends on the required precision and available compute for real-time simulation.
06

Integration with Control Strategies

The friction model interacts directly with the robot's control stack in simulation:

  • Feedforward Compensation: The learned policy or controller can output torques that explicitly counteract the predicted friction force.
  • Impedance & Force Control: Fidelity is critical for simulating compliant interactions. A poor model makes a robot seem either too sticky or too slippery during contact tasks.
  • Joint-Level PID Tuning: Simulated PID gains tuned without friction will be wildly inappropriate on hardware, often causing instability. The model allows for realistic controller tuning in silico.
FRICTION MODEL

Frequently Asked Questions

A friction model mathematically represents the resistive forces that oppose motion between contacting surfaces in a joint or actuator. This FAQ addresses its core components, implementation in simulation, and critical role in sim-to-real transfer.

A friction model is a mathematical representation of the resistive forces that oppose relative motion between two contacting surfaces in a robotic joint or actuator. In physics simulation engines, it is a critical component of the actuator model that determines how a simulated motor responds to torque commands, directly impacting the realism of forward dynamics and inverse dynamics calculations. Accurate friction modeling is essential for sim-to-real transfer, as discrepancies between simulated and real-world friction are a primary source of the reality gap that can cause policies trained in simulation to fail on physical hardware.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.