Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

KoduInterpreter::KoduConditionEvaluator Class Reference

#include <KoduInterpreter.h>

Inheritance diagram for KoduInterpreter::KoduConditionEvaluator:

Detailed Description

Definition at line 1480 of file KoduInterpreter.h.

List of all members.

Public Member Functions

 KoduConditionEvaluator (const std::string &nodename="KoduConditionEvaluator")
void resetChildRulesWithOnceEnabled (const unsigned int kParentRuleNumer)
 Enables child rules with the once modifier enabled (who have already ran) to run (again).
virtual void doStart ()
 Delegate function for subclasses to be notified when the behavior starts up.

Public Attributes

unsigned int cycleCount

Constructor & Destructor Documentation

KoduInterpreter::KoduConditionEvaluator::KoduConditionEvaluator ( const std::string &  nodename = "KoduConditionEvaluator"  ) 

Definition at line 1482 of file KoduInterpreter.h.


Member Function Documentation

virtual void KoduInterpreter::KoduConditionEvaluator::doStart (  )  [virtual]

Delegate function for subclasses to be notified when the behavior starts up.

Should be overridden by subclasses to subscribe to events, install motion commands, etc.

doStart() is basically a hook to allow subclasses to jump in and do some customization of behavior parameters while the behavior is starting. If you are writing a behavior class and do not expect further derivation, just override doStart() yourself. However, if you do expect further derivation of your class, consider using preStart() or postStart() instead, and leave doStart() for the 'leaf' classes.

check if the condition is type KoduConditionBump if so, stop evaluating the condition, and create a perceptual task for it. once the robot is close enough to detect a bump, the task will visually detect bump. if the detection was successful, the agent would be able to evaluate the rule again. if not, the rule is disabled for some time (temp fix)

Reimplemented from BehaviorBase.

Definition at line 1504 of file KoduInterpreter.h.

void KoduInterpreter::KoduConditionEvaluator::resetChildRulesWithOnceEnabled ( const unsigned int  kParentRuleNumer  ) 

Enables child rules with the once modifier enabled (who have already ran) to run (again).

Definition at line 1485 of file KoduInterpreter.h.

Referenced by doStart().


Member Data Documentation

Definition at line 1812 of file KoduInterpreter.h.

Referenced by doStart().


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

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