pub struct Slice {
pub x: (f64, f64),
pub y: (f64, f64),
pub n: usize,
pub condition: Vec<f64>,
pub goes: Vec<bool>,
pub acceleration: Vec<f64>,
}Expand description
A horizontal slice through what the machine reaches, at height z of its third axis (workspace_slice).
Fields§
§x: (f64, f64)The span of the first two axes the grid covers, (low, high) each: their ranges and half of their width beyond each end, so that the reach shows where it goes past the travel range.
y: (f64, f64)§n: usizeNodes per side: node (i, j) is at x.0 + i (x.1 - x.0) / (n - 1), and likewise in y with j.
condition: Vec<f64>Per node, row after row (j outer): the condition number (Machine::condition; INFINITY out of reach of the
kinematics), whether the machine goes there (Machine::unreachable has nothing against it), and the largest
acceleration in the worst direction (worst_acceleration, with each motor’s peak torque; NaN out of reach).
goes: Vec<bool>§acceleration: Vec<f64>Trait Implementations§
impl StructuralPartialEq for Slice
Auto Trait Implementations§
impl Freeze for Slice
impl RefUnwindSafe for Slice
impl Send for Slice
impl Sync for Slice
impl Unpin for Slice
impl UnsafeUnpin for Slice
impl UnwindSafe for Slice
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more