export type Robot = import("./robot").Robot; export type RpcError = import("./exceptions").RpcError; /** * @typedef {import('./robot').Robot} Robot */ /** * @typedef {import('./exceptions').RpcError} RpcError */ /** * A client for triggering data acquisition plugin and logging. This client is not intended for * use directly by users or applications. All acquisition requests should go to the data * acquisition service first, which is responsible for forwarding the requests to the right data * acquisition plugin services through this client. * @extends {BaseClient} */ export class DataAcquisitionPluginClient extends BaseClient { static defaultServiceName: null; static serviceType: string; constructor(); /** * Trigger a data acquisition to save data and metadata to the data acquisition store service. * @param {dataAcquisitionPb.AcquisitionRequestList} acquisitionRequests The different image sources and * data sources to capture from and save to the data acquisition store service with * the same timestamp. * @param {dataAcquisitionPb.CaptureActionId} actionId The unique action that all data should be saved with. * @param {?Array} [dataIdentifiers] List of data identifiers to associate * with metadata. * @param {?dataAcquisitionPb.Metadata} [metadata] The JSON structured metadata to be associated with * the data returned by the DataAcquisitionService when logged in the data acquisition * store service. * @param {Object} [args] Extra arguments for controlling RPC details. * @returns {Promise} If the RPC is successful, then it will return the * acquire data response which can be used to check the status of the acquisition and get feedback. * @throws {RpcError} Problem communicating with the robot. */ acquirePluginData(acquisitionRequests: dataAcquisitionPb.AcquisitionRequestList, actionId: dataAcquisitionPb.CaptureActionId, dataIdentifiers?: Array | null, metadata?: dataAcquisitionPb.Metadata | null, args?: Object): Promise; /** * Call the GetLiveData RPC of the plugin service. * @param {dataAcquisitionPb.LiveDataRequest} request The request to send * @returns {Promise} */ getLiveData(request: dataAcquisitionPb.LiveDataRequest): Promise; } import { DataAcquisitionPluginServiceClient } from "../../src/bosdyn/api/data_acquisition_plugin_service_grpc_pb"; import { BaseClient } from "./common"; import dataAcquisitionPb = require("../../src/bosdyn/api/data_acquisition_pb");