pub struct SerializableFusionState {
pub version: u16,
pub state: SerializableInsFilterState,
pub last_body_rate_wrt_ecef_rps: [F64Bits; 3],
pub stationarity_window: Vec<SerializableStationarityDetectorSample>,
pub last_stationary_update_t_j2000_s: Option<F64Bits>,
pub last_non_holonomic_update_t_j2000_s: Option<F64Bits>,
pub tight: SerializableTightFilterState,
pub time_sync: SerializableTimeSyncHistory,
}Expand description
Stable serializable fusion checkpoint.
Fields§
§version: u16Serialization schema version.
state: SerializableInsFilterStateClosed-loop INS state and covariance.
last_body_rate_wrt_ecef_rps: [F64Bits; 3]Last propagated body angular rate relative to ECEF, stored as raw f64 bits.
stationarity_window: Vec<SerializableStationarityDetectorSample>Recent detector samples used by stationary-update gating.
last_stationary_update_t_j2000_s: Option<F64Bits>Epoch of the last stationary pseudo-measurement, if any.
last_non_holonomic_update_t_j2000_s: Option<F64Bits>Epoch of the last non-holonomic pseudo-measurement, if any.
tight: SerializableTightFilterStateTight receiver-clock augmentation and augmented covariance.
time_sync: SerializableTimeSyncHistoryRetained time-sync replay history.
Implementations§
Source§impl SerializableFusionState
impl SerializableFusionState
Sourcepub fn from_snapshot(snapshot: &InertialFilterSnapshot) -> Self
pub fn from_snapshot(snapshot: &InertialFilterSnapshot) -> Self
Convert a native fusion snapshot into the stable serialized form.
Sourcepub fn from_filter(
filter: &InertialFilter,
) -> Result<Self, FusionStateCodecError>
pub fn from_filter( filter: &InertialFilter, ) -> Result<Self, FusionStateCodecError>
Convert a live fusion filter into the stable serialized form.
Sourcepub fn to_snapshot(
&self,
) -> Result<InertialFilterSnapshot, FusionStateCodecError>
pub fn to_snapshot( &self, ) -> Result<InertialFilterSnapshot, FusionStateCodecError>
Convert the stable serialized form back to a validated native snapshot.
Sourcepub fn encode_versioned(&self) -> Result<Vec<u8>, FusionStateCodecError>
pub fn encode_versioned(&self) -> Result<Vec<u8>, FusionStateCodecError>
Encode the checkpoint with a binary magic, version, and checksum.
Sourcepub fn decode_versioned(bytes: &[u8]) -> Result<Self, FusionStateCodecError>
pub fn decode_versioned(bytes: &[u8]) -> Result<Self, FusionStateCodecError>
Decode a binary checkpoint produced by Self::encode_versioned.
Sourcepub fn to_json_string(&self) -> Result<String, FusionStateCodecError>
pub fn to_json_string(&self) -> Result<String, FusionStateCodecError>
Serialize this checkpoint to JSON using the serde representation.
Sourcepub fn from_json_str(text: &str) -> Result<Self, FusionStateCodecError>
pub fn from_json_str(text: &str) -> Result<Self, FusionStateCodecError>
Parse a JSON checkpoint using the serde representation.
Trait Implementations§
Source§impl Clone for SerializableFusionState
impl Clone for SerializableFusionState
Source§fn clone(&self) -> SerializableFusionState
fn clone(&self) -> SerializableFusionState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SerializableFusionState
impl Debug for SerializableFusionState
Source§impl<'de> Deserialize<'de> for SerializableFusionState
impl<'de> Deserialize<'de> for SerializableFusionState
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>,
impl Eq for SerializableFusionState
Source§impl PartialEq for SerializableFusionState
impl PartialEq for SerializableFusionState
Source§fn eq(&self, other: &SerializableFusionState) -> bool
fn eq(&self, other: &SerializableFusionState) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for SerializableFusionState
impl Serialize for SerializableFusionState
impl StructuralPartialEq for SerializableFusionState
Auto Trait Implementations§
impl Freeze for SerializableFusionState
impl RefUnwindSafe for SerializableFusionState
impl Send for SerializableFusionState
impl Sync for SerializableFusionState
impl Unpin for SerializableFusionState
impl UnsafeUnpin for SerializableFusionState
impl UnwindSafe for SerializableFusionState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.