What it does¶
ALAnimationPlayer allows you to start animations. This service is a wrapper of ALBehaviorManager, its goal is to have an easy way to start animations according to animation tags or the current posture of the robot.
How it works¶
To run an application stored in a package, use:
Some specific patterns will automatically be replaced as documented here:
|Pattern||Is replaced by...||When...|
|[posture]||Stand||the Posture family is Standing.|
|Sit||the Posture family is Sitting.|
|SitOnPod||the Posture family is SittingOnChair.|
|[robot]||Nao||the robot is Nao.|
|Pepper||the robot is Pepper.|
If one of those patterns cannot be replaced the path will be considered as not valid.
You can use any animation available by default:
You can also use your own behaviors provided that you follow these requirements:
- Limit the content of the behavior to an animation (no speech, no complex behaviors), in order to guaranty a good compatibility with ALTextToSpeech.
- Lock the resources as follow: Wait 1 second at box startup, and lock resources during box execution - in order to secure a full compatibility with the automatic body language process.
For further details, see : Creating an animation.