Skip to main content

check_cycle

Function check_cycle 

Source
pub fn check_cycle(
    entry: &MachineEntry,
    cfg: &Config,
) -> Result<Option<PlanCheck>, ConfigError>
Expand description

The configured cycle checked as check_path does, before it runs: from the start pose to the first segment’s target with the payload attached (as the controller starts), then each segment from the target before it with the payload as that one left it, and round from the last to the first again. A segment with via points takes the path the planner times through them; the straight moves are taken as lines, which corner blending would cut short (the simulation itself is checked as it runs). The machine’s own parts are checked against each other along the way (PlanCheck::own, with profile.min_clearance_m as the distance under which parts at the start pose are joined, PlanCheck::at_start). None without obstacles where the machine has no two parts to check (or the cycle cannot be read: then it is not checked, where with obstacles it is an error). With [conveyor] the passes are checked instead (check_passes).