Overview | API
Namespace : AL
#include <alproxies/alrobotpostureproxy.h>
As any module, this module inherits methods from ALModule API. It also has the following specific methods:
Returns a vector with all predefined postures.
Returns: | A vector with all predefined postures. |
---|
Returns the name of the current predefined postures. If the current posture is not in the predefined postures, it returns “Unknown”.
Returns: | A string with the name of the current posture. |
---|
Makes the robot go to the predefined posture asked in parameter. It is possible to modify the speed of the move. The move is “intelligent”: it will start from beginning posture of the robot, and choose all the steps to reach the asked posture.
This is a blocking call. Use a post if you want to make it non-blocking.
Parameters: |
|
---|---|
Returns: | Returns if the predefined posture was reached. |
Set all the joints of the robot in the configuration of the asked predefined posture.
Use applyPosture for animation purposes when manipulating the robot. Consider it has a shortcut, in case you want to reach quickly a posture. The robot will need user’s help to reach the posture.
The effect is immediate and there is no intelligence in it so be careful when using set posture. For example if the robot is sitting and you ask for setPosture(“StandInit”, 1.0) it can be dangerous for the robot, it will fall if you do not help it to stand up.
If you want the robot to stand up alone, use ALRobotPostureProxy::goToPosture().
This is a blocking call. Please use a post if you want to make it non-blocking.
Parameters: |
|
---|---|
Returns: | Returns if the predefined posture was reached. |
Returns the Posture family. For further details, see: Posture family.
Returns: | Returns the name of the current posture family. |
---|
Returns a vector with all predefined postures families.
Returns: | A vector with all predefined postures families. |
---|
Sets the maximum number of tries performed by ALRobotPostureProxy::goToPosture() before returning a fail.
Parameters: |
|
---|
Raises the name of the Posture family when it changes.
The update frequency of the event is about 1 second.
Raises the name of the Posture when it changes.
The update frequency of the event is about 1 second.