Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

AgentData Class Reference

Representation of the robot on the world map. More...

#include <AgentData.h>

Inheritance diagram for AgentData:

Detailed Description

Representation of the robot on the world map.

Definition at line 18 of file AgentData.h.

List of all members.

Public Member Functions

 AgentData (ShapeSpace &_space, const Point &c, AngTwoPi orient=0.f)
 Constructor.
 AgentData (const AgentData &otherData)
 Copy constructor.
 DATASTUFF_H (AgentData)
Point getCentroid () const
 Centroid. (Virtual in BaseData.).
BoundingBox2D getBoundingBox () const
 returns the bounding box of the agent
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 fmat::Transform &camToBase, const PlaneEquation &groundplane)
 Project to ground plane using given matrix.
virtual void applyTransform (const fmat::Transform &Tmat, const ReferenceFrameType_t newref=unspecified)
 Transformations. (Virtual in BaseData.).
virtual unsigned short getDimension () const
AngTwoPi getOrientation () const
fmat::Column< 3 > getBoundingBoxOffset () const
fmat::Column< 3 > getBoundingBoxHalfDims () const
void setOrientation (AngTwoPi _orientation)
 Don't call this; use MapBuilder::setAgent().
void setCentroidPt (const Point &otherPt)
 Don't call this; use MapBuilder::setAgent().
virtual Sketch< bool > * render () const
 Render into a sketch space and return reference.
AgentDataoperator= (const AgentData &)
 don't call

Static Public Member Functions

static ShapeType_t getStaticType ()

Private Attributes

Point center_pt
AngTwoPi orientation

Constructor & Destructor Documentation

AgentData ( ShapeSpace _space,
const Point c,
AngTwoPi  orient = 0.f 
)

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

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

Transformations. (Virtual in BaseData.).

Implements BaseData.

Definition at line 73 of file AgentData.cc.

DATASTUFF_H ( AgentData   ) 
BoundingBox2D getBoundingBox (  )  const [virtual]

returns the bounding box of the agent

Reimplemented from BaseData.

Definition at line 36 of file AgentData.cc.

fmat::Column<3> getBoundingBoxHalfDims (  )  const

Definition at line 62 of file AgentData.h.

fmat::Column<3> getBoundingBoxOffset (  )  const

Definition at line 61 of file AgentData.h.

Point getCentroid (  )  const [virtual]

Centroid. (Virtual in BaseData.).

Implements BaseData.

Definition at line 39 of file AgentData.h.

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

virtual unsigned short getDimension (  )  const [virtual]

Implements BaseData.

Definition at line 58 of file AgentData.h.

AngTwoPi getOrientation (  )  const

Definition at line 60 of file AgentData.h.

Referenced by AgentData::updateParams().

static ShapeType_t getStaticType (  )  [static]

Definition at line 30 of file AgentData.h.

bool isMatchFor ( const ShapeRoot other  )  const [virtual]

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

Implements BaseData.

Definition at line 48 of file AgentData.cc.

Referenced by AgentData::updateParams().

AgentData& operator= ( const AgentData  ) 

don't call

void printParams (  )  const [virtual]

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

Implements BaseData.

Definition at line 54 of file AgentData.cc.

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

Project to ground plane using given matrix.

Implements BaseData.

Definition at line 90 of file AgentData.cc.

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

Render into a sketch space and return reference.

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

Implements BaseData.

Definition at line 110 of file AgentData.cc.

void setCentroidPt ( const Point otherPt  ) 

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

Definition at line 65 of file AgentData.h.

void setOrientation ( AngTwoPi  _orientation  ) 

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

Functions to set properties.

Definition at line 84 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 95 of file AgentData.cc.


Member Data Documentation


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

DualCoding 5.1CVS
Generated Sat May 4 06:29:30 2013 by Doxygen 1.6.3