pub struct LocationDomain {Show 13 fields
pub latitude: Option<f64>,
pub longitude: Option<f64>,
pub altitude_m: Option<f64>,
pub heading_deg: Option<f64>,
pub local: Option<LocalCoordinates>,
pub grid: Option<GridCoordinates>,
pub semantic: Option<SemanticLocation>,
pub horizontal_accuracy_m: Option<f64>,
pub vertical_accuracy_m: Option<f64>,
pub covariance: Option<CovarianceMatrix>,
pub frame_id: Option<String>,
pub map_id: Option<String>,
pub floor: Option<i32>,
}Expand description
Location domain containing position information.
Fields§
§latitude: Option<f64>Latitude in decimal degrees (-90 to 90)
longitude: Option<f64>Longitude in decimal degrees (-180 to 180)
altitude_m: Option<f64>Altitude in meters above sea level
heading_deg: Option<f64>Heading/bearing in degrees (0-360, 0=North, clockwise)
local: Option<LocalCoordinates>Local coordinate system position
grid: Option<GridCoordinates>Grid-based position (for warehouses, etc.)
semantic: Option<SemanticLocation>Semantic location information
horizontal_accuracy_m: Option<f64>Horizontal position accuracy in meters (CEP or 1-sigma)
vertical_accuracy_m: Option<f64>Vertical position accuracy in meters
covariance: Option<CovarianceMatrix>Full pose covariance matrix
frame_id: Option<String>Reference frame ID (e.g., “map”, “odom”, “world”)
map_id: Option<String>Map identifier (for multi-map deployments)
floor: Option<i32>Floor number (for multi-floor buildings)
Implementations§
Source§impl LocationDomain
impl LocationDomain
Sourcepub fn from_global(latitude: f64, longitude: f64) -> Self
pub fn from_global(latitude: f64, longitude: f64) -> Self
Create a location with global coordinates.
Sourcepub fn from_local(x_m: f64, y_m: f64, yaw_deg: f64) -> Self
pub fn from_local(x_m: f64, y_m: f64, yaw_deg: f64) -> Self
Create a location with local coordinates.
Sourcepub fn with_heading(self, heading_deg: f64) -> Self
pub fn with_heading(self, heading_deg: f64) -> Self
Builder method to add heading.
Sourcepub fn with_local(self, local: LocalCoordinates) -> Self
pub fn with_local(self, local: LocalCoordinates) -> Self
Builder method to add local coordinates.
Sourcepub fn with_semantic(self, zone: impl Into<String>) -> Self
pub fn with_semantic(self, zone: impl Into<String>) -> Self
Builder method to add semantic location.
Sourcepub fn with_accuracy(self, horizontal_m: f64) -> Self
pub fn with_accuracy(self, horizontal_m: f64) -> Self
Builder method to add accuracy.
Sourcepub fn with_frame(self, frame_id: impl Into<String>) -> Self
pub fn with_frame(self, frame_id: impl Into<String>) -> Self
Builder method to set frame ID.
Trait Implementations§
Source§impl Clone for LocationDomain
impl Clone for LocationDomain
Source§fn clone(&self) -> LocationDomain
fn clone(&self) -> LocationDomain
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more