Push Recovery API¶
Pepper only
Namespace : AL
#include <alproxies/almotionproxy.h>
Methods¶
-
void
ALMotionProxy::
setPushRecoveryEnabled
(const bool& enable)¶ Enable/disable the push-recovery reflex of the robot, but only if allowed by the owner. If not allowed, an exception is thrown.
For further details, see: Deactivation of the safety reflexes.
Parameters: - enable – Activate or deactivate the push recovery.
Events¶
-
Event:callback(std::string eventName, AL::ALValue val, std::string subscriberIdentifier)¶
"ALMotion/Safety/PushRecovery"
Raised when push recovery is activated and the robot try to compensate the tilt.
Parameters: - eventName (std::string) – “ALMotion/Safety/PushRecovery”
- val – [angle] angle in radian of perturbation direction in FRAME_ROBOT.
- subscriberIdentifier (std::string) –
-
Event:callback(std::string eventName, AL::ALValue val, std::string subscriberIdentifier)¶
"ALMotion/Safety/RobotPushed"
Deprecated since version 2.4: use
ALMotion/RobotPushed()
instead.Raised when robot is pushed.
Parameters: - eventName (std::string) – “ALMotion/Safety/RobotPushed”
- val – [angle] angle in radian of perturbation direction in FRAME_ROBOT.
- subscriberIdentifier (std::string) –
-
Event:callback(std::string eventName, AL::ALValue val, std::string subscriberIdentifier)¶
"ALMotion/RobotPushed"
Raised when robot is pushed.
Parameters: - eventName (std::string) – “ALMotion/RobotPushed”
- val – [angle, intensity] angle in radian of perturbation direction in FRAME_ROBOT and intensity of the detected push. The intensity is expressed as the estimated mechanical energy (in joules) transmitted to the robot base. For reference, ALMotion will start to actively recover from a push when this intensity is around 1.5 J. Above 7 J, the robot will most likely not be able to recover from the perturbation and will fall.
- subscriberIdentifier (std::string) –