Aldebaran documentation What's new in NAOqi 2.4.3?

ALRobotPose API

NAOqi Sensors & LEDs - Overview | API


Warning

This module is deprecated.

This module is deprecated and most of its functionalities were moved to new module: ALRobotPosture.

Use these new module since ALRobotPose will not be maintained in the future.

Namespace : AL

#include <alproxies/alrobotposeproxy.h>

Method list

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

class ALRobotPoseProxy

ALMemory Keys list

Methods

AL::ALValue ALRobotPoseProxy::getActualPoseAndTime()

Deprecated since version 1.14: use module ALRobotPosture instead.

Get the actual robot posture and the time since it was detected.

Returns:ALValue array of size 2. The first element is a string whose value is the posture name. The second element is a float corresponding to the time in seconds elapsed since the posture was detected.
AL::ALValue ALRobotPoseProxy::getPoseNames()

Deprecated since version 1.14: use module ALRobotPosture instead.

Get the list of all postures names possibly returned by this module.

Returns:ALValue array of strings containing all the possible postures names.

Events

Event: "robotPoseChanged"
callback(std::string eventName, std::string postureName, std::string subscriberIdentifier)

Deprecated since version 1.14: use module ALRobotPosture instead.

Raised when the posture changes and the new posture has been constant for 500 ms. The corresponding ALMemory Key is robotPoseChanged, which is a string whose value is the current posture name.

Parameters:
  • eventName (std::string) – “robotPoseChanged”
  • postureName – current posture name
  • subscriberIdentifier (std::string) –

ALMemory Keys

float robotPose

Deprecated since version 1.14: use module ALRobotPosture instead.

A float (integer cast) coding the current posture (use ALRobotPoseProxy::getPoseNames to match to the posture name)

float robotPoseSince

Deprecated since version 1.14: use module ALRobotPosture instead.

A float corresponding to the time in seconds elapsed since the current posture was detected.