pub struct Task {
pub pick: [f64; 3],
pub place: [f64; 3],
pub via: Vec<[f64; 3]>,
pub lift_m: f64,
pub dwell_s: f64,
pub payload_kg: Option<f64>,
pub cycle_time_s: Option<f64>,
pub set: Vec<String>,
pub origin: Vec<(String, Vec<f64>)>,
}Expand description
A task in tool space for comparing kinematics (compare_kinematics), read from a task file (Task::parse): pick and
place positions and via points of the way between them, x y z in m relative to each machine’s origin (origin, by
default the middle of its axis ranges), z up; the lift above pick and place; the dwell of the gripper; the payload;
the target cycle time (or rate); assignments made to every machine’s config (set, e.g. cycle.timing = ...); and
per machine id an origin of its own, in its tool coordinates (one value per axis).
Fields§
§pick: [f64; 3]§place: [f64; 3]§via: Vec<[f64; 3]>§lift_m: f64§dwell_s: f64§payload_kg: Option<f64>§cycle_time_s: Option<f64>§set: Vec<String>§origin: Vec<(String, Vec<f64>)>Implementations§
Source§impl Task
impl Task
Sourcepub fn parse(text: &str) -> Result<Task, String>
pub fn parse(text: &str) -> Result<Task, String>
A task file (TOML): pick = [x, y, z], place = [x, y, z], optional via = [[x, y, z], ...], lift_m,
dwell_s, payload_kg, cycle_time_s or rate_per_min, set = ["path = value", ...] and a table [origin]
of machine id = [one value per axis]. The error names the key that is wrong.