Transporters
A transporter is the arm that moves labware from one location to another. Every lab with more than one device needs at least one, so the runtime can move labware between methods. It needs teachpoints: the physical coordinates it picks and places at.
Declaring an arm
In topology.py a transporter is a name:
from orca.sdk.devices import Transporter
arm = Transporter("robotic_arm")
Its teachpoints are in the package folder, in teachpoints/robotic_arm.json. Each key is a position the arm can reach:
{
"stacker": {
"access": "default_vertical",
"cartesian": {"x": 0.0, "y": 200.0, "z": 300.0, "yaw": 0.0, "pitch": 90.0, "roll": 180.0},
"orientation": "right"
},
"shaker": {
"access": "default_vertical",
"cartesian": {"x": 400.0, "y": 200.0, "z": 300.0, "yaw": 0.0, "pitch": 90.0, "roll": 180.0},
"orientation": "right"
}
}
Teachpoints are read on every move, so a teachpoint edited during a run applies to the next move. A new position needs orca runtime reload, because it changes where the arm can route.
Teach the bare device name for a device with a single position; the build expands it onto that device's site. Teach the site-qualified name for a deck (flex_1/D1-slot). See Topology.
Kinds of transporter
Three kinds ship in the box, and not all of them are arms:
| Class | Machine | Import |
|---|---|---|
Transporter | A robotic arm | orca.sdk.devices |
Translator | A single carriage on a rail: a shuttle or a bridge | orca.sdk.devices |
HumanTransfer | A person, prompted at each move in LIVE | orca.sdk.devices |
HumanTransfer is a Transporter moved by a person. In LIVE, orca-client prompts the person in its terminal at each pick and place. Set it up with "real": {"type": "human"} in devices/bench_operator.json and switch it to live with orca device mode bench_operator LIVE. In simulation it moves without a prompt. Its teachpoints are a file like any transporter's:
from orca.sdk.devices import HumanTransfer
manual = HumanTransfer("bench_operator")
A fourth kind exists but you never construct it: the liquid handler's own on-deck gripper. The build wires it as a DeckGripperTransporter named <device>/gripper, and from then on it is a routed, reserved mover that shows up in a labware thread's history like any other.
Teachpoints
One entry in a teachpoint file:
| Field | Meaning |
|---|---|
cartesian | x, y, z, yaw, pitch, roll. A pick or place position. |
orientation | "left" or "right". Required for a Cartesian position. |
access | The name of the access config the arm uses here. |
gateway | Optional. The name of another teachpoint to pass through before and after this one. |
taught_with | Optional. The labware that was in the jaws when the position was taught. |
by_labware | Optional. Per-labware exceptions at this position. See Move and pipetting parameters. |
Cartesian or joint. Pick and place positions are Cartesian. A waypoint along a path can be a joint position instead: per-joint values, with no orientation and no access config.
Gateways. A teachpoint that names a gateway is reached through that waypoint. Gateways chain, outermost first, so you can build a safe approach path ahead of a pick or place point.
taught_with is a note for people. Nothing derives a grip height from it.
Writing them. The values in these examples are placeholders. On a real arm:
orca teachpoints capture robotic_arm shaker --orientation right --access-config default_vertical
capture saves where the arm stands now as the teachpoint. It is refused on a device set to sim (capture_in_sim_refused) unless the device is always_sim, so a simulator's position is never saved as a real one by mistake.
orca teachpoints create, update and delete write a teachpoint from numbers you supply. orca teachpoints list and show read them. orca teachpoints export <device> --out file.json writes every teachpoint on a device, and orca teachpoints import <device> file.json loads such a file. All of them write the same teachpoints/<device>.json, which you can also edit by hand.
Access configs
Some devices need a particular approach: a horizontal slide-in for a plate sealer, a vertical drop for a centrifuge bucket. An access config says how the transporter enters and leaves. They live in access_configs.json in the package folder, keyed by name:
{
"default_vertical": {
"access_type": "vertical",
"gripper_offset": 20.0,
"horizontal_clearance": 100.0,
"name": "default_vertical",
"vertical_clearance": 20.0
},
"sealer_horizontal": {
"access_type": "horizontal",
"gripper_offset": 25.0,
"horizontal_clearance": 120.0,
"name": "sealer_horizontal",
"vertical_clearance": 30.0
}
}
Fields: name, access_type ("vertical" or "horizontal"), gripper_offset, vertical_clearance, horizontal_clearance.
A teachpoint names its access config in access, and many teachpoints can name the same one. orca access-configs list|show|create|update|delete reads and writes the file.
A position whose approach the arm has no motion for is refused, not defaulted: entering a hotel slot from above drives the arm into the shelf, so a misspelt approach has to stop.
The approach fields are owned by the position, not by the arm. An edit that tries to set them on an arm's move defaults or on a labware grip profile is refused. See Move and pipetting parameters.
Advanced
Read this when your lab has a bridge between two robot zones, a liquid handler an external arm reaches into, or plates that queue for a busy device.
Translators are their own device kind
A translator is one carriage on a rail. Its taught endpoints are the same physical pad seen from two robot zones, so the whole position set holds at most one labware.
from orca.sdk.devices import Translator
bridge = Translator("translator_1")
Its endpoints are in teachpoints/translator_1.json.
Declare Translator, not Transporter. The device kind is what tells the scheduler there is one carriage. A bridge declared as a Transporter is modelled as an arm, and the scheduler promises two plates one carriage.
At build time, Orca registers a translator's taught positions as an exclusion group. A reservation on one position is refused while a sibling holds another thread's labware or reservation. Overlapping groups fail loudly at build.
A single carriage is a corridor
A carriage position is a legal hop destination, so without a further rule a plate could finish a move onto the carriage and then wait there for its next hop. A plate resting on the one seat severs the bridge for every other thread. This was a real deadlock in batched runs.
The rule: boarding is granted only together with the onward run. A move whose hop lands on a carriage position is granted only with reservations for the rest of the run, through to the first position that is not in an exclusion group, which is the first place the plate can legitimately rest. Both or nothing, resolved in one coordinator tick. If the run cannot be granted, the plate waits where it is, which is safe.
Two things follow. Nothing can sit on the carriage without a reserved place to get off. And a denied boarding casts its wait at the occupied onward position rather than at the free carriage seat, so the deadlock detector sees the real blocker.
Set supports_deadlock_resolution=False on the PlatePads at either end of a bridge, so the resolver never tries to free a plate by parking it on the bridge.
Routing: which transporter makes each move
A topology can have several transporters, which is normal in a system with more than one robot zone. The runtime picks the transporter for each move from the routing graph: an arm covers the positions it is taught, a translator bridges two zones, and a liquid handler's own gripper covers the edges between that handler's deck sites. Handoff is derived from the teachpoints, not declared: any deck site an external arm teaches is a transit entry.
The graph holds one transporter per pair of positions, so two external arms reaching the same pair is not modelled today.
Both ends are asked before the arm commits
The source and the target are both asked to accept the move before the pick, and outside the mover's lock. The refusals a move owes (a stranger on the target, an operator holding the machine, a plate no longer on its source) are one check that both the pre-flight and the actuation run.
This matters because a device can be busy for hours. Asking the target only after the pick meant an arm stood holding a plate while it waited; on the bench that was 34 seconds in the jaws, 25 of them waiting. The gates inside the actuation stay, because a device that was ready when the arm committed can be busy again by the time it arrives.
An arm reaching into a liquid handler
An external arm that reaches into a liquid handler's deck can meet the handler's own gantry. Two things prevent that:
- The arm holds the liquid handler's lock for the whole reach. The handler cannot start a command while the arm is inside, and a person's command to it is refused with
device_locked. - A liquid handler lifts every head before its gantry travels in X or Y.
Before the reach, a handler that can park its gantry is asked to. It refuses while it is holding something (tips on a head, a plate in its own jaws). Refusing is not failing: the work in progress wins and the arm asks again until it is done, for up to 900 seconds, after which it raises an error naming what the handler is still holding.
Declare where to park with park_gripper_at=GantryParkPosition(x=..., y=..., z=...) on the LiquidHandler (from cheshire_drivers.gantry_models import GantryParkPosition). Declaring it for a driver that cannot park raises at build.
A blocked plate vacates a shared deck
A plate must not occupy a device other threads need while it waits, possibly for hours, for its own destination. When a rejected move's labware is sitting on a device-owned working site, the move's candidate collection widens after site_vacate_patience seconds (default 15) to include deadlock-resolution pads.
This is not a timeout. The real targets stay in the collection and win whenever they free; the pads only grant while the targets stay blocked. A thread that parks on a pad this way settles there, and its next move re-plans from the pad.
See also
- Topology: how teachpoint names map onto site nodes.
- Devices: the devices a transporter moves between, and the gantry-parking capability.
- Move and pipetting parameters: grip width, clearance, approach and speed, and which layer decides each.
- CLI: inspect the system: read teachpoints, access configs and deck layouts back.
- CLI: operator interventions: move a plate by hand when a run is paused.