pub struct Location {
pub position: Option<Position>,
pub velocity_enu: Option<Enu>,
pub speed_mps: Option<f64>,
pub acceleration: Option<Enu>,
pub attitude_enu: Option<Quaternion>,
}Expand description
Available for Entities that have a single or primary Location.
Fields§
§position: Option<Position>see Position definition for details.
velocity_enu: Option<Enu>Velocity in an ENU reference frame centered on the corresponding position. All units are meters per second.
speed_mps: Option<f64>Speed is the magnitude of velocity_enu vector [sqrt(e^2 + n^2 + u^2)] when present, measured in m/s.
acceleration: Option<Enu>The entity’s acceleration in meters/s^2.
attitude_enu: Option<Quaternion>quaternion to translate from entity body frame to it’s ENU frame
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Location
impl<'de> Deserialize<'de> for Location
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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