|
bitsim
Model, simulate, estimate and control robots in C++
|
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 |
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.
| 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.
| const SlamMotionModel::matrix_type & bitsim::estimation::SlamMotionModel::get_matrix | ( | const std::string & | name | ) | const |
|
inline |
|
inline |
|
inline |