bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
bitsim::estimation::SlamMotionModel Class Reference

The motion model of EKFSlam: odometry moves the robot and leaves the landmarks where they are. More...

#include <ekf_slam.h>

Classes

struct  Input

Public Types

using state_type = SlamState
using matrix_type = DynMat<real_t>
using input_type = Input

Public Member Functions

state_type & evaluate (const Input &input)
 Move the robot by one step, and work out F and L at the state before it.
state_type & get_state ()
const state_type & get_state () const
real_t get_state_property (const std::string &name) const
const matrix_type & get_matrix (const std::string &name) const

Detailed Description

The motion model of EKFSlam: odometry moves the robot and leaves the landmarks where they are.

Over a step the robot drives distance d and turns by \(\Delta\psi\):

\[x' = x + d \cos(\psi + \Delta\psi / 2), \quad y' = y + d \sin(\psi + \Delta\psi / 2), \quad \psi' = \psi + \Delta\psi \]

The process noise is (error in d, error in \(\Delta\psi\)); F and L, the Jacobians with respect to the state and to that noise, are as large as the whole state.

Member Typedef Documentation

◆ input_type

◆ matrix_type

◆ state_type

Member Function Documentation

◆ evaluate()

SlamMotionModel::state_type & bitsim::estimation::SlamMotionModel::evaluate ( const Input & input)

Move the robot by one step, and work out F and L at the state before it.

◆ get_matrix()

const SlamMotionModel::matrix_type & bitsim::estimation::SlamMotionModel::get_matrix ( const std::string & name) const

◆ get_state() [1/2]

state_type & bitsim::estimation::SlamMotionModel::get_state ( )
inline

◆ get_state() [2/2]

const state_type & bitsim::estimation::SlamMotionModel::get_state ( ) const
inline

◆ get_state_property()

real_t bitsim::estimation::SlamMotionModel::get_state_property ( const std::string & name) const
inline

The documentation for this class was generated from the following files: