NAOqi Vision - Overview | API
Namespace : AL
#include <alproxies/almovementdetectionproxy.h>
As any module, this module inherits methods from ALModule API. It also has the following specific methods:
Sets the value of the optical flow sensitivity for the detection. Please refer to ALMovementDetection for details.
Parameters: |
|
---|---|
Returns: | True if the update succeeded. |
Returns: | The current optical flow sensitivity. Please refer to ALMovementDetection for details. |
---|
Returns: | Index of the active camera (0: top camera, 1: bottom camera) |
---|
Returns: | Current extractor framerate in frames per second (range: 1-30 fps) |
---|
Returns: | Index of the current resolution (0: QQVGA, 1: QVGA, 2: VGA, 3: 4VGA) |
---|
Returns: | True if the extractor is paused (subscribed but not running). |
---|
Returns: | True if the extractor is processing images (at least one subscriber). |
---|
Sets the camera from which the processed images will be taken. This does not change the active camera for other modules.
Parameters: |
|
---|---|
Returns: | True if the active camera has been successfully set. |
Warning
If you use this function, the active camera of this module will not be linked to the “default” camera of the robot anymore. This means that the function setParam(kCameraSelectID) will not affect the active camera of this module. If you want the module to follow the “default” camera again, you can use the function ALMovementDetectionProxy::setActiveCamera(-1).
Sets the extractor framerate (the number of processes per second).
Parameters: |
|
---|---|
Returns: | True if the framerate has been successfully changed. |
Sets the resolution of the image to be processed.
Parameters: |
|
---|---|
Returns: | True if the resolution has been successfully changed. |
Raised each time a movement is detected.
Note
This event should be prefixed by MovementDetection/ when subscribing to it.
Contains the information about the detected movement. Please refer to ALMovementDetection for details.
Full name in ALMemory: MovementDetection/MovementInfo