UNPKG

spot-sdk-ts

Version:

TypeScript bindings based on protobufs (proto3) provided by Boston Dynamics

31 lines 1.78 kB
import { RobotCommandResponse, RobotCommandFeedbackResponse, ClearBehaviorFaultResponse, RobotCommandRequest, RobotCommandFeedbackRequest, ClearBehaviorFaultRequest } from "./robot_command"; export declare const protobufPackage = "bosdyn.api"; /** The robot command service allows a client application to control and move the robot. */ export interface RobotCommandService { /** * Starts a behavior command on the robot. Issuing a new command overrides the active command. * Each command is issued a UID for feedback retrieval. */ RobotCommand(request: RobotCommandRequest): Promise<RobotCommandResponse>; /** * A client queries this RPC to determine a robot's progress towards completion of a command. * This updates the client with metrics like "distance to goal." * The client should use this feedback to determine whether the current command has * succeeeded or failed, and thus send the next command. */ RobotCommandFeedback(request: RobotCommandFeedbackRequest): Promise<RobotCommandFeedbackResponse>; /** Clear robot behavior fault. */ ClearBehaviorFault(request: ClearBehaviorFaultRequest): Promise<ClearBehaviorFaultResponse>; } export declare class RobotCommandServiceClientImpl implements RobotCommandService { private readonly rpc; constructor(rpc: Rpc); RobotCommand(request: RobotCommandRequest): Promise<RobotCommandResponse>; RobotCommandFeedback(request: RobotCommandFeedbackRequest): Promise<RobotCommandFeedbackResponse>; ClearBehaviorFault(request: ClearBehaviorFaultRequest): Promise<ClearBehaviorFaultResponse>; } interface Rpc { request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>; } export {}; //# sourceMappingURL=robot_command_service.d.ts.map