Public Member Functions | Protected Attributes

particle_filter< state_type, observation_type > Class Template Reference

#include <particle_filter.h>

Inheritance diagram for particle_filter< state_type, observation_type >:
annealed_particle_filter< state_type, observation_type > bootstrap< state_type, observation_type >

List of all members.

Public Member Functions

 particle_filter (const options &opts, const calibration &calib, const bool playback=false)
virtual ~particle_filter ()
size_t get_num_particles () const
std::vector< state_type * > & get_states ()
void save_weights (const char *filename)
bool load_weights (const char *filename)
void save_states ()
bool load_states ()
virtual void refresh (const observation_type &observation)=0

Protected Attributes

const size_t num_particles
std::vector< state_type * > states
std::vector< double > weights
const std::string output_directory
int frame

template<typename state_type, typename observation_type>
class particle_filter< state_type, observation_type >


Constructor & Destructor Documentation

template<typename state_type , typename observation_type >
particle_filter< state_type, observation_type >::particle_filter ( const options opts,
const calibration calib,
const bool  playback = false 
) [inline]
template<typename state_type , typename observation_type >
virtual particle_filter< state_type, observation_type >::~particle_filter (  )  [inline, virtual]

Member Function Documentation

template<typename state_type , typename observation_type >
size_t particle_filter< state_type, observation_type >::get_num_particles (  )  const [inline]
template<typename state_type , typename observation_type >
std::vector<state_type*>& particle_filter< state_type, observation_type >::get_states (  )  [inline]
template<typename state_type , typename observation_type >
bool particle_filter< state_type, observation_type >::load_states (  )  [inline]
template<typename state_type , typename observation_type >
bool particle_filter< state_type, observation_type >::load_weights ( const char *  filename  )  [inline]
template<typename state_type , typename observation_type >
virtual void particle_filter< state_type, observation_type >::refresh ( const observation_type &  observation  )  [pure virtual]
template<typename state_type , typename observation_type >
void particle_filter< state_type, observation_type >::save_states (  )  [inline]
template<typename state_type , typename observation_type >
void particle_filter< state_type, observation_type >::save_weights ( const char *  filename  )  [inline]

Member Data Documentation

template<typename state_type , typename observation_type >
int particle_filter< state_type, observation_type >::frame [protected]
template<typename state_type , typename observation_type >
const size_t particle_filter< state_type, observation_type >::num_particles [protected]
template<typename state_type , typename observation_type >
const std::string particle_filter< state_type, observation_type >::output_directory [protected]
template<typename state_type , typename observation_type >
std::vector<state_type*> particle_filter< state_type, observation_type >::states [protected]
template<typename state_type , typename observation_type >
std::vector<double> particle_filter< state_type, observation_type >::weights [protected]

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