ExploreMachine Class Reference#include <ExploreMachine.h>
Inheritance diagram for ExploreMachine:
[legend]List of all members.
Detailed Description
A state machine for exploring an environment (or searching for an object).
Definition at line 9 of file ExploreMachine.h.
Constructor & Destructor Documentation
ExploreMachine::ExploreMachine |
( |
|
) |
[inline] |
|
ExploreMachine::ExploreMachine |
( |
const std::string & |
nm |
) |
[inline] |
|
ExploreMachine::~ExploreMachine |
( |
|
) |
[inline] |
|
|
destructor, check if we need to call our teardown
Definition at line 22 of file ExploreMachine.h. |
Member Function Documentation
void ExploreMachine::DoStart |
( |
|
) |
[virtual] |
|
|
Transitions should call this when you are entering the state, so it can enable its transitions.
Reimplemented from StateNode.
Definition at line 41 of file ExploreMachine.cc. |
void ExploreMachine::DoStop |
( |
|
) |
[virtual] |
|
|
Transitions should call this when you are leaving the state, so it can disable its transitions.
Reimplemented from StateNode.
Definition at line 48 of file ExploreMachine.cc. |
void ExploreMachine::processEvent |
( |
const EventBase & |
|
) |
[virtual] |
|
|
called each time the turn node is activated, sets a new random turn direction and speed
Reimplemented from BehaviorBase.
Definition at line 60 of file ExploreMachine.cc. |
void ExploreMachine::setup |
( |
|
) |
[virtual] |
|
void ExploreMachine::teardown |
( |
|
) |
[virtual] |
|
|
This is called by DoStop() when you should destruct subnodes.
Default implementation will take care of the subnodes and their transitions, you only need to worry about any *other* memory which may have been allocated. If none, you may not need implement this function at all.
Reimplemented from StateNode.
Definition at line 53 of file ExploreMachine.cc.
Referenced by ~ExploreMachine(). |
Member Data Documentation
The documentation for this class was generated from the following files:
|