UNPKG

@foxglove/ros1

Version:

Standalone TypeScript implementation of the ROS 1 (Robot Operating System) protocol with a pluggable transport layer

44 lines 2.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RosMasterClient = void 0; const RosXmlRpcClient_1 = require("./RosXmlRpcClient"); class RosMasterClient extends RosXmlRpcClient_1.RosXmlRpcClient { async registerService(callerId, service, serviceApi, callerApi) { return await this._methodCall("registerService", [callerId, service, serviceApi, callerApi]); } async unregisterService(callerId, service, serviceApi) { return await this._methodCall("unregisterService", [callerId, service, serviceApi]); } async registerSubscriber(callerId, topic, topicType, callerApi) { return await this._methodCall("registerSubscriber", [callerId, topic, topicType, callerApi]); } async unregisterSubscriber(callerId, topic, callerApi) { return await this._methodCall("unregisterSubscriber", [callerId, topic, callerApi]); } async registerPublisher(callerId, topic, topicType, callerApi) { return await this._methodCall("registerPublisher", [callerId, topic, topicType, callerApi]); } async unregisterPublisher(callerId, topic, callerApi) { return await this._methodCall("unregisterPublisher", [callerId, topic, callerApi]); } async lookupNode(callerId, nodeName) { return await this._methodCall("lookupNode", [callerId, nodeName]); } async getPublishedTopics(callerId, subgraph = "") { return await this._methodCall("getPublishedTopics", [callerId, subgraph]); } async getTopicTypes(callerId) { return await this._methodCall("getTopicTypes", [callerId]); } async getSystemState(callerId) { return await this._methodCall("getSystemState", [callerId]); } async getUri(callerId) { return await this._methodCall("getUri", [callerId]); } async lookupService(callerId, service) { return await this._methodCall("lookupService", [callerId, service]); } } exports.RosMasterClient = RosMasterClient; //# sourceMappingURL=RosMasterClient.js.map