anki_vector.animation

Animation related classes, functions, events and values.

Animations represent a sequence of highly coordinated movements, faces, lights, and sounds used to demonstrate an emotion or reaction.

Animations can control the following tracks: head, lift, treads, face, audio and backpack lights.

There are two ways to play an animation on Vector: play_animation_trigger and play_animation. For play_animation_trigger, you select a pre-defined group of animations, and the robot will choose which animation from the group to run when you execute the method. When calling play_animation, you select the specific animation you want the robot to run. We advise you to use play_animation_trigger instead of play_animation, since individual animations can be deleted between Vector OS versions.

By default, when an SDK program starts, the SDK will request a list of known animation triggers and animations from the robot, which will be loaded and available from anim_list_triggers and anim_list, respectively, in the AnimationComponent.

Classes

AnimationComponent(robot)

Play animations on the robot