pub struct Contact {
pub time: f64,
pub pose: Vec<f64>,
pub speed: f64,
pub obstacle: usize,
pub peak_force: f64,
pub impact_energy: f64,
}Expand description
The first contact of a run with an obstacle: when (the end of the base step that found it, s), at which tool pose, how fast the tool went into it (the length of its speed vector at the start of that step, before a push braked it, axis units per second) and which obstacle. With effects.crash, from then on: the largest force of the obstacles on the machine (N) and the impact energy, the most work their pushes had taken out of the machine at any time (J; at the deepest point of a blocked impact, the kinetic energy the impact took).
Fields§
§time: f64§pose: Vec<f64>§speed: f64§obstacle: usize§peak_force: f64§impact_energy: f64Trait Implementations§
Source§impl<'de> Deserialize<'de> for Contact
impl<'de> Deserialize<'de> for Contact
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Contact
Auto Trait Implementations§
impl Freeze for Contact
impl RefUnwindSafe for Contact
impl Send for Contact
impl Sync for Contact
impl Unpin for Contact
impl UnsafeUnpin for Contact
impl UnwindSafe for Contact
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