Homepage Demos Overview Downloads Tutorials Reference
Credits

ExploreMachine Class Reference

#include <ExploreMachine.h>

Inheritance diagram for ExploreMachine:

Inheritance graph
[legend]
List of all members.

Detailed Description

A state machine for exploring an environment (or searching for an object).

Definition at line 11 of file ExploreMachine.h.

Public Member Functions

 ExploreMachine (StateNode *p=NULL)
 constructor

virtual void setup ()
 This is called by DoStart() when you should setup the network of subnodes.

virtual void DoStart ()
 Transitions should call this when you are entering the state, so it can enable its transitions.

virtual void DoStop ()
 Transitions should call this when you are leaving the state, so it can disable its transitions.

virtual void teardown ()
 This is called by DoStop() when you should destruct subnodes.

virtual void processEvent (const EventBase &)
 By defining here, allows you to get away with not supplying a processEvent() function for the EventListener interface. By default, does nothing.


Protected Attributes

StateNodestart
 the node to begin within on DoStart() (turn)

WalkNodeturn
 walk node to use when turning

MotionManager::MC_ID walkid
 we want to share a walk between turning and walking nodes


Private Member Functions

 ExploreMachine (const ExploreMachine &)
 don't use

ExploreMachine operator= (const ExploreMachine &)
 don't use


Constructor & Destructor Documentation

ExploreMachine::ExploreMachine StateNode p = NULL  )  [inline]
 

constructor

Definition at line 14 of file ExploreMachine.h.

References start, turn, and walkid.

ExploreMachine::ExploreMachine const ExploreMachine  )  [private]
 

don't use


Member Function Documentation

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

Transitions should call this when you are entering the state, so it can enable its transitions.

Reimplemented from StateNode.

Definition at line 35 of file ExploreMachine.h.

References EventRouter::addListener(), StateNode::DoStart(), erouter, start, EventBase::stateMachineEGID, and turn.

Here is the call graph for this function:

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

Transitions should call this when you are leaving the state, so it can disable its transitions.

for(int i=0; i<1000; i++)

Reimplemented from StateNode.

Definition at line 42 of file ExploreMachine.h.

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

Here is the call graph for this function:

ExploreMachine ExploreMachine::operator= const ExploreMachine  )  [private]
 

don't use

virtual void ExploreMachine::processEvent const EventBase  )  [inline, virtual]
 

By defining here, allows you to get away with not supplying a processEvent() function for the EventListener interface. By default, does nothing.

Reimplemented from BehaviorBase.

Definition at line 52 of file ExploreMachine.h.

References ERS210Info::IRDistOffset, Socket::printf(), WorldState::sensors, WalkNode::setAVelocity(), sout, state, and turn.

Here is the call graph for this function:

virtual void ExploreMachine::setup  )  [inline, virtual]
 

This is called by DoStart() when you should setup the network of subnodes.

Reimplemented from StateNode.

Definition at line 20 of file ExploreMachine.h.

References MotionManager::addMotion(), StateNode::addNode(), StateNode::addTransition(), StateNode::getName(), ERS210Info::IRDistOffset, motman, EventBase::sensorEGID, WorldState::sensors, StateNode::setName(), StateNode::setup(), start, state, EventBase::statusETID, turn, and walkid.

Here is the call graph for this function:

virtual void ExploreMachine::teardown  )  [inline, virtual]
 

This is called by DoStop() when you should destruct subnodes.

Reimplemented from StateNode.

Definition at line 47 of file ExploreMachine.h.

References motman, MotionManager::removeMotion(), StateNode::teardown(), and walkid.

Here is the call graph for this function:


Member Data Documentation

StateNode* ExploreMachine::start [protected]
 

the node to begin within on DoStart() (turn)

Definition at line 63 of file ExploreMachine.h.

WalkNode* ExploreMachine::turn [protected]
 

walk node to use when turning

Definition at line 64 of file ExploreMachine.h.

MotionManager::MC_ID ExploreMachine::walkid [protected]
 

we want to share a walk between turning and walking nodes

Definition at line 65 of file ExploreMachine.h.


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