ros2-web-bridge v0.2.6
Release Note
Changes
-
Since this release, ros2-web-bridge starts to support the latest ROS2 stable release by default, see details.
-
The parameter of a service type is not necessary any longer when sending a request, e.g.
// Create a Service client with details of the service's name and service type.
var addTwoInts = new ROSLIB.Service({
ros : ros,
name : '/add_two_ints',
serviceType : 'example_interfaces/AddTwoInts'
});
// Send the request
addTwoInts.callService({a: 1, b: 2}, function(result) {
console.log('Result for service call on ' + addTwoInts.name + ': ' + result.sum);
});