Skip to main content

Se3

Struct Se3 

Source
pub struct Se3 { /* private fields */ }
Expand description

A rigid motion: a rotation and a translation.

Implementations§

Source§

impl Se3

Source

pub fn identity() -> Self

The identity transform.

Source

pub fn from_parts(rotation: So3, translation: Vector3<f64>) -> Self

Builds a transform from a rotation and a translation.

Source

pub fn from_matrix_unchecked(matrix: Matrix4<f64>) -> Self

Builds a transform from a homogeneous 4×4 matrix.

The rotational block is not checked for orthogonality. This exists for reading poses out of files, where the matrix is already given and vouched for by the data source rather than by us.

Source

pub fn rotation(&self) -> &So3

The rotational part.

Source

pub fn translation(&self) -> &Vector3<f64>

The translational part.

Source

pub fn matrix(&self) -> Matrix4<f64>

The homogeneous 4×4 matrix.

Source

pub fn exp(xi: &Vector6<f64>) -> Self

The exponential map se(3) → SE(3).

exp([ρ; φ]) = (exp(φ), J_l(φ)·ρ). The translation passes through the left Jacobian; the naive t = ρ is only a first-order truth.

Source

pub fn log(&self) -> Vector6<f64>

The logarithm SE(3) → se(3).

Source

pub fn inverse(&self) -> Self

The inverse transform.

Source

pub fn adjoint(&self) -> Matrix6<f64>

The 6×6 adjoint representation.

Adj(T) = [[R, t^ R], [0, R]] in the ξ = [ρ; φ] ordering. Its defining property is Adj(T)·ξ = vee(T · ξ^ · T⁻¹).

Source

pub fn transform_point(&self, p: &Vector3<f64>) -> Vector3<f64>

Applies the transform to a point.

Trait Implementations§

Source§

impl Clone for Se3

Source§

fn clone(&self) -> Se3

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 Se3

Source§

impl Debug for Se3

Source§

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

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

impl Default for Se3

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Mul for Se3

Source§

type Output = Se3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Se3) -> Se3

Performs the * operation. Read more
Source§

impl PartialEq for Se3

Source§

fn eq(&self, other: &Se3) -> 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 Se3

Auto Trait Implementations§

§

impl Freeze for Se3

§

impl RefUnwindSafe for Se3

§

impl Send for Se3

§

impl Sync for Se3

§

impl Unpin for Se3

§

impl UnsafeUnpin for Se3

§

impl UnwindSafe for Se3

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.