Homepage Demos Overview Downloads Tutorials Reference
Credits

SimpleChaseBallBehavior Class Reference

#include <SimpleChaseBallBehavior.h>

Inheritance diagram for SimpleChaseBallBehavior:

Inheritance graph
[legend]
List of all members.

Detailed Description

A simple behavior to chase after any objects seen by the vision system.

Similar to ChaseBallBehavior, but this one doesn't try to move the head, so it's a little more... simple. However, it does make sure to take into account which direction the head is pointing when it sees the object.

Definition at line 18 of file SimpleChaseBallBehavior.h.

Public Member Functions

 SimpleChaseBallBehavior ()
 constructor

virtual ~SimpleChaseBallBehavior ()
 destructor

virtual void DoStart ()
 adds a headpointer and a walker, and a listens for vision events

virtual void DoStop ()
 removes motion commands and stops listening

virtual void processEvent (const EventBase &event)
 sets the head to point at the object and sets the body to move where the head points

virtual std::string getName () const
 Identifies the behavior in menus and such.


Protected Attributes

MotionManager::MC_ID walker_id
 a WalkMC object


Constructor & Destructor Documentation

SimpleChaseBallBehavior::SimpleChaseBallBehavior  )  [inline]
 

constructor

Definition at line 21 of file SimpleChaseBallBehavior.h.

virtual SimpleChaseBallBehavior::~SimpleChaseBallBehavior  )  [inline, virtual]
 

destructor

Definition at line 25 of file SimpleChaseBallBehavior.h.


Member Function Documentation

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

adds a headpointer and a walker, and a listens for vision events

Reimplemented from BehaviorBase.

Definition at line 28 of file SimpleChaseBallBehavior.h.

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

removes motion commands and stops listening

Reimplemented from BehaviorBase.

Definition at line 35 of file SimpleChaseBallBehavior.h.

virtual std::string SimpleChaseBallBehavior::getName  )  const [inline, virtual]
 

Identifies the behavior in menus and such.

Implements BehaviorBase.

Definition at line 52 of file SimpleChaseBallBehavior.h.

virtual void SimpleChaseBallBehavior::processEvent const EventBase event  )  [inline, virtual]
 

sets the head to point at the object and sets the body to move where the head points

Reimplemented from BehaviorBase.

Definition at line 42 of file SimpleChaseBallBehavior.h.


Member Data Documentation

MotionManager::MC_ID SimpleChaseBallBehavior::walker_id [protected]
 

a WalkMC object

Definition at line 55 of file SimpleChaseBallBehavior.h.

Referenced by DoStart(), DoStop(), processEvent(), and SimpleChaseBallBehavior().


The documentation for this class was generated from the following file:
Tekkotsu v2.0
Generated Wed Jan 21 03:23:27 2004 by Doxygen 1.3.4