pub struct NavSatFix {
pub status: i8,
pub service: u16,
pub latitude: f64,
pub longitude: f64,
pub altitude: f64,
pub position_covariance: [f64; 9],
pub position_covariance_type: u8,
}Expand description
A GNSS fix — std/sensor/v1/NavSatFix.
Fields§
§status: i8The fix status, matching sensor_msgs/NavSatStatus::status.
service: u16The constellations used, matching sensor_msgs/NavSatStatus::service.
latitude: f64Latitude in degrees.
longitude: f64Longitude in degrees.
altitude: f64Altitude in metres above the WGS 84 ellipsoid.
position_covariance: [f64; 9]The 3x3 position covariance, row-major.
position_covariance_type: u8How the covariance was obtained, matching sensor_msgs/NavSatFix.
Implementations§
Trait Implementations§
Source§const URN: &'static str = "std/sensor/v1/NavSatFix"
const URN: &'static str = "std/sensor/v1/NavSatFix"
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§fn from_batch(batch: &RecordBatch) -> Result<Self>
fn from_batch(batch: &RecordBatch) -> Result<Self>
Reads the value from a decoded payload batch. Read more
Auto Trait Implementations§
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