Install
ABSTRACT_API_KEY in your program’s environment; keep the key out of source code.
Get an action
frames and observation come from your robot’s cameras and sensors, as described below.
Read the key into ABSTRACT_API_KEY with os.environ["ABSTRACT_API_KEY"].
Python
set_observation()supplies the camera frames, task, and measured robot state.get_action()returns an action chunk for your controller. It does not move the robot.reset_episode()ends the model’s episode. It does not reposition the robot.
Connect your observations
For this YAM checkpoint,frames contains JPEG bytes from three cameras:
overhead, wrist_l, and wrist_r. Use the state measured when those frames were captured.
Python
state contains each gripper’s measured pose and opening, in the checkpoint’s
YAM coordinate frames. See the request fields
for their names and shapes. Send actual measurements, not example poses or joint angles.
The returned action.left and action.right hold the two arms’ target rows; action.dt
is the time between rows. Your controller validates the targets and performs its own
inverse kinematics. Keep the episode open while continuing the same task: feed camera ticks
through set_observation() and collect action.next_frames_per_camera new ticks before the
next get_action(). Reset when the task ends. Call client.close() when finished, or use
the client as a context manager.