Skip to content

Eyes: Mood/Expression (internal_eyes_mood)

What it does: Sets the mood of the animated eyes.

internal_eyes_mood

Inputs

  • Field mood: parameter selection in the block menu.

Output

  • None (statement block).

When to use it

  • When you want to change the robot's emotion according to the state of the program.
  • For example, when transitioning between normal, warning and error states.

Tips and pitfalls

  • Changes only the state of the object eyes; you will see the visual change at the next internal_eyes_refresh.
  • Use only after initializing the eyes, otherwise the variable eyes does not exist.

Generated Python example

eyes.setMood(0)