Skip to main content

verdicts

Function verdicts 

Source
pub(crate) fn verdicts(args: &Args, tr: &Translations) -> Result<(), Failure>
Expand description

verdicts <machine>: the cycle judged against the motor data and the [ratings] of the config, one line per check and motor. --bands adds the lowest and highest value each check takes when the parameters with [bounds] in the config are at their bounds, one at a time, and the worst-case result. --bands --samples N runs the cycle N times with all of them between their bounds at once instead (see verdict_bands_sampled; --seed S picks another set of samples, 1 by default) and adds the share of the runs in which each check passed. --bands --worst searches per check for the worst corner of the bounds instead (verdict_worst) and prints its value, its result and which parameters are at their high and which at their low bound there; the number of cycles it simulated goes to the error stream. Where the config has obstacles, the error stream first says what the cycle as planned keeps from them (collision::check_cycle), and the check “collision” judges the run.