Skip to main content

SceneKind

Enum SceneKind 

Source
pub enum SceneKind {
    Plane,
    Cylinder,
    Sphere,
    TwoPlanes,
    Corner,
    TeeJoint,
    Corridor,
}
Expand description

The set of scenes whose answer is known.

Variants§

§

Plane

A single plane.

§

Cylinder

The lateral surface of a cylinder.

§

Sphere

A sphere.

§

TwoPlanes

Two non-parallel planes.

§

Corner

A trihedral corner.

§

TeeJoint

A T-shaped weld joint.

§

Corridor

A long corridor: a floor and two walls.

Implementations§

Source§

impl SceneKind

Source

pub const ALL: [SceneKind; 7]

Every scene.

Source

pub fn name(self) -> &'static str

A name for messages.

Source

pub fn nullspace(self) -> Vec<Vector6<f64>>

The analytical basis of the null space in the canonical pose.

The derivation for each scene, from the Jacobian row [nᵀ | (p × n)ᵀ]:

Plane z = 0, n = (0,0,1), points (a, b, 0). Here p × n = (b, −a, 0), and requiring ρz + b·φx − a·φy = 0 for all a, b gives φx = φy = ρz = 0. Free: ρx, ρy, φz — the in-plane translations and rotation about the normal, three degrees of freedom.

Cylinder with axis z, points (r cosθ, r sinθ, h), n = (cosθ, sinθ, 0). Here p × n = (−h sinθ, h cosθ, 0), and requiring cosθ·(ρx + h·φy) + sinθ·(ρy − h·φx) = 0 for all θ and at least two distinct h gives ρx = ρy = φx = φy = 0. Free: ρz and φz — sliding along the axis and spinning about it.

Sphere centred at the origin: p = r·n, hence p × n = r·(n × n) = 0, so the rotational block of every row vanishes identically. The normals cover all directions, so ρ = 0. Free: all three rotations. Note that the answer depends on the sphere’s centre coinciding with the centre of rotation; a displaced sphere has a different basis.

Two planes z = 0 and x = 0. The first gives φx = φy = ρz = 0, the second φy = φz = ρx = 0. Together only ρy is free: translation along the line of intersection.

Trihedral corner adds the plane y = 0 with the condition ρy = φx = φz = 0. Nothing is left — full observability.

Tee joint is the same pair of orthogonal planes as above, with realistic extents. Translation along the seam is free.

Corridor: the floor z = 0 gives ρz = φx = φy = 0, and the walls x = ±s give ρx = φy = φz = 0. Translation along the corridor is free.

Source

pub fn nullspace_dimension(self) -> usize

Dimension of the null space.

Trait Implementations§

Source§

impl Clone for SceneKind

Source§

fn clone(&self) -> SceneKind

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 Copy for SceneKind

Source§

impl Debug for SceneKind

Source§

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

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

impl Eq for SceneKind

Source§

impl PartialEq for SceneKind

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for SceneKind

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,

Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
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.