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

# Explorer Class Reference

`#include <Explorer.h>`

Inheritance diagram for Explorer:

List of all members.

## Detailed Description

Explores the plane using simple search patterns. Avoids walls and the own cluster point when exploring. Returns when a cube or a robot has been detected.

Author:
  Jia L. Du

## Public Member Functions
| Explorer ()
int | activate ()
## Static Public Attributes
const int | ROBOT_DETECTED = 0
const int | CUBE_DETECTED = 1
const int | DRIVE_STALLED = 2
## Private Attributes
Broadcaster * | broadcaster

## Constructor & Destructor Documentation

Explorer::Explorer | ( |  | ) |

## Member Function Documentation

int Explorer::activate | ( |  | ) |

| Activates this behavior Returns: A result code indicating why this behavior terminated. Explorer.ROBOT_DETECTED or Explorer.CUBE_ DETECTED or Explorer.DRIVE_STALLED

## Member Data Documentation

Broadcaster* Explorer::broadcaster`[private]`

| The Explorer needs to communicate with the Broadcaster when the first cube is found

const int Explorer::CUBE_DETECTED = 1`[static]`

| Used as result code for Explorer::activate()

const int Explorer::DRIVE_STALLED = 2`[static]`

| Used as result code for Explorer::activate()

const int Explorer::ROBOT_DETECTED = 0`[static]`

| Used as result code for Explorer::activate()