chest_animation¶
Overview¶
The chest_animation example displays a simple message on the robot’s chest screen.
Execution¶
To execute the example, use the following command:
python3 chest_animation --auto-run
This will automatically launch the application and display the message on the chest.
Behavior¶
The application initializes and sends a message to be displayed on the chest screen.
It logs the response from the display action, including error codes and result data.
It waits for 3 seconds before completing execution.
Inputs¶
No user input is required; execution is automated.
Outputs¶
A log message displaying the execution details and response from the display action.
A message appearing on the chest screen with a title and subtitle.
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:
Key Notes¶
The message on the chest display will automatically close after 3 seconds.
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.