Define the adapter
The reference specifies the simulator’s scale
and frames. A seven-value output does not imply compatibility with any seven-joint arm. If your
hardware API takes joint targets, you must supply the Cartesian-to-joint control or IK layer and
validate it. Matching tensor dimensions alone does not establish transfer from LIBERO.
Implement the episode loop
- Start with observation capture and action inspection without actuation. Validate both camera identities, orientation, frame age, and the controller mapping.
- Open a fresh session, publish frames, clear the echo, reset, and set the task. Accept only a
finite
(16, 7)first chunk withstep: 0. - Skip its first four rows. Validate the remaining targets against local position, velocity, acceleration, and workspace limits, then execute through your controller.
- Publish camera frames during execution and echo the 12 executed rows. For later chunks, execute and echo 16 rows and require the next counter. Maintain a single outstanding chunk.
- On timeout, disconnect, unexpected counter, or interrupted execution, apply the local hold/stop policy and end the remote episode. Resume with fresh observations in a new session.