Skip to main content

ActionInfo

Represents a predefined action's ID, type, and interruptibility.

Attributes:

Property

Type

Description

id

str

Action ID, can be used as the action_id parameter for robot.do_action(action_id)

type

str

Action type, such as "upper_body", "whole_body"

duration

float

Estimated duration, -1 indicates uncertain

interruptible

bool

Whether the action can be interrupted

ActionInfo​

Signature:

ActionInfo(id: str, type: str, duration: float, interruptible: bool)

Description:

Constructs an ActionInfo instance. This type is an immutable dataclass.

Parameters:

Parameter

Type

Required

Description

id

str

Yes

Action ID

type

str

Yes

Action type

duration

float

Yes

Estimated duration, -1 indicates uncertain

interruptible

bool

Yes

Whether the action can be interrupted

Returns:

ActionInfo instance.

Raises:

None.

Currently supported ActionInfo.id values include:

ActionInfo.id

Description

"hand_shake"

Handshake

"hand_wave"

Wave hand

"dance_new_year"

New Year greeting dance

"dance_rock_rolling"

Rock and roll dance

"dance_towards_future"

Towards the Future dance

"gesture_dabing"

Hip-hop superhero pose

"gesture_ultraman"

Ultraman pose

"bow"

Bow with hands clasped

"cheer"

Cheer with both hands

"lucky_cat"

Lucky cat gesture