#include <ArActionColorFollow.h>
Inheritance diagram for ArActionColorFollow:

Public Types | |
| enum | LocationState { LEFT, RIGHT, CENTER } |
| enum | MoveState { FOLLOWING, ACQUIRING, STOPPED } |
| enum | TargetState { NO_TARGET, TARGET } |
Public Member Functions | |
| ArActionColorFollow (const char *name, ArACTS_1_2 *acts, ArPTZ *camera, double speed=200, int width=160, int height=120) | |
| virtual ArActionDesired * | fire (ArActionDesired currentDesired) |
| Fires the action, returning what the action wants to do. | |
| bool | getAcquire () |
| bool | getBlob () |
| int | getChannel () |
| bool | getMovement () |
| void | setAcquire (bool acquire) |
| void | setCamera (ArPTZ *camera) |
| bool | setChannel (int channel) |
| void | startMovement (void) |
| void | stopMovement (void) |
Protected Attributes | |
| bool | killMovement |
| bool | myAcquire |
| ArACTS_1_2 * | myActs |
| ArPTZ * | myCamera |
| int | myChannel |
| ArActionDesired | myDesired |
| int | myHeight |
| ArTime | myLastSeen |
| LocationState | myLocation |
| int | myMaxTime |
| MoveState | myMove |
| double | mySpeed |
| TargetState | myState |
| int | myWidth |
Definition at line 39 of file ArActionColorFollow.h.
|
|
Fires the action, returning what the action wants to do.
Implements ArAction. Definition at line 61 of file ArActionColorFollow.cpp. References ArMath::fabs(), ArACTSBlob::getArea(), ArACTS_1_2::getBlob(), ArACTS_1_2::getNumBlobs(), ArACTSBlob::getXCG(), ArACTSBlob::getYCG(), ArTime::mSecSince(), ArActionDesired::reset(), ArActionDesired::setDeltaHeading(), ArTime::setToNow(), ArActionDesired::setVel(), ArPTZ::tilt(), and ArPTZ::tiltRel(). |
1.4.0