Skip to main content

get_joint_states

Signature:

BoosterRobot.get_joint_states() -> JointStates

Description:

Get the states of all joints.

Parameters:

No parameters.

Returns:

JointStates, see "Joint-Related Data / JointStates"

Raises:

DataNotReadyError: No joint states were obtained within the timeout period.

Example:

from boosteros.robots.booster import BoosterRobot

robot = BoosterRobot()
states = robot.get_joint_states()
first_name = robot.list_joints()[0].name
joint = states.get_joint(first_name)
print(joint)
# Example output: JointState(name='AAHead_Yaw', position=4.807196546607884e-06, ...)