pub struct Lugre {
pub on: bool,
pub sigma0: f64,
pub sigma1: f64,
pub viscous: f64,
pub coulomb: f64,
pub stiction: f64,
pub stribeck_v: f64,
pub preload: f64,
pub load_dependent: bool,
}Expand description
LuGre friction contact: Coulomb, viscous, stiction and the Stribeck drop between them, with one internal state s (the bristle deflection).
Fields§
§on: bool§sigma0: f64§sigma1: f64§viscous: f64§coulomb: f64§stiction: f64§stribeck_v: f64§preload: f64Guide preload; with load_dependent the Coulomb and stiction levels scale with preload + load.
load_dependent: boolImplementations§
Source§impl Lugre
impl Lugre
pub fn from_config(cfg: &Config, table: &str) -> Result<Self, ConfigError>
Sourcepub fn load_scale(&self, load: f64, nominal_load: f64) -> f64
pub fn load_scale(&self, load: f64, nominal_load: f64) -> f64
Factor on the friction levels for a guide load, relative to the load the levels were given for.
Sourcepub fn level(&self, v: f64, load_scale: f64) -> f64
pub fn level(&self, v: f64, load_scale: f64) -> f64
Sliding level g(v) = Fc + (Fs - Fc) exp(-(v/vs)^2), times the load scale.
Sourcepub fn eval(&self, v: f64, s: f64, load_scale: f64) -> (f64, f64)
pub fn eval(&self, v: f64, s: f64, load_scale: f64) -> (f64, f64)
Returns (friction force opposing positive v, ds/dt).
Sourcepub fn steady(&self, v: f64, load_scale: f64) -> [f64; 3]
pub fn steady(&self, v: f64, load_scale: f64) -> [f64; 3]
Steady sliding at v, g(v) sign(v) + b v, split into [Coulomb, viscous, stiction]: the Coulomb level, b v, and what the Stribeck curve adds to the Coulomb level, (Fs - Fc) exp(-(v/vs)^2), each times the load scale. Zero with the effect off.
Sourcepub fn feedforward(&self, v: f64, load_scale: f64) -> f64
pub fn feedforward(&self, v: f64, load_scale: f64) -> f64
The steady sliding force for a feedforward at a planned speed v (Machine::steady_friction): steady’s sum, its
level g(v) faded in by tanh(v / v_s) over the Stribeck speed, g(v) tanh(v / v_s) + b v. Above a few v_s it is
steady (1 m/s on a 10 mm/s Stribeck speed: to 1e-86); towards rest it falls to 0 smoothly instead of stepping
from the breakaway level, so that a move’s last micrometres and its stop put no torque step on the axis, as the
bristles that stick there take the force over without one.
Sourcepub fn split(&self, v: f64, s: f64, load_scale: f64) -> [f64; 3]
pub fn split(&self, v: f64, s: f64, load_scale: f64) -> [f64; 3]
The force of eval split into [Coulomb, viscous, stiction]: b v, and the bristle force (all the rest) shared
in the proportion of the Coulomb level to what the Stribeck curve adds to it at this speed. In steady
sliding these are the parts of steady; at rest the bristles hold with the shares of the stiction level.