rtt_ros_integratino services?

Dear comrades,

my question is simple: is it possible to pass a ros service to orocos? I know it can be done with messages, but is it possible to do it with services?

Thx in advance.

Josep

Ruben Smits's picture

rtt_ros_integratino services?

On Friday 06 May 2011 19:47:03 Josep Arnau Claret Robert wrote:
> Dear comrades,
>
> my question is simple: is it possible to pass a ros service to orocos? I
> know it can be done with messages, but is it possible to do it with
> services?

It is the last primitive that we did not yet integrate (after ports and
parameters).

In theory, this should be possible.
In practice creating an ad-hoc solution would not be too hard. I suppose you
can easily add the c++-service function as an operation to a components
interface.

But a practical generic solution is far from simple. It is something we have
been thinking about but since we did not have a specific use-case for it yet,
we kept on postponing.

We would need to automatically create typekits for the return value and
arguments of the service from the *.srv files. After that we should create a
generic layer that calls the Orocos operation if a ROS request comes in and
issues a ROS service call if an Orocos operation is called (or send)

> Thx in advance.
>
> Josep

-- Ruben