Skip to main content

set_head_angle

Signature:

BoosterRobot.set_head_angle(pitch: float, yaw: float) -> None

Description:

Control head pitch and yaw angles in "walk" mode.

Parameters:

Parameter

Type

Default

Description

pitch

float

Required

Pitch angle in radians; positive values point downward, negative values point upward. Joint limits vary by model, see T1/K1 specifications; exceeding limits does not raise an error, but the robot stops responding.

yaw

float

Required

Yaw angle in radians; positive values point left, negative values point right. Joint limits vary by model, see T1/K1 specifications; exceeding limits does not raise an error, but the robot stops responding.

Returns:

None

Raises:

RuntimeError: Not currently in "walk" mode.

Example:

from boosteros.robots.booster import BoosterRobot

robot = BoosterRobot()
robot.set_mode("walk")
robot.set_head_angle(pitch=2.0, yaw=2.0)