Homepage Demos Overview Downloads Tutorials Reference
Credits

VisualTargetCloseTrans Class Reference

#include <VisualTargetCloseTrans.h>

Inheritance diagram for VisualTargetCloseTrans:

Inheritance graph
[legend]
List of all members.

Detailed Description

causes a transition when a visual object is "close"

Definition at line 11 of file VisualTargetCloseTrans.h.

Public Member Functions

 VisualTargetCloseTrans (StateNode *source, StateNode *destination, VisionEventNS::VisionSourceID_t source_id)
 constructor

virtual void DoStart ()
 starts listening for the object specified by the source id in the constructor

virtual void DoStop ()
 called by StateNode when it becomes inactive - undo whatever you did in Enable()

virtual void processEvent (const EventBase &e)
 if the object is "close", calls activate()

virtual std::string getName () const
 Identifies the behavior in menus and such.


Protected Attributes

VisionEventNS::VisionSourceID_t sid
 Source ID of object to track.


Constructor & Destructor Documentation

VisualTargetCloseTrans::VisualTargetCloseTrans StateNode source,
StateNode destination,
VisionEventNS::VisionSourceID_t  source_id
[inline]
 

constructor

Definition at line 14 of file VisualTargetCloseTrans.h.

References sid.


Member Function Documentation

virtual void VisualTargetCloseTrans::DoStart  )  [inline, virtual]
 

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

Reimplemented from BehaviorBase.

Definition at line 17 of file VisualTargetCloseTrans.h.

References EventRouter::addListener(), BehaviorBase::DoStart(), erouter, sid, and EventBase::visionEGID.

Here is the call graph for this function:

virtual void VisualTargetCloseTrans::DoStop  )  [inline, virtual]
 

called by StateNode when it becomes inactive - undo whatever you did in Enable()

Reimplemented from BehaviorBase.

Definition at line 20 of file VisualTargetCloseTrans.h.

References BehaviorBase::DoStop(), erouter, and EventRouter::forgetListener().

Here is the call graph for this function:

virtual std::string VisualTargetCloseTrans::getName  )  const [inline, virtual]
 

Identifies the behavior in menus and such.

Implements BehaviorBase.

Definition at line 32 of file VisualTargetCloseTrans.h.

virtual void VisualTargetCloseTrans::processEvent const EventBase e  )  [inline, virtual]
 

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

Reimplemented from BehaviorBase.

Definition at line 23 of file VisualTargetCloseTrans.h.

References Transition::activate(), ASSERTRET, VisionEvent::getCenterX(), VisionEvent::getCenterY(), ERS210Info::IRDistOffset, WorldState::sensors, and state.

Here is the call graph for this function:


Member Data Documentation

VisionEventNS::VisionSourceID_t VisualTargetCloseTrans::sid [protected]
 

Source ID of object to track.

Definition at line 36 of file VisualTargetCloseTrans.h.


The documentation for this class was generated from the following file:
Tekkotsu v1.5
Generated Fri Oct 10 15:58:15 2003 by Doxygen 1.3.4