Main Page Class Hierarchy Compound List File List Compound Members File Members

# Behavior Class Reference

`#include <Behavior.h>`

Inheritance diagram for Behavior:

List of all members.

## Detailed Description

Base class from which all behaviors are derived. This provides them with the same base properties and makes adaptations that are to effect all behaviors easier.

Author:
  Jia L. Du

## Public Member Functions
| Behavior ()
void | setCommander (Commander &aCommander)
## Protected Attributes
Drive * | drive
SIR * | sir
Commander * | myCommander
double | clusterRadius
double | myClusterPointDensity

## Constructor & Destructor Documentation

Behavior::Behavior | ( |  | ) |

## Member Function Documentation

void Behavior::setCommander | ( | Commander & | aCommander | ) |

  | Used to set the commander for this behavior Parameters:
  aCommander | The commander for this behavior
See also: myCommander

## Member Data Documentation

double Behavior::clusterRadius`[protected]`

| Every Behavior knows the size of the cluster area

Drive* Behavior::drive`[protected]`

| Every Behavior gets access to the Drive to control robot movement

double Behavior::myClusterPointDensity`[protected]`

| This value is used to store the estimated cube density of the current cluster point

Commander* Behavior::myCommander`[protected]`

| Every Behavior knows its own commander (e.g. to tell the commander that the behavior wants to cede control or wants to sleep for some time)

SIR* Behavior::sir`[protected]`

| Every Behavior gets access to the high-level environment information provided by the SIR