#include <SimpleMotionRecognition.h>
Inheritance diagram for SimpleMotionRecognition:
Public Member Functions | |
SimpleMotionRecognition (const SensorBehaviorControlInterfaces &interfaces) | |
Constructor. | |
int | searchTilt () |
int | searchPan () |
bool | headIsNotInMotion () |
Vector2< long > | getAngleYZ (Vector2< int > point) |
Vector2< int > * | getMotion () |
virtual void | execute () |
Executes the module. | |
virtual bool | handleMessage (InMessage &message) |
Called from a MessageQueue to distribute messages. | |
Private Attributes | |
CameraMatrix | previousCameraMatrix |
Image | imageBuffer [SIMPLEIMAGEBUFFERSIZE] |
int | start |
int | currentImage |
int | imagesLeft |
int | wait |
int | reset |
int | frameDiff |
int | searchStatus |
int | halfCameraResolutionHeigth |
int | halfCameraResolutionWidth |
double | halfCameraOpeningAngleHeigth |
double | halfCameraOpeningAngleWidth |
Vector2< int > * | motion |
Vector2< long > | newHeadPos |
Definition at line 33 of file SimpleMotionRecognition.h.
|
Constructor.
Definition at line 12 of file SimpleMotionRecognition.cpp. References Image::cameraInfo, halfCameraOpeningAngleHeigth, halfCameraOpeningAngleWidth, halfCameraResolutionHeigth, halfCameraResolutionWidth, CameraInfo::openingAngleHeight, CameraInfo::openingAngleWidth, reset, RESETCONST, CameraInfo::resolutionHeight, CameraInfo::resolutionWidth, searchStatus, SIMPLEIMAGEBUFFERSIZE, and WAITMIN. |
|
Definition at line 28 of file SimpleMotionRecognition.cpp. References HeadControlMode::directTilt, and searchStatus. Referenced by execute(). |
|
Definition at line 35 of file SimpleMotionRecognition.cpp. References HeadControlMode::directPan, searchStatus, and WAITMIN. Referenced by execute(). |
|
Definition at line 51 of file SimpleMotionRecognition.cpp. References frameDiff, halfCameraOpeningAngleHeigth, halfCameraOpeningAngleWidth, previousCameraMatrix, toMicroRad(), WAITCONST, and WAITMIN. Referenced by execute(). |
Here is the call graph for this function:
|
Definition at line 70 of file SimpleMotionRecognition.cpp. References halfCameraOpeningAngleHeigth, halfCameraOpeningAngleWidth, halfCameraResolutionHeigth, halfCameraResolutionWidth, point, toMicroRad(), Vector2< int >::x, and Vector2< int >::y. Referenced by execute(). |
Here is the call graph for this function:
|
Definition at line 79 of file SimpleMotionRecognition.cpp. References Image::cameraInfo, MINDIFF, CameraInfo::resolutionHeight, and SIMPLEIMAGEBUFFERSIZE. Referenced by execute(). |
|
Executes the module.
Implements Module. Definition at line 112 of file SimpleMotionRecognition.cpp. References ARROW, DEBUG_DRAWING_FINISHED, HeadControlMode::directPan, HeadControlMode::directRoll, HeadControlMode::directTilt, frameDiff, Image::frameNumber, getAngleYZ(), getMotion(), HeadControlMode::headControlMode, headIsNotInMotion(), MotionRequest::motionType, newHeadPos, previousCameraMatrix, reset, RESETCONST, searchPan(), searchStatus, searchTilt(), SIMPLEIMAGEBUFFERSIZE, SPEEDFAKTOR, Vector2< long >::x, Vector2< int >::x, Vector2< long >::y, and Vector2< int >::y. |
Here is the call graph for this function:
|
Called from a MessageQueue to distribute messages. Use message.getMessageID to decide if the message is relavant for the MesssageHandler derivate. Use message.bin, message.text or message.config as In streams to get the data from.
Reimplemented from Module. Definition at line 162 of file SimpleMotionRecognition.cpp. |
|
Definition at line 54 of file SimpleMotionRecognition.h. Referenced by execute(), and headIsNotInMotion(). |
|
Definition at line 55 of file SimpleMotionRecognition.h. |
|
Definition at line 56 of file SimpleMotionRecognition.h. |
|
Definition at line 56 of file SimpleMotionRecognition.h. |
|
Definition at line 56 of file SimpleMotionRecognition.h. |
|
Definition at line 56 of file SimpleMotionRecognition.h. |
|
Definition at line 56 of file SimpleMotionRecognition.h. Referenced by execute(), and SimpleMotionRecognition(). |
|
Definition at line 56 of file SimpleMotionRecognition.h. Referenced by execute(), and headIsNotInMotion(). |
|
Definition at line 56 of file SimpleMotionRecognition.h. Referenced by execute(), searchPan(), searchTilt(), and SimpleMotionRecognition(). |
|
Definition at line 56 of file SimpleMotionRecognition.h. Referenced by getAngleYZ(), and SimpleMotionRecognition(). |
|
Definition at line 56 of file SimpleMotionRecognition.h. Referenced by getAngleYZ(), and SimpleMotionRecognition(). |
|
Definition at line 58 of file SimpleMotionRecognition.h. Referenced by getAngleYZ(), headIsNotInMotion(), and SimpleMotionRecognition(). |
|
Definition at line 58 of file SimpleMotionRecognition.h. Referenced by getAngleYZ(), headIsNotInMotion(), and SimpleMotionRecognition(). |
|
Definition at line 59 of file SimpleMotionRecognition.h. |
|
Definition at line 60 of file SimpleMotionRecognition.h. Referenced by execute(). |