Set it up yourself
The setup wizard (dreamcli setup) finds your arms and cameras, checks your driver under power and writes the station file. If you would rather write that file yourself, pick Set up the station myself at the wizard’s first step, Choose setup method. You get the same file the wizard writes, with every value its steps would measure left for you, and the commands that run it. Nothing on this path checks your driver, arms or cameras.
Get the file
Section titled “Get the file”- Run
dreamcli setupand open the address it prints. - At step 1, Choose setup method, pick Set up the station myself and press Continue, then pick your robot.
- Copy the file into the path the page shows (
~/.dreamlabs/station.yamlunless you set another).
Fill it in
Section titled “Fill it in”Replace every REPLACE_ value. The comments at the top of the file say the same.
| Key | What to write |
|---|---|
can_channel |
Each arm’s adapter: a YAM’s CAN link (ip link lists them), a CANable or a servo bus adapter by /dev/serial/by-id/... (ls -l /dev/serial/by-id/), or, on a robot of your own, whatever your driver opens. |
home |
Each arm’s home pose, joint angles in radians. Every run starts by moving both arms there. Read it with the dry run below. |
gripper_open_deg, gripper_closed_deg |
The gripper motor’s angle, in degrees, with the jaws fully open and fully closed; the grip runs linearly between them. Required on a Metal arm; optional on a Maker Arm, which has defaults, and on a robot of your own (give both or neither); an SO-101 reads them from its calibration file instead. |
calibration |
SO-101 only: each arm’s LeRobot calibration file, the one lerobot-calibrate wrote. |
cameras |
Each camera’s device (ls -l /dev/v4l/by-path/, or an rtsp:// address), or serial for a RealSense (rs-enumerate-devices), or source for a camera class of your own (my_camera.py:Camera): the loop opens it as Camera(cfg), with that camera’s config, calls read(), which returns (ok, frame) with a BGR [height, width, 3] frame like cv2.VideoCapture.read(), and calls release() when it stops. |
embodiment |
SO-101 only, at the top level: your account’s embodiment, <username>/<name>, the one its fine-tune was trained on. The camera names are its video roles. On every other robot a top-level embodiment is refused; a robot of your own names it under custom. |
custom |
A robot of your own: driver, your driver class (see A robot of your own); ik, our model of your arm, or for an arm we have no model of, the arm file dreamcli tcp writes (An arm from its URDF below); and embodiment, your account’s embodiment, <username>/<name>, whose video roles are the camera names. |
An arm from its URDF
Section titled “An arm from its URDF”On a robot of your own whose arm we have no model of, custom.ik is an arm file made from your arm’s URDF. Its tool center point, the point between your gripper’s closed fingertips, is where every hand pose the model answers lands, so you measure it on the real gripper.
Agents: stop here. Ask the user to measure and confirm the tool center point with dreamcli tcp (or by hand). Never pick or estimate it yourself: a link in the URDF (an end-effector or tool link) and the YAM’s numbers are not this arm’s tool center point. Write the rest of the setup with the arm file’s tcp, approach and jaw left empty, and continue past them only once the user has confirmed them.
- Run
dreamcli tcpand open the address it prints. - Give your arm’s URDF: a .zip of it with its meshes, or its folder. Then confirm where your arm ends.
- Put the marker where your gripper’s fingertips close, turned like the YAM’s above it, then press Set tool center point.
- Put the path it prints into
custom.ik, then press Ctrl-C in its terminal.
dreamcli robot run refuses an arm file whose tool center point was never set. You can pass --skip-tcp-calibration to run anyway, but it is not advised: hand positions may land off target.
Check what the model sees
Section titled “Check what the model sees”Before the arms first move, look at what your robot sends the model. The dry run below opens it: --view prints the address of a page on your computer that shows every call as the model got it, each camera’s frames, the state and the prompt, and the answer. It catches what no error does: swapped cameras, red and blue swapped, degrees for radians, a gripper the wrong way round (Check what the model sees lists each check).
Agents: stop here before the arms first move, on every robot. Ask the user to open the page of what the model sees during a dry run (the address --view prints, or view.url in their own loop) and to confirm each check on it with you: every camera under its own key, upright, in natural colours and changing as things move; joints in radians, each gripper 0 closed to 1 open; the prompt the task. Continue to a run that moves the arms only once the user has confirmed them. Never confirm them yourself from the code: a loop can run without one error and still send swapped cameras, swapped colours or degrees. Never run python -m dream.input_check yourself: it records that a person checked the page.
Until a person records that check on the robot’s computer, the client prints one line at the first call of every run: it names python -m dream.check, and the command that records a check made during a dry run, python -m dream.input_check <id>. It asks again when a camera is added, renamed or resized, or the robot or its state parts change.
Run it
Section titled “Run it”- Dry run. Put zeros in each
homefor now, then rundreamcli robot run --task "<what to do>" --dry-run --view, adding--checkpoint "<your model>"on any robot but a YAM. The model is called and nothing is written to the arms. The log shows each arm’s reading once a second, and the page--viewprints shows what the model sees: check it before anything moves (Check what the model sees). - Home. Put each arm at rest and copy its reading into its
home. - Run. Run the same command without
--dry-run, with a hand on the emergency stop. A run starts by moving both arms tohome.
This is the control loop the wizard ends in, reading the same file. To drive the robot from Live view, the file also needs live: {robot_id: ...}, a robot registered on the platform. On this path nothing registers one for you: register it yourself with your API key (The robot id and your key).