Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
SLAMShapesSensorModel Class Template Reference#include <PFShapeSLAM.h>
Inheritance diagram for SLAMShapesSensorModel:
![]() Detailed Descriptiontemplate<typename ParticleT>
this wraps the SLAMParticleShapeEvaluator in a ParticleFilter::SensorModel so it can be used by the particle filter
|
Public Types | |
typedef ParticleFilter < ParticleT > ::SensorModel::index_t | index_t |
convenience typedef | |
typedef ParticleFilter < ParticleT > ::SensorModel::particle_collection | particle_collection |
convenience typedef | |
Public Member Functions | |
SLAMShapesSensorModel (ShapeSpace &localShS, ShapeSpace &worldShS) | |
constructor, the standard deviation on matches defaults to 60, but you can always reassign stdevSq directly | |
virtual void | evaluate (particle_collection &particles, index_t &bestIndex) |
applies the SLAMParticleShapeEvaluator across a collection of particles and tracks the best weight | |
ShapeSpace & | getLocalShS () const |
ShapeSpace & | getWorldShS () const |
Public Attributes | |
float | stdevSq |
controls how much weight is given to "near-misses" | |
float | addPenalty |
controls how readily new landmarks are added to the map, vs. penalizing the particle for a bad match | |
Protected Member Functions | |
float | normpdf (float const distsq) |
computes a (non-normalized) gaussian distribution | |
Protected Attributes | |
ShapeSpace & | lShS |
Local shape space. | |
ShapeSpace & | wShS |
World shape space. | |
unsigned int | particleLocalLandmarks |
number of entries in particles' individual addLocal (so we know if we need to resize it in all particles) | |
unsigned int | particleWorldLandmarks |
number of entries in particles' individual deleteWorld (so we know if we need to resize it in all particles) |
typedef ParticleFilter<ParticleT>::SensorModel::index_t index_t |
typedef ParticleFilter<ParticleT>::SensorModel::particle_collection particle_collection |
SLAMShapesSensorModel | ( | ShapeSpace & | localShS, | |
ShapeSpace & | worldShS | |||
) | [inline] |
constructor, the standard deviation on matches defaults to 60, but you can always reassign stdevSq directly
Definition at line 79 of file PFShapeSLAM.h.
virtual void evaluate | ( | particle_collection & | particles, | |
index_t & | bestIndex | |||
) | [inline, virtual] |
applies the SLAMParticleShapeEvaluator across a collection of particles and tracks the best weight
Definition at line 90 of file PFShapeSLAM.h.
ShapeSpace& getLocalShS | ( | ) | const [inline] |
Definition at line 117 of file PFShapeSLAM.h.
ShapeSpace& getWorldShS | ( | ) | const [inline] |
Definition at line 118 of file PFShapeSLAM.h.
float normpdf | ( | float const | distsq | ) | [inline, protected] |
computes a (non-normalized) gaussian distribution
normalization doesn't matter because it's constant across particles, and so doesn't matter for purposes of comparison between particles
Definition at line 130 of file PFShapeSLAM.h.
Referenced by SLAMShapesSensorModel< DualCoding::SLAMShapesParticle >::evaluate().
float stdevSq |
controls how much weight is given to "near-misses"
Definition at line 85 of file PFShapeSLAM.h.
Referenced by SLAMShapesSensorModel< DualCoding::SLAMShapesParticle >::evaluate(), and SLAMShapesSensorModel< DualCoding::SLAMShapesParticle >::normpdf().
float addPenalty |
controls how readily new landmarks are added to the map, vs. penalizing the particle for a bad match
Definition at line 87 of file PFShapeSLAM.h.
Referenced by SLAMShapesSensorModel< DualCoding::SLAMShapesParticle >::evaluate().
ShapeSpace& lShS [protected] |
Local shape space.
Definition at line 121 of file PFShapeSLAM.h.
Referenced by SLAMShapesSensorModel< DualCoding::SLAMShapesParticle >::evaluate(), and SLAMShapesSensorModel< DualCoding::SLAMShapesParticle >::getWorldShS().
ShapeSpace& wShS [protected] |
World shape space.
Definition at line 122 of file PFShapeSLAM.h.
Referenced by SLAMShapesSensorModel< DualCoding::SLAMShapesParticle >::evaluate().
unsigned int particleLocalLandmarks [protected] |
number of entries in particles' individual addLocal (so we know if we need to resize it in all particles)
Definition at line 124 of file PFShapeSLAM.h.
Referenced by SLAMShapesSensorModel< DualCoding::SLAMShapesParticle >::evaluate().
unsigned int particleWorldLandmarks [protected] |
number of entries in particles' individual deleteWorld (so we know if we need to resize it in all particles)
Definition at line 125 of file PFShapeSLAM.h.
Referenced by SLAMShapesSensorModel< DualCoding::SLAMShapesParticle >::evaluate().
DualCoding 4.0 |
Generated Thu Nov 22 00:54:00 2007 by Doxygen 1.5.4 |