pub struct Imu {
pub orientation: Quaternion,
pub orientation_covariance: [f64; 9],
pub angular_velocity: Vector3,
pub angular_velocity_covariance: [f64; 9],
pub linear_acceleration: Vector3,
pub linear_acceleration_covariance: [f64; 9],
}Expand description
An inertial reading — std/sensor/v1/Imu.
Fields§
§orientation: QuaternionThe estimated orientation.
orientation_covariance: [f64; 9]Its 3x3 covariance, row-major.
angular_velocity: Vector3The angular velocity, in radians per second.
angular_velocity_covariance: [f64; 9]Its 3x3 covariance, row-major.
linear_acceleration: Vector3The linear acceleration, in metres per second squared.
linear_acceleration_covariance: [f64; 9]Its 3x3 covariance, row-major.
Implementations§
Source§impl Imu
impl Imu
Sourcepub const fn from_readings(
orientation: Quaternion,
angular_velocity: Vector3,
linear_acceleration: Vector3,
) -> Self
pub const fn from_readings( orientation: Quaternion, angular_velocity: Vector3, linear_acceleration: Vector3, ) -> Self
A reading with unknown (all-zero) covariances, which is what
sensor_msgs/Imu means by an unreported one.
Trait Implementations§
Source§impl AstrsMessage for Imu
impl AstrsMessage for Imu
Source§const URN: &'static str = "std/sensor/v1/Imu"
const URN: &'static str = "std/sensor/v1/Imu"
The type URN this message’s columnar layout is declared against
(blueprint §24.3), e.g.
"std/vision/v1/Detections".Source§fn data_type() -> DataType
fn data_type() -> DataType
The columnar layout
AstrsMessage::to_record_batch produces and
AstrsMessage::from_record_batch expects.Source§fn to_record_batch(&self) -> Result<RecordBatch>
fn to_record_batch(&self) -> Result<RecordBatch>
Encodes one message into a one-row
RecordBatch (blueprint §6.1’s
“one record batch per message”). Read moreSource§fn from_record_batch(batch: &RecordBatch) -> Result<Self>
fn from_record_batch(batch: &RecordBatch) -> Result<Self>
Decodes one message from a one-row
RecordBatch. Read moreSource§fn schema() -> Schema
fn schema() -> Schema
The single-column
Schema wrapping AstrsMessage::data_type
under crate::DATA_COLUMN (blueprint §6.1).Source§fn type_urn() -> Result<TypeUrn, TypeUrnError>
fn type_urn() -> Result<TypeUrn, TypeUrnError>
Parses
AstrsMessage::URN. Read moreSource§impl FromPayload for Imu
impl FromPayload for Imu
Source§fn from_batch(batch: &RecordBatch) -> Result<Self>
fn from_batch(batch: &RecordBatch) -> Result<Self>
Reads the value from a decoded payload batch. Read more
impl StructuralPartialEq for Imu
Auto Trait Implementations§
impl Freeze for Imu
impl RefUnwindSafe for Imu
impl Send for Imu
impl Sync for Imu
impl Unpin for Imu
impl UnsafeUnpin for Imu
impl UnwindSafe for Imu
Blanket Implementations§
impl<T> Allocation for T
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