Connection and data
- Select a model and provide your API key. Register message handlers before connecting so early replies are retained.
- Connect and wait for
READYbefore publishing tracks or sending commands. Session setup can take time while model capacity and the network connection become ready. - Keep the required camera tracks publishing, and send the task and measured state. Capture related measurements together: video and commands arrive separately.
- Receive and validate an action chunk. Your local controller decides which rows to execute and when. Follow the model’s protocol to obtain the next prediction.
- Close the session when finished.
Python SDK and cookbook helpers
The quickstarts use the Python SDK and thereactor_robotics helper directory in Reactor’s public cookbook.
These helpers provide camera publishing and message queues. Each quickstart includes installation;
installing the SDK alone does not install the helpers. You can use the helpers or the SDK directly.
At the SDK layer, on_message receives a dictionary with type and data. This abbreviated Cosmos
reply shows the first row of a 32-row chunk:
action is shaped (32, 8): seven joint targets in radians and one gripper value per
row. step is its prediction counter. Other models have different fields, dimensions, and counter
semantics; use the selected model’s reference.
ReactorSession.next_message(...) returns the inner data dictionary. The examples convert its
action values to NumPy arrays; model-specific helpers can return their own objects. See the
helper reference
for return values and the Python SDK reference for callbacks,
commands, and errors. Neither the SDK nor the helpers execute actions on your robot.
If the first run fails
For support, retain the model slug, SDK/client versions, session ID if available, failure stage, and
error text. Never include an API key. See billing for session costs and
support for help.
Choose a model and follow its quickstart.