Problem providing/requiring services using examples

Hi all,
I have tried to run the components MyClient and MyServer coping them
from page 35 of the Orocos Component Builder's Manual and
I have add #include <rtt/OperationCaller.hpp> #include
<rtt/Operation.hpp> in the client.
Anyway I can load the two components and configure the server but I
can't configure the client
[this is because in the configure of the client is verified the
required service with the line return
this->requires("display")->ready(); ]

Doing "ls" while the client is running in the deployer seem that
something is not going well with the service because in the interface
there is the line:

Requests Services : display[!]

Someone has tried this examples and can explain me where I'm doing a
mistake providing and requiring services.
I haven't understood yet why the exercise hello-5-services from
rtt-exercises-2.3.2 seem to work well with the same syntax the main
difference
is that it uses an oromain but I don't think this can be the reason.

Thanks for any hints

Luca

Problem providing/requiring services using examples

2012/5/4 Luca Magnabosco <magnabosco [dot] luca [..] ...>

> Hi all,
>

Hi Luca,

> I have tried to run the components MyClient and MyServer coping them
> from page 35 of the Orocos Component Builder's Manual and
> I have add #include <rtt/OperationCaller.hpp> #include
> <rtt/Operation.hpp> in the client.
> Anyway I can load the two components and configure the server but I
> can't configure the client
> [this is because in the configure of the client is verified the
> required service with the line return
> this->requires("display")->ready(); ]
>
> Doing "ls" while the client is running in the deployer seem that
> something is not going well with the service because in the interface
> there is the line:
>
> Requests Services : display[!]
>

It means that service 'display' is not connected. Try using
'connectServices' in the deployer.

Type 'help connectServices' to display the man entry of the method, that
shows you the needed arguments.

Then you should see that display is connected, and configuring the client
should work!

Charles.

>
>
> Someone has tried this examples and can explain me where I'm doing a
> mistake providing and requiring services.
> I haven't understood yet why the exercise hello-5-services from
> rtt-exercises-2.3.2 seem to work well with the same syntax the main
> difference
> is that it uses an oromain but I don't think this can be the reason.
>
>
>
> Thanks for any hints
>
> Luca
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>