Skip to main content

MotionModel

Trait MotionModel 

Source
pub trait MotionModel {
    type State;
    type Control;

    // Required methods
    fn propagate(
        &self,
        state: &Self::State,
        control: &Self::Control,
        dt: f64,
    ) -> Self::State;
    fn jacobian_state(
        &self,
        state: &Self::State,
        control: &Self::Control,
        dt: f64,
    ) -> DMatrix<f64>;
}
Expand description

Trait for vehicle/robot motion models

Required Associated Types§

Source

type State

State type

Source

type Control

Control type

Required Methods§

Source

fn propagate( &self, state: &Self::State, control: &Self::Control, dt: f64, ) -> Self::State

Propagate state forward in time

Source

fn jacobian_state( &self, state: &Self::State, control: &Self::Control, dt: f64, ) -> DMatrix<f64>

Compute Jacobian with respect to state (for EKF)

Implementors§