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

The state of EKFSlam: the robot's pose (x, y, yaw) followed by the position (x, y) of every landmark mapped so far. It grows by two values with each new landmark. More...

#include <ekf_slam.h>

Public Member Functions

 SlamState ()
DynVec< real_t > as_vector () const
index_t size () const noexcept
real_t & operator[] (index_t i)
real_t operator[] (index_t i) const
real_t get (const std::string &name) const
 The pose by name: "x", "y" or "yaw".
template<typename Derived>
SlamState & operator+= (const Eigen::MatrixBase< Derived > &dx)
 Add a correction, as ExtendedKalmanFilter::update does.
void append (real_t x, real_t y)
 Add a landmark at (x, y) at the end of the state.

Detailed Description

The state of EKFSlam: the robot's pose (x, y, yaw) followed by the position (x, y) of every landmark mapped so far. It grows by two values with each new landmark.

Constructor & Destructor Documentation

◆ SlamState()

bitsim::estimation::SlamState::SlamState ( )
inline

Member Function Documentation

◆ append()

void bitsim::estimation::SlamState::append ( real_t x,
real_t y )

Add a landmark at (x, y) at the end of the state.

◆ as_vector()

DynVec< real_t > bitsim::estimation::SlamState::as_vector ( ) const
inline

◆ get()

real_t bitsim::estimation::SlamState::get ( const std::string & name) const

The pose by name: "x", "y" or "yaw".

◆ operator+=()

template<typename Derived>
SlamState & bitsim::estimation::SlamState::operator+= ( const Eigen::MatrixBase< Derived > & dx)
inline

Add a correction, as ExtendedKalmanFilter::update does.

◆ operator[]() [1/2]

real_t & bitsim::estimation::SlamState::operator[] ( index_t i)
inline

◆ operator[]() [2/2]

real_t bitsim::estimation::SlamState::operator[] ( index_t i) const
inline

◆ size()

index_t bitsim::estimation::SlamState::size ( ) const
inlinenoexcept

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