skill_run_complete


Overview

The skill_run_complete example demonstrates how to execute an entire skill with a single call to the run method. This automatically triggers the setup, main, and finish methods in sequence. The skill plays sounds and activates LED animations on the robot.

Execution

The application can be executed using:

python3 skill_run_complete/ --auto-run

Behavior

  • The application starts and logs its execution.

  • The skill is run entirely using the run method, which handles setup, main, and finish internally.

  • During setup, it plays the success sound and logs the action.

  • In the main process, a random sound is played.

  • The LED animations are activated during the skill.

  • The finish method is automatically executed at the end.

  • The application logs the completion of each step and the final result.

  • The application finishes execution automatically.

Inputs

  • No user input is required.

  • The application automatically plays sounds and shows LED animations during execution.

Outputs

  • The application plays predefined sounds at different stages of the skill execution.

  • Log messages indicate the status of the skill execution.

Example Output

[INFO] [timestamp] [pyraya.skill_run_complete]: Auto running the app
[INFO] [timestamp] [pyraya.skill_run_complete]: Hello from setup()
[INFO] [timestamp] [pyraya.skill_run_complete]: Registering skill
[INFO] [timestamp] [pyraya.skill_run_complete]: Setting up skill
[INFO] [timestamp] [pyraya.skill_run_complete]: Playing sound: success
[INFO] [timestamp] [pyraya.skill_run_complete.skill.SkillSound]: SkillSound setup
[INFO] [timestamp] [pyraya.skill_run_complete.skill.SkillSound]: SkillSound main
[INFO] [timestamp] [pyraya.skill_run_complete]: Skill done with result: None
[INFO] [timestamp] [pyraya.skill_run_complete.skill.SkillSound]: SkillSound finish
[INFO] [timestamp] [pyraya.skill_run_complete]: Hello from finish()