Skip to main content

StateEstimator

Trait StateEstimator 

Source
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§

Source

type State

State type used by this estimator

Source

type Measurement

Measurement type used by this estimator

Source

type Control

Control input type

Required Methods§

Source

fn predict(&mut self, control: &Self::Control, dt: f64)

Prediction step

Source

fn update(&mut self, measurement: &Self::Measurement)

Update step with measurement

Source

fn get_state(&self) -> &Self::State

Get current state estimate

Provided Methods§

Source

fn get_covariance(&self) -> Option<&DMatrix<f64>>

Get current covariance estimate (if applicable)

Implementors§