-
Notifications
You must be signed in to change notification settings - Fork 551
/
data_acquisition_store_service.proto
68 lines (57 loc) · 3.84 KB
/
data_acquisition_store_service.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Copyright (c) 2023 Boston Dynamics, Inc. All rights reserved.
//
// Downloading, reproducing, distributing or otherwise using the SDK Software
// is subject to the terms and conditions of the Boston Dynamics Software
// Development Kit License (20191101-BDSDK-SL).
syntax = "proto3";
package bosdyn.api;
option java_outer_classname = "DataAcquisitionStoreServiceProto";
import "bosdyn/api/data_chunk.proto";
import "bosdyn/api/data_acquisition_store.proto";
// The DataAcquisitionStoreService is used to store data (images, data, metadata) on the robot
// in association with the DataIdentifiers specified by the DataAcquisitionService. Additionally,
// requests can be made to the DataAcquisitionStoreService to identify different pieces of data or
// entire capture actions which match query parameters, such as time ranges or action/group names.
service DataAcquisitionStoreService {
// List all CaptureActionIds (which identify an entire AcquireData RPC's data captures)
// that match the query parameters provided in the request.
rpc ListCaptureActions(ListCaptureActionsRequest) returns (ListCaptureActionsResponse);
// List data identifiers (which identify specific pieces of data from
// an action) for stored data that satisfy the query parameters in the request.
rpc ListStoredData(ListStoredDataRequest) returns (ListStoredDataResponse);
// Store arbitrary data associated with a DataIdentifier.
rpc StoreData(StoreDataRequest) returns (StoreDataResponse);
// Store arbitrary data associated with a DataIdentifier through a stream. Supports files > 100
// MB and below the Data Acquisition Store capacity.
rpc StoreDataStream(stream StoreStreamRequest) returns (StoreStreamResponse);
// Type-safe to images: list data identifiers (which identify specific images
// from an action) for stored images that satisfy the
// query parameters in the request.
rpc ListStoredImages(ListStoredImagesRequest) returns (ListStoredImagesResponse);
// Type-safe to images: store image data associated with a DataIdentifier.
rpc StoreImage(StoreImageRequest) returns (StoreImageResponse);
// Type-safe to JSON metadata: list data identifiers (which identify specific metadata from
// an action) for stored metadata that satisfy the query parameters in the request.
rpc ListStoredMetadata(ListStoredMetadataRequest) returns (ListStoredMetadataResponse);
// Type-safe to JSON metadata: store metadata associated with a DataIdentifier.
rpc StoreMetadata(StoreMetadataRequest) returns (StoreMetadataResponse);
// List data identifiers (which identify specific AlertData from
// an action) for stored AlertData that satisfy the query parameters in the request.
rpc ListStoredAlertData(ListStoredAlertDataRequest) returns (ListStoredAlertDataResponse);
// Store AlertData associated with a DataIdentifier.
rpc StoreAlertData(StoreAlertDataRequest) returns (StoreAlertDataResponse);
// Query the Data Acquisition Store for captured data. This streaming RPC returns a single
// QueryStoredCapturesResponse message, encoded as a list of DataChunk messages.
//
// If the first capture matching the query is larger than an internal size limit set in the
// service, the QueryStoredCapturesResponse message contains only that first capture matching
// the query.
//
// Otherwise, the QueryStoredCapturesResponse message contains as many matching captures as can
// fit within the internal size limit, without breaking the results order.
//
// To get all captures that match a query, you must make this RPC until it returns an empty
// QueryStoredCapturesResponse with no elements in its "results" field.
rpc QueryStoredCaptures(QueryStoredCapturesRequest) returns (stream DataChunk);
rpc QueryMaxCaptureId(QueryMaxCaptureIdRequest) returns (QueryMaxCaptureIdResponse);
}