pub trait StateEstimator {
type State;
type Measurement;
type Control;
// Required methods
fn predict(&mut self, control: &Self::Control, dt: f64);
fn update(&mut self, measurement: &Self::Measurement);
fn get_state(&self) -> &Self::State;
// Provided method
fn get_covariance(&self) -> Option<&DMatrix<f64>> { ... }
}Expand description
Trait for state estimation algorithms (EKF, UKF, Particle Filter, etc.)
Required Associated Types§
Sourcetype Measurement
type Measurement
Measurement type used by this estimator
Required Methods§
Sourcefn update(&mut self, measurement: &Self::Measurement)
fn update(&mut self, measurement: &Self::Measurement)
Update step with measurement
Provided Methods§
Sourcefn get_covariance(&self) -> Option<&DMatrix<f64>>
fn get_covariance(&self) -> Option<&DMatrix<f64>>
Get current covariance estimate (if applicable)