SuperDex Physics C++ API
Loading...
Searching...
No Matches
superdex::ArticulatedJointFrictionParams Struct Reference

Per-joint friction parameters for articulated bodies. More...

#include <articulated_body_params.h>

Public Member Functions

bool operator== (ArticulatedJointFrictionParams const &) const =default

Public Attributes

real coulomb = 0_r
 Coulomb friction coefficient [N or N·m].
std::optional< real > falloffVel = std::nullopt
 [Deprecated] Ignored.
real preslidingDisplacement = 1e-4_r
 Displacement of a joint from its friction anchor [m or rad] at which dry friction reaches its static peak.
real stictionExtra = 0_r
 [Experimental] Extra stiction force/torque [N or N·m] representing the difference between static and dynamic friction.
real stribeckVel = 0_r
 [Experimental] Stribeck velocity [m/s or rad/s] governing how sharply friction transitions from static to dynamic coefficients as the sliding velocity increases.
real viscous = 0_r
 Viscous friction coefficient [N·s/m or N·m·s/rad].

Detailed Description

Per-joint friction parameters for articulated bodies.

Viscous and dry friction force/torque contributions are added together.

  • Viscous friction force/torque is proportional to velocity with coefficient viscous.
  • Dry friction is elasto-plastic. Each joint keeps a friction anchor, and its dry friction force/torque grows with the (linear or angular) displacement of the joint from the anchor, up to the static peak coulomb + stictionExtra at preslidingDisplacement. A load below the static peak is held at the displacement from the anchor that balances it. Beyond the presliding displacement, the joint slides, and its anchor follows it.
  • While the joint slides, dry friction force/torque (excluding additional viscous friction) has magnitude coulomb + stictionExtra * exp(-pow(|v| / stribeckVel, 2)) when stribeckVel > 0, with |v| the magnitude of the (linear or angular) sliding velocity. If stribeckVel = 0, the Stribeck term is omitted and the magnitude is coulomb. This causes friction to decrease smoothly from the peak static value to coulomb at high velocities.
Note
The friction anchors are part of the actor history. Setting the joint positions resets them; other setters keep them.
Units are [N] and [m] for translation DoFs (prismatic joints), and [N·m] and [rad] for rotation DoFs (revolute and spherical joints).

Definition at line 148 of file articulated_body_params.h.

Member Function Documentation

◆ operator==()

bool superdex::ArticulatedJointFrictionParams::operator== ( ArticulatedJointFrictionParams const & ) const
default

Member Data Documentation

◆ coulomb

real superdex::ArticulatedJointFrictionParams::coulomb = 0_r

Coulomb friction coefficient [N or N·m].

Note
Default is zero (no Coulomb friction).

Definition at line 161 of file articulated_body_params.h.

◆ falloffVel

std::optional<real> superdex::ArticulatedJointFrictionParams::falloffVel = std::nullopt

[Deprecated] Ignored.

Dry friction no longer uses a velocity threshold: it is elasto-plastic, with preslidingDisplacement.

Warning
Deprecated: will be removed in a future release. Setting it logs a warning.

Definition at line 183 of file articulated_body_params.h.

◆ preslidingDisplacement

real superdex::ArticulatedJointFrictionParams::preslidingDisplacement = 1e-4_r

Displacement of a joint from its friction anchor [m or rad] at which dry friction reaches its static peak.

Below it, dry friction force/torque grows smoothly from zero with the displacement, which is elastic: the joint returns towards its anchor when the load drops. Beyond it, the joint slides.

Note
Must be positive. Smaller values hold loads more stiffly, but may degrade convergence.
Below it, dry friction adds no damping. A held joint is damped only by viscous (zero by default) and by the time integration.

Definition at line 175 of file articulated_body_params.h.

◆ stictionExtra

real superdex::ArticulatedJointFrictionParams::stictionExtra = 0_r

[Experimental] Extra stiction force/torque [N or N·m] representing the difference between static and dynamic friction.

Warning
This is an experimental feature. It may be changed or removed in the future. Use at your own risk.
Nonzero values may harm convergence.
Nonzero extra stiction with zero Stribeck velocity results in a nonsmooth force.
Note
Must not be negative. The coulomb represents dynamic friction in the high-velocity limit, and peak static friction is coulomb + stictionExtra.
Defaults to zero (no difference between static and dynamic friction).

Definition at line 198 of file articulated_body_params.h.

◆ stribeckVel

real superdex::ArticulatedJointFrictionParams::stribeckVel = 0_r

[Experimental] Stribeck velocity [m/s or rad/s] governing how sharply friction transitions from static to dynamic coefficients as the sliding velocity increases.

Warning
This is an experimental feature. It may be changed or removed in the future. Use at your own risk.
Nonzero values may harm convergence.
Nonzero extra stiction with zero Stribeck velocity results in a nonsmooth force.
Note
Must not be negative. A smaller value means a sharper transition.
Defaults to zero.
This has no effect if stictionExtra is zero.
The sliding velocity is the slip since the start of the step divided by the time since then, so higher-order integrators may be only first-order accurate while the joint slides.

Definition at line 215 of file articulated_body_params.h.

◆ viscous

real superdex::ArticulatedJointFrictionParams::viscous = 0_r

Viscous friction coefficient [N·s/m or N·m·s/rad].

Note
Default is zero (no viscous friction).

Definition at line 154 of file articulated_body_params.h.


The documentation for this struct was generated from the following file: