Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

AgentData Class Reference

#include <AgentData.h>

Inheritance diagram for AgentData:

List of all members.


Detailed Description

Representation of the robot on the world map.

Definition at line 17 of file AgentData.h.


Public Member Functions

 AgentData (ShapeSpace &_space, const Point &c)
 Constructor.
 AgentData (const AgentData &otherData)
 Copy constructor.
 DATASTUFF_H (AgentData)
Point getCentroid () const
 Centroid. (Virtual in BaseData.).
virtual bool isMatchFor (const ShapeRoot &other) const
 Match agents based on their parameters. (Virtual in BaseData.).
virtual void printParams () const
 Print information about this shape. (Virtual in BaseData.).
virtual bool updateParams (const ShapeRoot &other, bool force=false)
 Update shape parameters after matching to another shape.
virtual void projectToGround (const NEWMAT::Matrix &camToBase, const NEWMAT::ColumnVector &groundplane)
 Project to ground plane using given matrix.
virtual void applyTransform (const NEWMAT::Matrix &Tmat, const ReferenceFrameType_t newref=unspecified)
 Transformations. (Virtual in BaseData.).
virtual unsigned short getDimension () const
AngTwoPi getOrientation () const

Static Public Member Functions

static ShapeType_t getStaticType ()

Protected Member Functions

void updateOrientation ()
 Updates orientation according to orientation_pt.

Private Member Functions

virtual Sketch< bool > * render () const
 Render into a sketch space and return reference.
AgentDataoperator= (const AgentData &)
 don't call
void setOrientation (AngTwoPi _orientation)
 Functions to set property values.
void setCentroidPt (const Point &otherPt)
 Don't call this; use MapBuilder::setAgent().

Private Attributes

Point center_pt
Point orientation_pt
AngTwoPi orientation

Friends

class MapBuilder

Constructor & Destructor Documentation

AgentData ( ShapeSpace _space,
const Point c 
)

Constructor.

Definition at line 26 of file AgentData.cc.

AgentData ( const AgentData otherData  ) 

Copy constructor.

Definition at line 30 of file AgentData.cc.


Member Function Documentation

static ShapeType_t getStaticType (  )  [inline, static]

Definition at line 30 of file AgentData.h.

DATASTUFF_H ( AgentData   ) 

Point getCentroid (  )  const [inline, virtual]

Centroid. (Virtual in BaseData.).

Implements BaseData.

Definition at line 39 of file AgentData.h.

Referenced by AgentData::printParams(), AgentData::render(), AgentData::setOrientation(), and AgentData::updateParams().

bool isMatchFor ( const ShapeRoot other  )  const [virtual]

Match agents based on their parameters. (Virtual in BaseData.).

Implements BaseData.

Definition at line 37 of file AgentData.cc.

Referenced by AgentData::updateParams().

void printParams (  )  const [virtual]

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

Implements BaseData.

Definition at line 43 of file AgentData.cc.

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

Update shape parameters after matching to another shape.

Implements BaseData.

Definition at line 94 of file AgentData.cc.

void projectToGround ( const NEWMAT::Matrix &  camToBase,
const NEWMAT::ColumnVector &  groundplane 
) [virtual]

Project to ground plane using given matrix.

Implements BaseData.

Definition at line 87 of file AgentData.cc.

void applyTransform ( const NEWMAT::Matrix &  Tmat,
const ReferenceFrameType_t  newref = unspecified 
) [virtual]

Transformations. (Virtual in BaseData.).

Implements BaseData.

Definition at line 62 of file AgentData.cc.

virtual unsigned short getDimension (  )  const [inline, virtual]

Implements BaseData.

Definition at line 55 of file AgentData.h.

AngTwoPi getOrientation (  )  const [inline]

Definition at line 57 of file AgentData.h.

Referenced by AgentData::updateParams().

void updateOrientation (  )  [protected]

Updates orientation according to orientation_pt.

Definition at line 82 of file AgentData.cc.

Referenced by AgentData::projectToGround().

void setOrientation ( AngTwoPi  _orientation  )  [private]

Functions to set property values.

Functions to set properties.

Don't call this; use MapBuilder::setAgent()

Definition at line 74 of file AgentData.cc.

void setCentroidPt ( const Point otherPt  )  [inline, private]

Don't call this; use MapBuilder::setAgent().

Definition at line 68 of file AgentData.h.

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

Render into a sketch space and return reference.

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

Implements BaseData.

Definition at line 109 of file AgentData.cc.

AgentData& operator= ( const AgentData  )  [private]

don't call


Friends And Related Function Documentation

friend class MapBuilder [friend]

Definition at line 64 of file AgentData.h.


Member Data Documentation


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

DualCoding 4.0
Generated Thu Nov 22 00:53:55 2007 by Doxygen 1.5.4