pub struct ImuExtrinsics {
pub rotation_body_from_sensor: Matrix3<f64>,
pub translation_body_from_sensor: Vector3<f64>,
}Expand description
Rigid mounting transform from an IMU sensor frame to the navigation body frame.
Fields§
§rotation_body_from_sensor: Matrix3<f64>§translation_body_from_sensor: Vector3<f64>Implementations§
Source§impl ImuExtrinsics
impl ImuExtrinsics
pub fn identity() -> Self
Sourcepub fn from_homogeneous(
body_from_sensor: &Matrix4<f64>,
) -> OptimizationResult<Self>
pub fn from_homogeneous( body_from_sensor: &Matrix4<f64>, ) -> OptimizationResult<Self>
Extracts the rotation and translation from a homogeneous body-from-sensor transform.
Sourcepub fn transform(
&self,
measurement: ImuMeasurement,
angular_acceleration_sensor: Vector3<f64>,
) -> ImuMeasurement
pub fn transform( &self, measurement: ImuMeasurement, angular_acceleration_sensor: Vector3<f64>, ) -> ImuMeasurement
Transforms a sensor-frame IMU sample to the body frame.
The acceleration includes centripetal and tangential lever-arm terms,
matching MathematicalRobotics transformIMU.
Trait Implementations§
Source§impl Clone for ImuExtrinsics
impl Clone for ImuExtrinsics
impl Copy for ImuExtrinsics
Source§impl Debug for ImuExtrinsics
impl Debug for ImuExtrinsics
Source§impl PartialEq for ImuExtrinsics
impl PartialEq for ImuExtrinsics
impl StructuralPartialEq for ImuExtrinsics
Auto Trait Implementations§
impl Freeze for ImuExtrinsics
impl RefUnwindSafe for ImuExtrinsics
impl Send for ImuExtrinsics
impl Sync for ImuExtrinsics
impl Unpin for ImuExtrinsics
impl UnsafeUnpin for ImuExtrinsics
impl UnwindSafe for ImuExtrinsics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
§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.