ALSittingPeopleDetection API¶
NAOqi People Perception - Overview | API
Namespace : AL
#include <alproxies/alsittingpeopledetectionproxy.h>
Method list¶
-
class
ALSittingPeopleDetectionProxy
¶
- As any module, this module inherits methods from ALModule API.
- It also inherits methods from ALExtractor API.
- It also has the following specific methods:
ALMemory Key list¶
Methods¶
-
float
ALSittingPeopleDetectionProxy::
getSittingThreshold
()¶ Returns the threshold used to distinguish between sitting and standing people.
-
void
ALSittingPeopleDetectionProxy::
setSittingThreshold
(const float& threshold)¶ Parameters: - threshold – Threshold in meters used to distinguish between sitting and standing people. The default value is 1.5 meter.
Events¶
-
Event:callback(std::string eventName, int id, std::string subscriberIdentifier)¶
"SittingPeopleDetection/PersonSittingDown"
Raised when a person goes from standing to sitting position.
Parameters: - eventName (std::string) – “SittingPeopleDetection/PersonSittingDown”
- id – ID of the person as defined by the ALPeoplePerception API.
- subscriberIdentifier (std::string) –
-
Event:callback(std::string eventName, int id, std::string subscriberIdentifier)¶
"SittingPeopleDetection/PersonStandingUp"
Raised when a person goes from sitting to standing position.
Parameters: - eventName (std::string) – “SittingPeopleDetection/PersonStandingUp”
- id – ID of the person as defined by the ALPeoplePerception API.
- subscriberIdentifier (std::string) –
ALMemory Keys¶
-
int
PeoplePerception/Person/<ID>/IsSitting
¶ Posture of a person:
- 0 means that the person is standing,
- 1 means sitting,
- 2 means that the posture is unknown.
<ID> is the ID of the person as defined by the ALPeoplePerception API.See also:PeoplePerception/PeopleList
.