Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

LostTargetTrans Class Reference

Causes a transition if the target has not been seen minframe times within delay milliseconds. More...

#include <LostTargetTrans.h>

Inheritance diagram for LostTargetTrans:

Detailed Description

Causes a transition if the target has not been seen minframe times within delay milliseconds.

Definition at line 8 of file LostTargetTrans.h.

List of all members.

Public Member Functions

 LostTargetTrans (StateNode *destination, unsigned int source_id, unsigned int delay, int minframes=5)
 constructor, specify delay in milliseconds
 LostTargetTrans (const std::string &name, StateNode *destination, unsigned int source_id, unsigned int delay, int minframes=5)
 constructor, specify delay in milliseconds
virtual void preStart ()
 starts timer
virtual void doEvent ()
 if we receive the timer event, fire()
virtual void resetTimer ()
 resets timer; does not deactivate it
virtual void set_minframes (int minframes)
 set minimum number of frames that target must be seen before resetting the timer

Protected Member Functions

 LostTargetTrans (const std::string &classname, const std::string &instancename, StateNode *destination, unsigned int source_id, unsigned int delay, int minframes=5)
 constructor, only to be called by subclasses (which need to specify their own classname)

Private Attributes

unsigned int sid
 the source id from the detector of the object which is being monitored
int minf
 number of frames that target must be seen before resetting the timer
int counter
 number of frames target has been seen so far

Constructor & Destructor Documentation

LostTargetTrans::LostTargetTrans ( StateNode destination,
unsigned int  source_id,
unsigned int  delay,
int  minframes = 5 
)

constructor, specify delay in milliseconds

Definition at line 12 of file LostTargetTrans.h.

LostTargetTrans::LostTargetTrans ( const std::string &  name,
StateNode destination,
unsigned int  source_id,
unsigned int  delay,
int  minframes = 5 
)

constructor, specify delay in milliseconds

Definition at line 18 of file LostTargetTrans.h.

LostTargetTrans::LostTargetTrans ( const std::string &  classname,
const std::string &  instancename,
StateNode destination,
unsigned int  source_id,
unsigned int  delay,
int  minframes = 5 
) [protected]

constructor, only to be called by subclasses (which need to specify their own classname)

Definition at line 49 of file LostTargetTrans.h.


Member Function Documentation

virtual void LostTargetTrans::doEvent (  )  [virtual]

if we receive the timer event, fire()

Reimplemented from TimeOutTrans.

Definition at line 29 of file LostTargetTrans.h.

virtual void LostTargetTrans::preStart (  )  [virtual]

starts timer

Reimplemented from BehaviorBase.

Definition at line 24 of file LostTargetTrans.h.

virtual void LostTargetTrans::resetTimer (  )  [virtual]

resets timer; does not deactivate it

Reimplemented from TimeOutTrans.

Definition at line 39 of file LostTargetTrans.h.

Referenced by doEvent().

virtual void LostTargetTrans::set_minframes ( int  minframes  )  [virtual]

set minimum number of frames that target must be seen before resetting the timer

Definition at line 45 of file LostTargetTrans.h.


Member Data Documentation

int LostTargetTrans::counter [private]

number of frames target has been seen so far

Definition at line 59 of file LostTargetTrans.h.

Referenced by doEvent(), and resetTimer().

int LostTargetTrans::minf [private]

number of frames that target must be seen before resetting the timer

Definition at line 58 of file LostTargetTrans.h.

Referenced by doEvent(), and set_minframes().

unsigned int LostTargetTrans::sid [private]

the source id from the detector of the object which is being monitored

Definition at line 57 of file LostTargetTrans.h.

Referenced by doEvent(), and preStart().


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

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