UNPKG

spot-sdk-ts

Version:

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

42 lines 2.44 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.SpotCheckServiceClientImpl = exports.protobufPackage = void 0; /* eslint-disable */ const spot_check_1 = require("./spot_check"); const minimal_1 = __importDefault(require("protobufjs/minimal")); exports.protobufPackage = "bosdyn.api.spot"; class SpotCheckServiceClientImpl { rpc; constructor(rpc) { this.rpc = rpc; this.SpotCheckCommand = this.SpotCheckCommand.bind(this); this.SpotCheckFeedback = this.SpotCheckFeedback.bind(this); this.CameraCalibrationCommand = this.CameraCalibrationCommand.bind(this); this.CameraCalibrationFeedback = this.CameraCalibrationFeedback.bind(this); } SpotCheckCommand(request) { const data = spot_check_1.SpotCheckCommandRequest.encode(request).finish(); const promise = this.rpc.request("bosdyn.api.spot.SpotCheckService", "SpotCheckCommand", data); return promise.then((data) => spot_check_1.SpotCheckCommandResponse.decode(new minimal_1.default.Reader(data))); } SpotCheckFeedback(request) { const data = spot_check_1.SpotCheckFeedbackRequest.encode(request).finish(); const promise = this.rpc.request("bosdyn.api.spot.SpotCheckService", "SpotCheckFeedback", data); return promise.then((data) => spot_check_1.SpotCheckFeedbackResponse.decode(new minimal_1.default.Reader(data))); } CameraCalibrationCommand(request) { const data = spot_check_1.CameraCalibrationCommandRequest.encode(request).finish(); const promise = this.rpc.request("bosdyn.api.spot.SpotCheckService", "CameraCalibrationCommand", data); return promise.then((data) => spot_check_1.CameraCalibrationCommandResponse.decode(new minimal_1.default.Reader(data))); } CameraCalibrationFeedback(request) { const data = spot_check_1.CameraCalibrationFeedbackRequest.encode(request).finish(); const promise = this.rpc.request("bosdyn.api.spot.SpotCheckService", "CameraCalibrationFeedback", data); return promise.then((data) => spot_check_1.CameraCalibrationFeedbackResponse.decode(new minimal_1.default.Reader(data))); } } exports.SpotCheckServiceClientImpl = SpotCheckServiceClientImpl; //# sourceMappingURL=spot_check_service.js.map