Connect a robot
A robot connects with its own key, to the policies on its list (Robots). Your code names
the policies; the key says which robot it is, so the code never names the robot. The key is
api_key=, or $SEQUENCES_API_KEY when left out, as in the examples below.
# everything ending in _user is yours import sequence_ai pick_user, place_user = sequence_ai.connect( "pick_policy_user", "place_policy_user", api_key=ROBOT_KEY_user) while not done_user(): # which one acts is your code's choice policy_user = pick_user if picking_user() else place_user policy_user.observe(frame_user) send_to_robot_user(policy_user.act())
- One name returns one handle, as it always has; several return a tuple, in the order you named them.
- Each policy you connect holds a place on a worker, and that worker is billed while it runs, whether your code calls it or not: connect only the names you use.
- A name not on the robot’s list is refused with a
403whosedetails.reasoniskey_bound(PermissionDenied), and the error names the command that adds it.
observe() and act()
A robot talks to its policy with two calls, and the platform passes each straight through:
observe(x) hands x to the observe function the policy names (every input goes
this way, an instruction too), and act(), which carries nothing, calls its act function and
brings back what that returns, as it returns it. What to send, when
to ask for actions and how to carry them out is your robot’s code: the platform changes nothing it carries, and
keeps or batches only as the sections below say. To a policy with no observe function, sequence-ai does not send a
frame a newer one replaced before it went up, unless the episode holds video or "teleop" is among the
names it connected to. A top-level key that starts seq. is the platform’s, and
observe() refuses it before it goes.
# everything ending in _user is yours import sequence_ai policy_user = sequence_ai.connect(model="my_policy_user") policy_user.observe(frame_user) # to its observe function out_user = policy_user.act() # its act function's return send_to_robot_user(out_user) # your code policy_user.end_episode() # ends the episode
The platform guarantees three things, and only these:
- Order. Every
observe()an episode sent before anact()reaches the observe function, in the order it was sent, before the act function is called, unless the policy falls more than 1,024 observations or 64 MiB behind: a worker refuses those, they are left out, and sequence-ai says so once an episode. - One copy an episode. An episode of a class that keeps it on itself (one with an
@seq.observeor@seq.on_episodemethod, whose@seq.infertakes noepisode; or one whose@seq.observemethod takes none) runs on one copy of the policy from its first call to its end, and no other robot’s call reaches that copy in between, so what the class keeps on itself is still there at its next call (Episodes). - As it was sent, both ways. Crossing the network is the one thing done to the data, in a call and in
its answer alike: bytes stay bytes, a numpy array keeps its dtype and shape (a camera picture’s pixels go lossy unless you connect with
pictures="exact", below), and everything else goes as JSON. A torch tensor the act function returns reaches the robot as a numpy array of its dtype (bfloat16 and the float8 types as float32, complex32 as complex64, each value exactly as it was). An image or other large array, bytes or text your robot already sent in the episode crosses only once, so send a window of frames as it is: only its new frame goes up.
Which functions those are is marked on them: @seq.observe marks the one each observe()
goes to and @seq.infer the one act() calls, on a class written for the platform or a
short subclass of one you have (a class you already have). A policy with no
observe function has the
worker keep its episode’s latest observe(), and its act function is handed that at each act:
whole, or each key as the argument of that name
(a class you already have). To such a policy an act() before any
observe() is refused with a 400 whose details.reason is
no_observation, and act() takes no inputs: act(x) raises Python’s TypeError before anything is sent (a
client of your own sends an act as {"call": "act"} with no inputs, and one with inputs gets a
400 whose reason is call). A template’s client builds its inputs and plays its answers for you
(a template’s client). What connect() returns has a current
episode: its first observe() or act() starts it, end_episode() ends it, and
the next call starts another; code that runs several episodes on one connection names each with
episode_id=. When to ask and how to play what comes back is your own loop (below).
Lossy compressing is item by item: wrap an item of what you observe in
sequence_ai.Video, Depth or Tactile, and it travels in the form made for
it; an unmarked camera picture (an HxWx3 uint8 array, each side 32 px or more) goes as a lossy video keyframe of its own unless you connect with pictures="exact"; anything else reaches the policy byte for byte (sequence-ai sends an array or bytes of 16 KiB or more
losslessly compressed where that pays).
policy_user.observe({
"head": sequence_ai.Video(frame_user), # camera
"wrist_depth": sequence_ai.Depth(depth_user), # depth sensor
"finger": sequence_ai.Tactile(touch_user), # tactile sensor
"joints": joints_user, # as it is
})
- Video, an RGB camera frame, HxWx3 uint8: low-latency video (H.264), lossy, a keyframe every second.
- Depth, a depth map of any integer or float dtype, in your own unit: lossless, every value as it was.
- Tactile, a tactile reading: an image (HxWx3 uint8) as high-quality video, any other array as it is.
The policy is handed the dict the robot built, each wrapped item turned back into an array of its shape and dtype
(a video’s pixels close to the frame’s, not the same), and the episode’s record,
episode.state["seq.observations"], keeps it compressed, as it travelled
(Episodes). In an eval the adapter (or the env, with none) marks a
benchmark’s camera, depth and touch the same way, so a policy reads there what it reads on a robot
(Adapters). An item stays the same kind under the same key from step
to step. Markers reach every policy, one with an @seq.observe method and one handed the
latest observation at its act alike: each item’s frames are turned back one after another, none left out.
A video frame lost on the way, or one past what a worker keeps, is the exception: it and the frames after
it up to its stream’s next keyframe are left out (about a round trip’s worth, as the robot sends
a keyframe once it hears), and the episode goes on, its policy acting on what it was handed last.
Sending one needs Python 3.10 or later (3.11 or later on Windows on ARM), where
pip install sequence-ai brings its encoders.
Your own loop
The platform paces nothing: when to ask for the next actions, and when to send each one to the motors, is your robot’s code. A loop that keeps an arm moving does three things, all of them yours:
- Ask at the replan step. Count the policy’s
action_chunk_replan_atsteps from the moment its act went out, then callact()in a background thread: the valid rows left, up toaction_chunk_valid_len, play while the next answer comes, and they are the time the platform has to answer several robots in one batch. Counted from the send, the next ask comes at that step, or when the answer before comes if that is later: a robot has one act on its way at a time. So when answers take longer than half of what one plays, asking earlier does not help; a longeraction_chunk_valid_lenor a shorter round trip does, andseq deploy --dry-runandseq policy statussay which. A policy that asks at its last valid step has its arm wait for every answer. On Wi-Fi an answer comes late now and then wherever its worker is: Your network says what makes it worse and what to turn off. - Send on time. Sleep until each row’s own time point,
t0 + (i + 1) / hz, not for a fixed time each turn: a fixed sleep adds what the send itself took to every turn, so the arm plays slower than its rate, and unevenly. - Where two chunks meet. The next chunk was computed from an observation taken while the last one still
played. Handle the seam in your loop (skip the rows whose time passed while it came, or blend into the new
chunk, which only works when the actions are absolute positions) or in the act function: hand the rows
not yet played to
observe(), and it sees them as they are.
import time from concurrent.futures import ThreadPoolExecutor import sequence_ai policy_user = sequence_ai.connect(model="my_policy_user") pool_user = ThreadPoolExecutor(max_workers=1) hz_user, valid_user, replan_user = 15, 15, 8 # the policy's hz, action_chunk_valid_len, action_chunk_replan_at policy_user.observe(read_obs_user()) sent_user, ahead_user = time.monotonic(), pool_user.submit(policy_user.act) while not done_user(): rows_user, t0_user, ahead_user = ahead_user.result()[:valid_user], sent_user, None # step 0: when its act went out for step_user in range(int((time.monotonic() - t0_user) * hz_user), valid_user): # steps past on the way: stale if ahead_user is None and step_user >= replan_user: # the replan step since its act went out: ask sent_user, ahead_user = time.monotonic(), pool_user.submit(policy_user.act) arm_user.move_to(rows_user[step_user]) policy_user.observe(read_obs_user()) time.sleep(max(0, t0_user + (step_user + 1) / hz_user - time.monotonic())) if ahead_user is not None and ahead_user.done(): # the next one is in: switch to it break if ahead_user is None: # every row went stale on the way: ask again sent_user, ahead_user = time.monotonic(), pool_user.submit(policy_user.act) policy_user.end_episode()
Here the act function returns a list of rows, and the observe function is handed each observation as the arm
makes it; read_obs_user, arm_user and done_user stand for your
robot’s own. Each chunk’s steps count from the moment its act went out, so the next ask comes
replan_user steps after the last one, or as soon as the answer is in when it took longer than that,
and the rows whose time passed while it came are skipped. A policy
with no observe function is handed the latest observe() at each act, so the same loop serves it. A
connection takes one act() at a time (a second one from
another thread while the first is out raises), and observe() goes on from any thread
meanwhile. Drive many robots by giving each its own key and its own connect().
connect(on_stale=) tells your code the moment the arm runs out of answer
(When the arm runs out of answer).
A template’s client
A template’s client.py builds the inputs its policy reads: hand them over with
policy.observe(obs), and policy.act() answers with what the policy returned
(pi05-droid’s {"actions": ...}, 15 rows of seven joint velocities and a gripper position). How
many of them your loop plays is yours; the rest can keep the arm moving while the next answer is late. What a row
means is the policy’s own, and reading one kind of row as another is silent
(what the rows mean).
sequence_ai.resize_image(frame, 224, 224, mode="pad", filter="bilinear"); the platform checks no
frame’s size and resizes none: a frame of another size reaches the policy as it was sent
(fit each frame on the robot).
model= names a deployment of your own. To start from one
of our templates, copy it and deploy it (seq init toy-policy my_policy_user, then
seq deploy my_policy_user --gpu <card>, the card seq init names); its sessions run on your own workers and are billed to your account.
seq init toy-policy gives the template’s current version; @v12 after the name gives
one version by its number, as named (seq init --list shows each template’s current version).
Deployed a template from the console? Your robot still runs that template version’s
client.py beside sequence-ai - the template’s own helpers. Each template’s page in the template library
gives the commands for each of its versions: seq init pi05-droid@v3 my_policy_user puts v3’s
client.py, with its README, in my_policy_user/. Name the version your deployment runs
(seq policy status <name> says it), so the client matches the policy.
Episodes
Every observe() and act() of an episode carries its episode_id: the
connection’s current episode, from its first call until end_episode(), or one you name with
episode_id=. Where an episode lives depends on how the policy is written, in one of three
places:
- Nowhere: it does neither of the two below. An episode’s
observe()andact()go to one replica, which keeps its latest observation and serves that episode alone until it ends:end_episode(), or no call for 5 minutes or more (below). One whose act function is@seq.concurrentruns as many robots’ acts together as it batches instead (Batching requests): the platform cannot tell whether a class keeps a robot’s state on itself, so it never puts two robots’ acts on a replica at once otherwise. - In the episode it is handed: its
@seq.infertakesepisode,def infer_user(self, obs, *, episode: seq.Episode), and so does its@seq.observemethod when it has one.episode.idis itsepisode_id,episode.stepshow many of its acts were answered before this one (0 on its first), andepisode.statethe robot’s record in the episode and the policy’s own dict. The platform appends to two keys of it:episode.state["seq.observations"], each observation at its step in the episode (from 0) as the robot sent it, a video, depth or tactile frame still compressed, forsequence_base.codec.markedto decode when you want one; andepisode.state["seq.actions"], each act’s return as storage keeps it (a torch tensor as a numpy array, what is no data left out), at the step of the newest observation before that act, so the two line up step by step. The two hold about the episode’s last minute, its oldest steps leaving first; on a standby a robot switched to, from the observations it sent there (A standby copy); to keep every step, record them yourself (Field data). A policy’s@seq.planadds a third,episode.state["seq.plans"](Planning). What an act returns is yours to make (actions, a route, a plan, anything else), and the platform reads none of it. Every other key is yours, the same object on every act, for what the episode must carry to a standby: data, kept small, saved as it changes (A standby copy). What is large or of the worker alone (tensors on its GPU, a model’s cache, a frame history) goes inepisode.local, a dict of the episode’s own that the platform never saves, sends or stores, and that begins empty on a standby. The platform makes both on the replica that serves the episode and drops them at the episode’s end, so nothing has to free them. With@seq.concurrentinfer is handed a batch’s episodes as a list,episode: list[seq.Episode], one for each observation in order (Batching requests). With no robot’s state on the class, a replica whose infer batches serves several robots at once: at most the largest listed size it answers before their answers run out, timed on its sample episode (@seq.sample), and as many of them as are answered in time when they run together; one whose infer does not batch serves one robot a replica. - On the class: its
@seq.infertakes noepisode, and it has an@seq.observemethod or an@seq.on_episodeone that resets what the class keeps as each episode begins; or its@seq.infertakesepisodeand its@seq.observemethod does not. Each episode then holds a replica (one copy of the policy on the worker) of its own, from its first call to its end (observe() and act()).
A policy that needs a camera’s last N frames keeps them in the episode: its @seq.observe
method appends each frame to episode.local (episode.state, when they must come
over to a standby) and keeps the last N, and its act reads them there, oldest first, on a robot as in an
eval (Your own inputs and outputs).
@seq.on_episode runs twice an episode, on the replica that holds it, handed its
seq.Episode both times: episode.id its id, its state and
local as the episode has them. It runs as the episode begins there, before its first
observe() or act reaches the policy, episode.phase "start": it sets up
what the episode needs. One that raises then fails the episode: its observations go no further, every act of
it is answered with that error until the episode ends, and its hook does not run again for it; an eval counts
the episode as an error. An episode a standby takes on goes on there rather than begins, and its start
does not run again (A standby copy). It runs again once the episode is
over, "end", before the episode is dropped: it reads or frees what the policy kept, so the replica
serves the next episode clean; one that raises then is said in seq policy logs, and the episode
ends anyway. Its end runs when
your loop ends its episode with policy.end_episode(), or close() ends one left open; when an eval’s episode ends; and for an episode with no act
for 5 minutes, or three times its robot’s usual time between acts where that is longer, up to
a day, once its place is wanted for a new episode. A worker that stops (replaced,
scaled down or stopped) runs it for none of the episodes still on it. The platform ended that one, not its robot, so its next act is answered 409
conflict with details.reason episode_lost, and sequence-ai starts a new
episode as it does when a replica is lost (below). Before a worker serves, each time it starts, short episodes of its own run through the policy and are ended the
same way: your sample episode’s first act on each copy (its episode_id is
seq-first-act-1), and, for a @seq.concurrent policy, the sample in each size it times
(seq-sample-1, …). At a deploy the build check plays the whole sample as one episode of its
own too, seq-check-sample. Keep what one episode needs in that episode (its
episode.state and episode.local, set up by @seq.on_episode as it begins),
so nothing of theirs reaches a robot’s.
An episode cut short, and what its next act meets:
- Its worker replaced, about once a day: the robot moves at the end of the episode, so nothing is cut (How long a worker serves).
- A new version serving, a rollback too: its worker ended and the robot disconnected, whatever it was
doing; its next call raises
NewVersion, andconnect()again reaches the version that serves (Versions and traffic). - Its worker taken away, the robot cut off for longer than its idle timeout, or its deployment stopped: its episodes are ended there, and the robot’s next act starts a new one on another worker, for a stopped deployment, once it is started again.
- Its worker lost, it was gone (A standby copy says
when), or the robot was moved mid-episode at the worker’s forced end: when it was gone and the robot
has a standby (
buffer_workersabove 0), its act goes there and the episode goes on from its state saved a few seconds before; with none, a worker on a spot machine saved it too, and it goes on the same way on the worker sequence-ai carries on with (A standby copy); otherwise sequence-ai carries on with another worker under a newepisode_id, so the policy there sees a new episode, says on stderr that the episode was reset, and nothing the policy kept carries over. - Its replica lost, out of memory or a crash: that act is answered 503 with
details.reason(gpu_out_of_memory,host_out_of_memoryorcrashed), and a fresh replica takes its place; an act a replica is stuck in, 10 times as long as it usually takes and at least 10 seconds, is answered 503copy_stuckand the replica is started again: the robot moves to its standby, where the episode goes on from its state as saved, or else as below (A standby copy); an act still running at its timeout is answered 504, its replica is ended at twice the timeout, and the episode’s next act is answered 503hung. The episode’s state went with the replica, so the episode never goes on without it: sequence-ai sends the act again under a newepisode_idand says on stderr that the episode was reset. On a worker with more replicas, another serves it as soon as one has room. On a worker whose only replica was lost, the fresh one is still starting when the act comes again, and the worker answers it as one starting up:act()waits that out, as on any call. If that act’s replica is lost too, its error is raised. A client that does not use sequence-ai and sends the oldepisode_idagain is answered 409conflictwithdetails.reasonepisode_lost: start a new episode, with a newepisode_id.@seq.on_episodedoes not run for an episode lost this way. An eval runs it again from its reset. - Its batch failed, a policy that runs its episodes’ acts together
(
@seq.concurrentbesideepisode), a call that raised: the call may have half changed the state of every episode in it. An episode that had answered an act on that replica is ended there (@seq.on_episoderuns); that act is answered 503 withdetails.reasonbatch_failedand a later one 409episode_lost, and sequence-ai goes on in a new episode, says so on stderr and counts it, as above. An act that is its episode’s first runs again on its own, on an empty state, its@seq.on_episodestart run again first (Batching requests).
Warming happens on the first call after connect(), which sends nothing itself, not mid-loop. Wait it out once before the arm needs
to move; with no worker running for the robot, the wait connects, and its connect starts one on the closest GPU
available to the robot:
policy_user.wait_until_ready() # connects: a cold worker starts on the closest GPU available policy_user.observe(read_obs_user()) chunk_user = policy_user.act() # warm by now
act() waits out a starting worker on every call and observe() on its first, within
the policy’s startup time; ready() is the non-blocking form, returning
(ready, eta_seconds).
Once ready() or wait_until_ready() answers ready, that worker is yours: it is
billed from the moment its machine starts, its start included and its GPU for at least 60 seconds, whether or not the first action follows at once, and it ends after its
idle timeout, 60 seconds unless its deployment sets idle_timeout, once no robot is connected. A worker your client stopped waiting for
before it was ready ends a minute after it comes up, billed from the moment its machine started until then.
Field data
Keep what your robots saw and did, to fine-tune on. A robot’s Record says its steps may be recorded,
by you: the platform keeps none of them, and it costs nothing more. Turn it on by the robot’s name in the
console, or with seq robot set <name> record=on: it needs no redeploy and no new connection, and
a robot already connected picks it up within a minute. Then seq robot record <name>, run where
you keep your data, writes each step to a file there as it comes, straight from the worker serving the robot,
until Ctrl-C or until its Record is turned off. Label an episode from the robot, and its label is in the file too.
seq robot set arm_1_user record=on # on seq robot record arm_1_user # to a new file here seq robot record arm_1_user -o run_user.msgpack # or one you name seq robot set arm_1_user record=off # off: recorders end # on the robot: label the episode of the last act policy.label(success=robot.cup_in_gripper(), notes="") # then, wherever the file is import sequence_ai for item_user in sequence_ai.read_record("run_user.msgpack"): my_dataset_user.add(item_user) # a dict an item
The file is a header, then one msgpack map an item (the items Your own recorder
lists), so any msgpack reader reads it, and sequence_ai.read_record(path) gives the items back.
It is always a new file: one that is there already is refused, never written over. While the robot is not
connected, seq robot record waits, and records it once it connects. It says where it writes, each
gap as it comes, and how many steps it wrote as it ends; Ctrl-C and a Record turned off both end it normally,
with exit code 0. With the robot’s Record off as it begins, it says error[conflict] and how
to turn it on, and writes no file.
A robot connected to "teleop" alone has no worker its steps pass through, so a recorder has
nothing of it to read: while its Record is on, it
writes them itself, on its own machine, to <robot>-<when>.msgpack in
$SEQUENCES_RECORD_DIR, else the folder it runs in (each observation an observe
item, each chunk of a person’s that it played a step, each label a label),
the same file read_record reads. Writing never slows the robot: a disk that falls behind its cameras
drops items, and the robot says how many. seq robot record on such a robot says so, and waits in
case it connects to a policy.
Your own recorder
Or read the steps in your own code, and write them wherever you keep your data.
sequence_ai.record(<robot>) reads them straight from the workers serving the robot. It runs
with SEQUENCES_API_KEY where that is set (your account’s key, or the robot’s own
key, which reads that robot alone, its name left out), and otherwise as you, once you
seq login. It is what seq robot record runs.
import sequence_ai with sequence_ai.record("arm_1_user") as rec_user: for item_user in rec_user.steps(): # a dict an item my_bucket_user.write(item_user)
Each item’s kind says what it is, and every item but a worker’s own gap
names its robot:
step, one act:episode,step,observations(a list of[step, observation]pairs, each observation its robot sent since its last act, as it sent it, its frames byte for byte),action, the chunk it answered,params,driver(model, orhumanwithoperatorthrough teleop) andat, with:path, on every step, the way its action reached the robot:worker, from its policy’s worker, ordirect, a person’s chunk straight from their console.did, on a person’s chunk, what became of it:played, or why it never was (supersededby a newer one before anact()took it,oldas no newer than the newest kept from its console,staleas made from a view too old, ornot_drivingas from a console that was not driving it).command, besidedid, its number and times, those ending_usin microseconds:id, its console’s count of it;sent_usby that console’s clock, andoff_usto add to it for the robot’s;ref_usandref_n, the robot’s time and number for the step whose view it was made from; andgot_usandplayed_us, by the robot’s clock, when the robot got it and played it, the last only for one played.
label(success,notes) andend, an episode’s:endholds theobservationsthat came after its last act, pairs as a step’s;driver, who drives a robot from now through teleop, andhelp, a robot’s ask for a person with its newest frame;gap: a worker letcountrecords go before your recorder read them (nullwhen it cannot tell: the worker ended), or, itscountnull, withepisode,observationsandacts(the first and last step of each), the steps of an episode that came to its worker before its Record was on there, which were not recorded. A worker hearsrecord=onwithin a minute.
Each worker holds the newest minute of the steps it records, at most 32 MiB for all its robots together,
in its memory and nothing on disk: on a worker that serves several robots, that can be less than a minute of
each. A recorder away longer than it holds loses the oldest and is told how many in a gap. A recorder started again reads
each worker’s newest minute again: worker and n say which items it had. While the
robot is not connected the recorder waits for it, and it follows the robot to the worker it moves to.
record=off stops every recorder of the robot (steps() raises
Conflict, its details.reason record_off), and the workers drop what
they hold.
What was kept before
While a robot’s Record kept its episodes in your storage, and a policy’s capture before that, what
they kept is a dataset there: a robot’s capture:robot.<name>, a policy’s
capture:<name>, in seq volume ls and on your usage. Nothing new is kept. What is
there stays, billed as storage, until its retention ends (each day of it goes 30 days after it was
written, unless you had set another retention, or sooner where your account’s
data policy caps it lower) or until you delete it with
seq volume rm. A retention can no longer be set. Until then, export it as a LeRobot dataset:
seq policy data export capture:robot.arm_1_user --out ./field # LeRobot v3.0 # then, with LeRobot 0.6.1 or newer from lerobot.datasets.lerobot_dataset import LeRobotDataset field_user = LeRobotDataset("local/field_user", root="./field")
The export is a LeRobot v3.0 dataset, laid out as LeRobot’s own writer lays one out: every
episode’s frames in data/chunk-000/file-000.parquet and on, each camera’s video decoded
into an image for every step observed; a row an episode in meta/episodes/, its task, length
and stats, its id, its label (success and notes, and next.success on its
last frame) and the operators who drove it; meta/tasks.parquet; meta/stats.json over
every frame; and meta/info.json. What each policy kept in episode.state at each
episode’s end is in meta/episode_states.jsonl; the states saved while an episode ran, in
ckpt/ beside the records, are left out of it. --format jsonl gives the records, and those states, as they were
kept: each episode’s state.json, which names a file under k/ for each key of
its state, holding the key’s value. A worker under load dropped a record rather than slow an act; what a policy kept that could not
be stored (a model, an open file) was left out, and is named under skipped in
meta/episode_states.jsonl.
The LeRobot export needs pyarrow, pip install 'sequence-cloud[data]' --extra-index-url "https://$SEQUENCES_API_KEY@api.generalsequences.com/simple" (av and zstandard for video,
depth and tactile come with sequence-ai); without it, it says error[missing_package] with that command. Open it with
LeRobotDataset from LeRobot 0.6.1 or newer. Its fps is the policy’s declared hz, the pace your robot observed at beside it as
observed_fps in meta/capture.json (and the fps where no hz is declared). A camera frame becomes
observation.images.<key> and any other array observation.<key>: your key
as your robot sent it, with / made . and an observation of its own in front
left out (observation/exterior_image_1_left is
observation.images.exterior_image_1_left). observation.state, first among them, is every
number and vector your robot sent, joined in the order of their column names, each still a column of its own.
LeRobot’s policies read a robot’s state by that name; a robot that sends a
state of its own has it as it is. driver says who drove each step: 0
its policy, 1 a person, 2 no one, stopped (Teleoperation).
Each episode’s task is its instruction: the first text your robot sent
under instruction, task, prompt or language_instruction, or
under a key holding one of those words, else unspecified; a sentence observed on its own, in no dict, is
not read as one.
Its size is measured once an hour, and that size is what storage is billed on.
Deleting the robot never deletes what it recorded: it becomes a dataset of its own,
capture:robot.<name>-<id8>, billed the same way until you
delete it with seq volume rm. Nothing else deletes it but deleting your account, neither its retention nor your
account’s data policy;
seq policy data export capture:robot.<name>-<id8> --out DIR reads it. A deleted policy’s stays the
same way, as capture:<name>-<id8>.
Teleoperation
A person can drive any of your robots that has teleop on its list, and give it back to its policy:
Teleoperation.