Skip to main content

flex_at

Function flex_at 

Source
pub fn flex_at(lean: &LeanNode, q: &[f64]) -> (f64, f64, f64)
Expand description

The spring that holds a leaning body upright at the pose q: (its stiffness k at the centre of mass, dk per metre of the lever axis, the tool tip’s travel per metre the centre of mass moves). The guide gives way sideways (lateral) and in tilt; a force at the distance h below it tilts it with the arm h, so the compliance at the centre of mass is 1 / lateral + h^2 / tilt, and the tool tip, h_tool below, moves k (1 / lateral + h h_tool / tilt) per metre of it. Both distances shrink as the lever axis travels: dk/dz = 2 k^2 h / tilt, the leaning axis’s own law (flex_at in its crate).