Overview | ALRedBallTracker API | ALFaceTracker API | Trackers Sample
Namespace : AL
#include <alproxies/alredballtrackerproxy.h>
As any module, this module inherits methods from ALModule API. It also has the following specific methods:
Returns the [x, y, z] position of the red ball in FRAME_TORSO. This is done assuming an average red ball size (diameter: 0.06 m), so it might not be very accurate.
Returns: | An Array of float containing the red ball position [x, y, z]. |
---|
Return true if the red Ball Tracker is running.
Returns: | true if the red Ball Tracker is running. |
---|
Return true if a new Red Ball was detected since the last getPosition().
Returns: | true if a new Red Ball was detected since the last getPosition(). |
---|
If true, the tracking will be through a Whole Body Process.
Parameters: |
|
---|
Start the tracker by Subscribing to Event redBallDetected from ALRedBallDetection module. Then Wait Event redBallDetected from ALRedBallDetection module. And finally send information to motion for head tracking. Note: Stiffness of Head must be set to 1.0 to move!