# SoftBank Robotics documentation What's new in NAOqi 2.8?

# 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:
  - `ALSittingPeopleDetectionProxy::getSittingThreshold`
  - `ALSittingPeopleDetectionProxy::setSittingThreshold`

## Event list

- `SittingPeopleDetection/PersonSittingDown()`
- `SittingPeopleDetection/PersonStandingUp()`

## ALMemory Key list

- `PeoplePerception/Person/<ID>/IsSitting`

## 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`.

Glossary Site map Index Support Contact Legal Notices