Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Public Member Functions | Private Types | Private Attributes
jafar::slam::FreeStateCollector Class Reference

This class acts as a collector of free state in the SLAM. More...


Detailed Description

This class acts as a collector of free state in the SLAM.

It should be used by AbstractMapManager that want to reuse free state for next landmarks.

Definition at line 27 of file mapManager.hpp.

#include <mapManager.hpp>

List of all members.

Classes

struct  StateBlock

Public Member Functions

 FreeStateCollector (SlamEkf &slam_)
std::size_t getFreeIndex (std::size_t sizeState)
void collectIndex (std::size_t index, std::size_t sizeState)
 Collect some index, mark it as free.
void clear ()
 Reset the collector.
void defrag ()
 This function will reorder block, and merge them.
void dump () const

Private Types

typedef std::list< StateBlockStateBlockCont
 container type for free state blocks

Private Attributes

StateBlockCont m_freeStateBlocks
 free substates of the filter state, to store new features
SlamEkfm_slam

Member Function Documentation

void jafar::slam::FreeStateCollector::collectIndex ( std::size_t  index,
std::size_t  sizeState 
)

Collect some index, mark it as free.

Parameters:
indexthe position in the state
sizeStatethe size of the state that is to be freed.
std::size_t jafar::slam::FreeStateCollector::getFreeIndex ( std::size_t  sizeState)
Returns:
a free index of a given size (sizeState)

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:48 for Jafar by doxygen 1.7.6.1
LAAS-CNRS