ALRobotPose API

Overview | API

See also

Namespace : AL

#include <alproxies/alrobotposeproxy.h>

Event list

Methods

AL::ALValue ALRobotPoseProxy::getActualPoseAndTime()

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()

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)

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

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

float robotPoseSince

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