Skip to main content

JointFit

Struct JointFit 

Source
pub struct JointFit {
    pub values: Vec<JointValue>,
    pub alike: Vec<(usize, usize)>,
    pub folded: Vec<String>,
    pub payload_steps: Vec<(f64, f64)>,
}
Expand description

Stage 1 in the motors’ coordinates (fit_joints).

Fields§

§values: Vec<JointValue>

The base parameters: every value the trace tells apart from the others, with what it combines.

§alike: Vec<(usize, usize)>

Pairs of values (their indices) whose measured estimates correlate by more than ALIKE: the trace cannot tell them apart, only a sum (or difference) of them is known, and each one’s error band is wide for that.

§folded: Vec<String>

Values (quantity of) that are not reported on their own: those a base parameter combines, and those the rigid torques do not depend on at all (a link’s first moment along its own joint’s axis).

§payload_steps: Vec<(f64, f64)>

Where the payload was picked or dropped during the trace, rising: each time and its standard error, in s. The payload’s factor is then fitted per stretch between them: before the first (payload_factor_before) and from each on (payload_factor_after, of payload for one step, payload 1, payload 2, … for several).

Implementations§

Source§

impl JointFit

Source

pub fn advice(&self) -> Vec<(&'static str, String)>

What the fit says to change in the config, as translation keys with their argument: the factor on the payload (or its step), per motor the changes of inertia, friction and constant torque at its shaft, per link its mass factor and first moment; then what each base parameter combines, what has no effect and the pairs that cannot be told apart.

Trait Implementations§

Source§

impl Clone for JointFit

Source§

fn clone(&self) -> JointFit

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for JointFit

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for JointFit

Source§

fn eq(&self, other: &JointFit) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for JointFit

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.