Skip to content

Episodes_BatchSampleEpisodeSeries

GET
/v1/accounts/{account}/datasets/{dataset}/episodes:batchSampleSeries
curl --request GET \
--url https://api.qualia.dev/v1/accounts/example/datasets/example/episodes:batchSampleSeries \
--header 'X-API-Key: <X-API-Key>'

Several episodes’ series at once, each as SampleEpisodeSeries samples it: what a dataset’s trajectories read. The takes are read together, so the artifacts they share are opened once and their reads overlap; each take still answers on its own, so one that cannot be read fails alone. Up to 50 takes, each an episode of the parent, and 20000 samples (the takes times max_points).

account
required
string

The account id.

dataset
required
string

The dataset id.

names
Array<string>

The takes, 1 to 50, each an episode of the parent: accounts/{account}/datasets/{dataset}/episodes/{episode}. Answered in this order.

maxPoints
integer format: int32

As SampleEpisodeSeriesRequest.max_points, for every take. The takes times max_points (400 when unset) are at most 20000: 50 takes at 400, or 10 at 2000.

streams
Array<string>
Allowed values: STREAM_UNSPECIFIED STATE ACTION TCP MOTION

As SampleEpisodeSeriesRequest.streams, for every take.

version
string

As SampleEpisodeSeriesRequest.version, for every take.

OK

Media type application/json

Response for Episodes.BatchSampleEpisodeSeries.

object
results

One per take asked, in the order asked.

Array<object>

One take’s answer.

object
name

Accounts/{account}/datasets/{dataset}/episodes/{episode}

string
series

Its series, as SampleEpisodeSeries answers; unset where it failed.

object
timeSeconds

Seconds from the first frame sampled, one per sample: a sample’s second of the episode’s recording is this plus window_start_seconds.

Array<number>
channels

Every channel the recording carries, on time_seconds.

Array<object>

One channel: one component of the state or the action vector.

object
stream

Which vector.

string format: enum
Allowed values: STREAM_UNSPECIFIED STATE ACTION TCP MOTION
key

Its positional key, “state[3]” or “action[3]”; the dataset’s robot interface names the positions. A TCP channel is named, “left.tcp.x”.

string
values

One value per sample; 0 where valid is false.

Array<number>
valid

Per sample: false where the recording holds no finite value.

Array<boolean>
fps

The recording’s frames per second.

number format: double
frameCount

Frames sampled: the take’s, or what its applied trim keeps.

string
unpublished

True when the take is in no published version yet (a split child before its publish): it has no channels to sample.

boolean
windowStartSeconds

Where the first frame sampled sits in the episode’s recording, in seconds of the recording (the clock its trim, subtasks and markers are in), on that frame: 0 until a trim is applied, the trim’s start once one is; a split’s piece is a recording of its own, so 0. Unset with unpublished.

number format: double
windowEndSeconds

Where the frames sampled end in the recording, in the same seconds: the end of the last one (window_start_seconds plus frame_count / fps). Unset with unpublished.

number format: double
takeIdentity

The data identity of the take these frames are read from: an opaque token over its data file, frame span and fps as its upload’s current publication holds them. A pose repair never changes it; a re-ingest that re-grids the take does. Send it back with each Datasets.RepairPoses add, which is refused when it no longer matches (ABORTED when that is the request’s only problem). A split piece reads its take’s. Set only by SampleEpisodeSeries reading the upload’s current version (no version, not a branch); empty for a take no publication holds.

string
repairIdentity

The repairs of the take these frames are read from: an opaque token over every pose and jaw repair entry its upload’s current publication holds for that take, on every hand and target. A STEP is measured on the take with its earlier steps applied, so every Datasets.RepairPoses STEP add sends it back, and is refused ABORTED when the take’s repairs changed since this read. Set when take_identity is.

string
repairs

What the take’s pose file lists: each person entry applied to it, in key order, then ingest’s fills, filled or undone, then the lost-tracking runs it left unfilled. Empty for a take with no pose file, when STATE and TCP are not read, and when its list cannot be read. BatchSampleEpisodeSeries lists them too, without author.

Array<object>

One repair the take’s pose file lists: a person’s entry as it was applied, or a fill ingest made.

object
hand

LEFT or RIGHT.

string format: enum
Allowed values: SIDE_UNSPECIFIED SIDE_LEFT SIDE_RIGHT
kind

What it is.

string format: enum
Allowed values: KIND_UNSPECIFIED INTERPOLATE UNDO_FILL STEP FILL UNFILLED
target

What it edits.

string format: enum
Allowed values: TARGET_UNSPECIFIED POSITION ROTATION JAW
startFrame

Its frames [start_frame, end_frame) in this episode’s recording, as window_start_seconds counts them: what a PoseRepair remove of it names on this episode (a step’s are [from, from + 1)). A split piece lists only the entries on its own frames, never its take’s other pieces’.

string
endFrame

The end of the frames, exclusive.

string
shift

A POSITION step’s shift in metres, x, y and z; empty otherwise.

Array<number>
turn

A ROTATION step’s turn, a rotation vector in radians; empty otherwise.

Array<number>
undone

A FILL that a person’s UNDO_FILL skips: the recorded values show.

boolean
author

Who made a person’s entry. Set only when take_identity is, and never on a FILL or UNFILLED.

object
kind

What kind of actor it is.

string format: enum
Allowed values: KIND_UNSPECIFIED PERSON VALIDATION RULE MODEL OPERATOR SYSTEM
user

The person’s user id when kind is PERSON; empty otherwise.

string
displayName

The person’s display name at the time, for rendering without a lookup.

string
agent

The rule code, or for a MODEL the Qualia model tier (e.g. “qualia-vlm”; “qualia” for any other model), when not a person.

string
run

The run a model or rule finding came from, when it has one.

string
apiKey

The API key’s id when a person acted through one; empty for a session. Never the key itself.

string
attribution

Signed identity evidence recorded with the change, kept apart from the principal above. Unset on older records and wherever none was signed.

object
authentication

How the principal authenticated.

string format: enum
Allowed values: AUTHENTICATION_UNSPECIFIED SESSION API_KEY SERVICE
initiator

The user id of a person verified as starting the work: the person of a session, or the person a trusted service’s signed job record names. Empty when nobody was verified.

string
initiatorDisplayName

The initiator’s display name at the time, never their email.

string
credentialCreator

The user id of the key’s creator at the time. Not who used the key.

string
credentialOwner

Who owned the key at the time.

string format: enum
Allowed values: CREDENTIAL_OWNER_UNSPECIFIED PERSON SPACE
credentialOwnerSpace

The owning space’s id (a workspace or the organization) when credential_owner is SPACE.

string
errorCode

Where it failed, the gRPC status code SampleEpisodeSeries would have answered for this take, as google.rpc.Code numbers it (5 NOT_FOUND, 9 FAILED_PRECONDITION, …); 0 where it was read.

integer format: int32
errorMessage

Where it failed, why; empty otherwise.

string
Example
{
"results": [
{
"series": {
"channels": [
{
"stream": "STREAM_UNSPECIFIED"
}
],
"repairs": [
{
"hand": "SIDE_UNSPECIFIED",
"kind": "KIND_UNSPECIFIED",
"target": "TARGET_UNSPECIFIED",
"author": {
"kind": "KIND_UNSPECIFIED",
"attribution": {
"authentication": "AUTHENTICATION_UNSPECIFIED",
"credentialOwner": "CREDENTIAL_OWNER_UNSPECIFIED"
}
}
}
]
}
}
]
}

Default error response

Media type application/json
One of:
API error

A refusal from the API itself.

object
code
required

The gRPC code name in upper case, e.g. NOT_FOUND.

string
message
required
string
retryable
required

Whether the same call may succeed if retried.

boolean
details
required

Empty, except when a dataset copy or move is refused: then one google.rpc.ErrorInfo with the refusal’s reason code, its domain and, in metadata, the datasets it names.

Array<object>
object
Example generated
{
"code": "example",
"message": "example",
"retryable": true,
"details": [
{}
]
}