rosnodejs icon indicating copy to clipboard operation
rosnodejs copied to clipboard

Support Services

Open baalexander opened this issue 14 years ago • 2 comments

This is a big issue and will likely require smaller, more specific issues going forward.

There's two ways to communicate between nodes in ROS: The publisher/subscriber way passing messages for topics and the RPC way, using service request and service responses. Currently, there is no support for services.

The implementation from a request/response perspective should resemble other RCP implementations, something along the lines of service.request('add_two_numbers', [array, of, parameters], callback) where the callback returns the service response.

tcpros.js will need to be updated and refactored for service supports. But tcpros.js really needs to be refactored anyways. Core service related models should be added to ros.js as well. Most documentation only references publishers and subscribers, so service copy will need to be added too.

baalexander avatar Dec 03 '11 16:12 baalexander

Look at dnode and now.js.

baalexander avatar Feb 02 '12 19:02 baalexander

More work needs to go into defining the services usage, but service should resemble the topic API some. The new ros.js has some example code using services, but it's not complete yet either.

Srv files also need to be parsed, similar to msg files.

baalexander avatar May 06 '12 05:05 baalexander