TaskScript::getProvider() naming + understanding

[email protected] Thu, 20 Aug 2015 17:24:02 +0200
Newsgroups gmane.science.robotics.orocos.devel
Message-ID <[email protected]>
Hi all,

I am not sure I understand what goes on behind the hood of function  
TaskScript::getProvider(...).

The doc says that it allows to make OperationCaller calls on the operations  
of a given service of a TaskContext. In order to do so getProvider(...)  
returns boost::shared_ptr.

Now if ServiceType turns out to be... say Scripting, then getProvider(...)  
returns a pointer on a Scripting object. And it turns out that Scripting  
derives from ServiceRequester.

Here is the core of the problem: to my understanding a Service provides  
operations (hence can be called a "provider"), but when I write  
getProvider(...) I am actually returned a ServiceRequester...

Hum hum... any idea of where I am getting things wrong?

Thanks,

Antoine.
-- 
Orocos-Dev mailing list
[email protected]
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev