ALRedBallDetection API

NAOqi Vision - Overview | API


Namespace : AL

#include <alproxies/alredballdetectionproxy.h>

Method list

As any module, this module inherits methods from ALModule API. It also has the following specific methods:

class ALRedBallDetectionProxy

Event list

Methods

void ALRedBallDetectionProxy::subscribe(const std::string& name)

Subscribes to ALRedBallDetection. This causes the module to start writing information to ALMemory in “redBallDetected”. This can be accessed in ALMemory using ALMemoryProxy::getData().

Parameters:
  • name – Name to identify the subscriber
void ALRedBallDetectionProxy::unsubscribe(const std::string& name)

Unsubscribes to ALRedBallDetection. This causes the module to stop writing information to ALMemory in “redBallDetected”.

Parameters:

Events

Event: "redBallDetected"
callback(std::string eventName, AL::ALValue value, std::string subscriberIdentifier)

Raised when a red ball is detected.

Parameters:
  • eventName (std::string) – “redBallDetected”
  • value – Informations related to the detected red ball. Please refer to ALRedBallDetection for details.
  • subscriberIdentifier (std::string) –