pub(crate) fn fit(args: &Args, tr: &Translations) -> Result<(), Failure>Expand description
fit <machine>: what a measurement says the config should be, as a table of the config’s value, the
fitted one and its standard error, and on the error stream what to change in the config. With
--trace FILE the rigid values of each axis, or on a machine whose motors do not turn in proportion to its
axes or whose inertia changes with the pose (trace::per_axis_fit: the delta, the SCARA, the arm) the payload’s
factor and per motor added inertia, friction and constant torque, on an arm or SCARA per link its mass factor and
first moment where the trace tells them from the motors’ values, with what each value combines, what the trace
hardly excites and the pairs it cannot tell apart, and where the payload was picked or dropped during the trace
(payload_step_s) its factor before and after;
with --stiffness also the factor on the stiffness at --stiffness-key (the belts’ by default) from the trace’s
own moves; with --sweep FILE (a frequency response as sweep writes it, taken on motor --sweep-motor with
--amplitude) the load’s resonance on the belt.
With --dataset DIR --report OUT the whole report of a dataset folder instead (report::run).
With --within N the twin is judged: each row whose fitted value is more than N standard errors from the config’s
says FAIL (columns apart and result), exit code 1. With --write FILE the config is written with the fitted
values that are one key of it, and [bounds] of --sigmas standard errors (2 by default) about them.