pub enum StateValue {
Number(Scalar),
Pose(Pose),
}Expand description
A value of a part’s state: a number or a pose. Serialized as itself —
2.5, {"position": [...], "rotation": [...]}.
Variants§
Trait Implementations§
Source§impl Clone for StateValue
impl Clone for StateValue
Source§fn clone(&self) -> StateValue
fn clone(&self) -> StateValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StateValue
impl Debug for StateValue
Source§impl Default for StateValue
A value the run gives none of reads as the number zero.
impl Default for StateValue
A value the run gives none of reads as the number zero.
Source§impl<'de> Deserialize<'de> for StateValue
impl<'de> Deserialize<'de> for StateValue
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
Source§impl PartialEq for StateValue
impl PartialEq for StateValue
Source§impl Serialize for StateValue
impl Serialize for StateValue
impl StructuralPartialEq for StateValue
Source§impl Variable for StateValue
A number steps by what is added to it; a pose by a twist (ω, v) in its
own frame — turning about its own origin, and moving along its own axes —
by the exponential map: pose ∘ exp(ω, v) (see Pose’s steps).
impl Variable for StateValue
A number steps by what is added to it; a pose by a twist (ω, v) in its
own frame — turning about its own origin, and moving along its own axes —
by the exponential map: pose ∘ exp(ω, v) (see Pose’s steps).
Source§fn stay(&self, at: &Self, scale: Scalar) -> GeopResult<Rows>
fn stay(&self, at: &Self, scale: Scalar) -> GeopResult<Rows>
A number its difference from at; a pose its position’s, and its
rotation’s — a turn as the distance it moves a point scale from
its axis (see Pose’s).
Source§fn same(&self, other: &Self) -> bool
fn same(&self, other: &Self) -> bool
The same enclosure: what tells a step that changed nothing.
Source§fn carried(&self, from: &Self, to: &Self) -> Option<Self>
fn carried(&self, from: &Self, to: &Self) -> Option<Self>
A pose by a pose, as poses are (see Pose’s); a number by
nothing.
Source§fn dimension(&self) -> usize
fn dimension(&self) -> usize
How many numbers a step of it takes. None, for a value no solve
moves.
Source§fn retract(&self, step: &[Scalar]) -> GeopResult<Self>
fn retract(&self, step: &[Scalar]) -> GeopResult<Self>
Where
step — Variable::dimension numbers — takes it: the value
a solver tries next, a free choice, so sharp.Source§fn retract_over(&self, step: &[Scalar]) -> GeopResult<Self>
fn retract_over(&self, step: &[Scalar]) -> GeopResult<Self>
Every value a step in the box
step takes it to: an enclosure,
nothing sharpened — of the value it stands for, which a sharp value
may only approximate (a rotation’s unit quaternion).Source§fn differential(&self, step: &[Scalar]) -> GeopResult<Option<Vec<Vec<Scalar>>>>
fn differential(&self, step: &[Scalar]) -> GeopResult<Option<Vec<Vec<Scalar>>>>
The differential of the retraction over the box
step: the matrix
D, one row per number of a step, such that for every δ in the box
a step dδ further, retract(δ + dδ), is to first order the step
D dδ from retract(δ) — an enclosure for every δ in the box.
None for the identity: a step that adds to the value.Auto Trait Implementations§
impl Freeze for StateValue
impl RefUnwindSafe for StateValue
impl Send for StateValue
impl Sync for StateValue
impl Unpin for StateValue
impl UnsafeUnpin for StateValue
impl UnwindSafe for StateValue
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