spot-sdk-ts
Version:
TypeScript bindings based on protobufs (proto3) provided by Boston Dynamics
24 lines • 1.24 kB
TypeScript
import { PowerCommandResponse, PowerCommandFeedbackResponse, PowerCommandRequest, PowerCommandFeedbackRequest } from "./power";
export declare const protobufPackage = "bosdyn.api";
/** The power service for the robot that can power on/off the robot's motors. */
export interface PowerService {
/**
* Starts a power command on the robot. A robot can only accept one power command at once.
* Power commands, are not interruptible. Once a command is issued, it must complete before
* another command can be issued.
*/
PowerCommand(request: PowerCommandRequest): Promise<PowerCommandResponse>;
/** Check the status of a power command. */
PowerCommandFeedback(request: PowerCommandFeedbackRequest): Promise<PowerCommandFeedbackResponse>;
}
export declare class PowerServiceClientImpl implements PowerService {
private readonly rpc;
constructor(rpc: Rpc);
PowerCommand(request: PowerCommandRequest): Promise<PowerCommandResponse>;
PowerCommandFeedback(request: PowerCommandFeedbackRequest): Promise<PowerCommandFeedbackResponse>;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export {};
//# sourceMappingURL=power_service.d.ts.map