Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

LocalizationParticleData Class Reference

Shape represention of a localization particle. More...

#include <LocalizationParticleData.h>

Inheritance diagram for LocalizationParticleData:

Detailed Description

Shape represention of a localization particle.

Rather than caching data locally, we store a pointer to the particle vector and the index of the particle. This way, each time the user refreshes the sketchGUI we will fetch the latest values for the particle.

Definition at line 26 of file LocalizationParticleData.h.

List of all members.

Public Member Functions

 LocalizationParticleData (ShapeSpace &_space, const ParticleFilter< LocalizationParticle >::particle_collection &_particles, ParticleFilter< LocalizationParticle >::index_t _index)
 Constructor.
 LocalizationParticleData (const LocalizationParticleData &other)
 Copy constructor.
 DATASTUFF_H (LocalizationParticleData)
virtual Point getCentroid () const
 Centroid. (Virtual in BaseData.).
AngTwoPi getOrientation () const
float getWeight () const
virtual bool isMatchFor (const ShapeRoot &other) const
 Shapes match if their coordinates agree. DOES NOT Assume type and color already checked.
virtual bool updateParams (const ShapeRoot &, bool force=false)
 Update shape parameters after matching to another shape.
virtual void printParams () const
 Print information about this shape. (Virtual in BaseData.).
virtual void applyTransform (const fmat::Transform &Tmat, const ReferenceFrameType_t newref=unspecified)
 Apply a transformation matrix to the shape.
virtual void projectToGround (const fmat::Transform &, const PlaneEquation &)
 Project to ground plane using given matrix.
virtual unsigned short getDimension () const
LocalizationParticleDataoperator= (const LocalizationParticleData &other)

Static Public Member Functions

static ShapeType_t getStaticType ()

Private Member Functions

virtual Sketch< bool > * render () const
 Render into a sketch space and return pointer. (Private.).

Private Attributes

const
ShapeBasedParticleFilter::particle_collection
particles
ShapeBasedParticleFilter::index_t index

Constructor & Destructor Documentation

LocalizationParticleData ( ShapeSpace _space,
const ParticleFilter< LocalizationParticle >::particle_collection &  _particles,
ParticleFilter< LocalizationParticle >::index_t  _index 
)

Constructor.

Definition at line 13 of file LocalizationParticleData.cc.

Copy constructor.

Definition at line 20 of file LocalizationParticleData.cc.


Member Function Documentation

virtual void applyTransform ( const fmat::Transform Tmat,
const ReferenceFrameType_t  newref = unspecified 
) [virtual]

Apply a transformation matrix to the shape.

Implements BaseData.

Definition at line 59 of file LocalizationParticleData.h.

DATASTUFF_H ( LocalizationParticleData   ) 
Point getCentroid (  )  const [virtual]
virtual unsigned short getDimension (  )  const [virtual]

Implements BaseData.

Definition at line 63 of file LocalizationParticleData.h.

AngTwoPi getOrientation (  )  const

Definition at line 48 of file LocalizationParticleData.h.

Referenced by LocalizationParticleData::printParams().

static ShapeType_t getStaticType (  )  [static]

Definition at line 41 of file LocalizationParticleData.h.

float getWeight (  )  const

Definition at line 50 of file LocalizationParticleData.h.

bool isMatchFor ( const ShapeRoot other  )  const [virtual]

Shapes match if their coordinates agree. DOES NOT Assume type and color already checked.

Implements BaseData.

Definition at line 37 of file LocalizationParticleData.cc.

LocalizationParticleData & operator= ( const LocalizationParticleData other  ) 

Definition at line 45 of file LocalizationParticleData.cc.

void printParams (  )  const [virtual]

Print information about this shape. (Virtual in BaseData.).

Implements BaseData.

Definition at line 31 of file LocalizationParticleData.cc.

virtual void projectToGround ( const fmat::Transform camToBase,
const PlaneEquation groundplane 
) [virtual]

Project to ground plane using given matrix.

Implements BaseData.

Definition at line 61 of file LocalizationParticleData.h.

Sketch< bool > * render (  )  const [private, virtual]

Render into a sketch space and return pointer. (Private.).

Render into a sketch space and return a pointer. (Private.).

Implements BaseData.

Definition at line 55 of file LocalizationParticleData.cc.

bool updateParams ( const ShapeRoot other,
bool  forceUpdate = false 
) [virtual]

Update shape parameters after matching to another shape.

Implements BaseData.

Definition at line 29 of file LocalizationParticleData.cc.


Member Data Documentation


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

DualCoding 5.1CVS
Generated Mon May 9 04:56:31 2016 by Doxygen 1.6.3