Struct viam_rust_utils::spatialmath::utils::EulerAngles
source · Fields§
§roll: f64
§pitch: f64
§yaw: f64
Implementations§
source§impl EulerAngles
impl EulerAngles
pub fn new(roll: f64, pitch: f64, yaw: f64) -> Self
sourcepub fn from_quaternion(quat: &Quaternion<f64>) -> Self
pub fn from_quaternion(quat: &Quaternion<f64>) -> Self
Converts a quaternion into euler angles (in radians). The euler angles are represented according to the Tait-Bryan formalism and applied in the Z-Y’-X“ order (where Z -> yaw, Y -> pitch, X -> roll).
Trait Implementations§
source§impl Clone for EulerAngles
impl Clone for EulerAngles
source§fn clone(&self) -> EulerAngles
fn clone(&self) -> EulerAngles
Returns a copy of the value. Read more
1.0.0 · 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 EulerAngles
impl Debug for EulerAngles
impl Copy for EulerAngles
Auto Trait Implementations§
impl RefUnwindSafe for EulerAngles
impl Send for EulerAngles
impl Sync for EulerAngles
impl Unpin for EulerAngles
impl UnwindSafe for EulerAngles
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.