Skip to main content

worst_acceleration

Function worst_acceleration 

Source
pub fn worst_acceleration(
    machine: &dyn Machine,
    pose: &[f64],
    peak: &[f64],
) -> f64
Expand description

The largest acceleration the motors can give the tool at pose in its worst direction, m/s^2: with T = A a + g the rigid model’s motor torques (Machine::feedforward_torque, linear in the acceleration a of the axes in metres) and peak each motor’s peak torque, motor k holds |g_k| + |A_k . d| a <= peak_k for a direction d; its worst is d along its row A_k, so a = min over k of (peak_k - |g_k|) / |A_k|. 0 where a motor cannot even hold the tool there.