Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

DualCoding::Pilot::SetOdometryMachine::TurnHead Class Reference

#include <Pilot.h>

Inheritance diagram for DualCoding::Pilot::SetOdometryMachine::TurnHead:

Detailed Description

Definition at line 2029 of file Pilot.h.

List of all members.

Public Member Functions

 TurnHead (const std::string &nodename, float _angle)
virtual void preStart ()
 Adds the motion command to the motion manager, but stops it from running until the user has a chance to program it.
virtual void doStart ()
 Delegate function for subclasses to be notified when the behavior starts up.
virtual void doEvent ()
 Assumes the event is a completion event from the motion, throws a corresponding state node completion event.
virtual void doStop ()
 Delegate function for subclasses to be notified when the behavior starts up.

Public Attributes

float angle

Constructor & Destructor Documentation

DualCoding::Pilot::SetOdometryMachine::TurnHead::TurnHead ( const std::string &  nodename,
float  _angle 
)

Definition at line 2031 of file Pilot.h.


Member Function Documentation

virtual void DualCoding::Pilot::SetOdometryMachine::TurnHead::doEvent (  )  [virtual]

Assumes the event is a completion event from the motion, throws a corresponding state node completion event.

Reimplemented from MCNodeBase.

Definition at line 2049 of file Pilot.h.

virtual void DualCoding::Pilot::SetOdometryMachine::TurnHead::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.

Reimplemented from BehaviorBase.

Definition at line 2041 of file Pilot.h.

virtual void DualCoding::Pilot::SetOdometryMachine::TurnHead::doStop (  )  [virtual]

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

May be overridden to cleanup when the behavior is shutting down. However events will automatically be unsubscribed, and by using addMotion(), motions will automatically be removed by stop(), so you may not need any cleanup.

Reimplemented from BehaviorBase.

Definition at line 2054 of file Pilot.h.

virtual void DualCoding::Pilot::SetOdometryMachine::TurnHead::preStart (  )  [virtual]

Adds the motion command to the motion manager, but stops it from running until the user has a chance to program it.

Reimplemented from MCNode< HeadPointerMC, defHeadPointerNodeName, defHeadPointerNodeDesc, true >.

Definition at line 2034 of file Pilot.h.


Member Data Documentation


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

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