Skip to content

Commit

Permalink
Add the type of service when executing 'call_service' (#282)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Minggang Wang authored and jihoonl committed Mar 24, 2018
1 parent 3bc4ec2 commit 47336fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/Service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 47336fa

Please sign in to comment.