Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

VisualTargetCloseTrans Class Reference

causes a transition when a visual object is "close" More...

#include <VisualTargetCloseTrans.h>

Inheritance diagram for VisualTargetCloseTrans:

Detailed Description

causes a transition when a visual object is "close"

Definition at line 15 of file VisualTargetCloseTrans.h.

List of all members.

Public Member Functions

 VisualTargetCloseTrans (StateNode *destination, unsigned int source_id, float threshold=225)
 constructor
 VisualTargetCloseTrans (const std::string &name, StateNode *destination, unsigned int source_id, float threshold=225)
 constructor
virtual void postStart ()
 starts listening for the object specified by the source id in the constructor
virtual void doEvent ()
 if the object is "close", calls fire()

Protected Attributes

unsigned int sid
 Source ID of object to track.
float distanceThreshold
 Distance at which to trigger transition, in millimeters.

Constructor & Destructor Documentation

VisualTargetCloseTrans::VisualTargetCloseTrans ( StateNode destination,
unsigned int  source_id,
float  threshold = 225 
)

constructor

Definition at line 18 of file VisualTargetCloseTrans.h.

VisualTargetCloseTrans::VisualTargetCloseTrans ( const std::string &  name,
StateNode destination,
unsigned int  source_id,
float  threshold = 225 
)

constructor

Definition at line 22 of file VisualTargetCloseTrans.h.


Member Function Documentation

virtual void VisualTargetCloseTrans::doEvent (  )  [virtual]

if the object is "close", calls fire()

Reimplemented from BehaviorBase.

Definition at line 32 of file VisualTargetCloseTrans.h.

virtual void VisualTargetCloseTrans::postStart (  )  [virtual]

starts listening for the object specified by the source id in the constructor

Reimplemented from BehaviorBase.

Definition at line 26 of file VisualTargetCloseTrans.h.


Member Data Documentation

Distance at which to trigger transition, in millimeters.

Definition at line 51 of file VisualTargetCloseTrans.h.

Referenced by doEvent().

unsigned int VisualTargetCloseTrans::sid [protected]

Source ID of object to track.

Definition at line 48 of file VisualTargetCloseTrans.h.

Referenced by postStart().


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:18 2016 by Doxygen 1.6.3