From 47336faa701ff1d7c3cda3f8a824ca6db62feb48 Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Sun, 25 Mar 2018 05:01:02 +0800 Subject: [PATCH] Add the type of service when executing 'call_service' (#282) We want to reuse the roslibjs as the front-end JavaScript library by leveraging the ros2-web-bridge in ROS2. But the current roslibjs doesn't transmit the service type when calling a service, which is a necessary element when sending the request in ROS2. This patch adds this information to make it compatible with ROS2. --- src/core/Service.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/Service.js b/src/core/Service.js index f90be91af..33729dd0e 100644 --- a/src/core/Service.js +++ b/src/core/Service.js @@ -59,6 +59,7 @@ Service.prototype.callService = function(request, callback, failedCallback) { op : 'call_service', id : serviceCallId, service : this.name, + type: this.serviceType, args : request }; this.ros.callOnConnection(call);