行動#

介紹#

VEX 123 機器人可以透過執行一系列行駛、轉彎和發聲行為來表達不同的情緒。

以下是所有方法的清單:

行動-將情緒付諸實踐。

  • act — 表演指定的情緒。

行動#

act#

act 使機器人透過執行一系列行駛、轉彎和發聲行為來表達一種情緒。

Usage:
robot.act(emotion)

範圍

描述

emotion

The emotion to act out:

  • CRAZY — The robot makes wide circles in both directions while playing a swirling sound effect.
  • HAPPY — The robot spins quickly while playing a giggle sound effect.
  • SAD — The robot reverses, slowly turns left and right, and returns to its original position while playing descending notes.

# Act happy
robot.act(HAPPY)