Aldebaran documentation What's new in NAOqi 2.4.3?

ALSittingPeopleDetection API

NAOqi People Perception - Overview | API


Namespace : AL

#include <alproxies/alsittingpeopledetectionproxy.h>

Method list

class ALSittingPeopleDetectionProxy

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: "SittingPeopleDetection/PersonSittingDown"
callback(std::string eventName, int id, std::string subscriberIdentifier)

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: "SittingPeopleDetection/PersonStandingUp"
callback(std::string eventName, int id, std::string subscriberIdentifier)

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.