chest_animation_lottie


Overview

The chest_animation_lottie example displays an animated message on the robot’s chest screen using a Lottie animation.

Execution

To execute the example, use the following command:

python3 chest_animation_lottie --auto-run

This will automatically launch the application and display the animation on the chest.

Behavior

  • The application initializes and loads a Lottie animation from a file.

  • It sends a message with a title, subtitle, and animation to be displayed on the chest screen.

  • It logs the response from the display action, including error codes and result data.

  • The message and animation on the chest display will automatically close once they finish playing.

Inputs

  • No user input is required; execution is automated.

Outputs

  • A log message displaying the execution details and response from the display action.

  • An animated message appearing on the chest screen with a title, subtitle, and Lottie animation.

Example Output

During execution, the output logs follow this pattern:

[INFO] [timestamp] [pyraya.chest_animation]: Auto running the app
[INFO] [timestamp] [pyraya.chest_animation]: Error code:0
[INFO] [timestamp] [pyraya.chest_animation]: Error msg:
[INFO] [timestamp] [pyraya.chest_animation]: Result data:{"action":"component_opened","id": <id>,"callback_type":"response","keep_open":true,"stamp":<timestamp>}

Additionally, the following message will appear on the robot’s chest display:

Example snapshot displayed on the robot's chest

Key Note

If a component with a higher priority is already active on the chest display, the application will return an error and will not show the message.