I'm just getting started with Orocos/RTT and I'm trying to figure out if there's a public C++ API for dynamically loading Orocos components. I see documentation on statically linking, as well as loading them with an Orocos script / from the deployer interface, but not directly from C++. Is there a way to do this?
thanks!
-j
Dynamically loading components from C++
On Sunday 05 June 2011 13:15:47 jonathan [dot] bohren [..] ... wrote:
> I'm just getting started with Orocos/RTT and I'm trying to figure out if
> there's a public C++ API for dynamically loading Orocos components. I see
> documentation on statically linking, as well as loading them with an
> Orocos script / from the deployer interface, but not directly from C++. Is
> there a way to do this?
The DeploymentComponent manual links to the API docs of this component. What
you do in C++ is to instantiate this component and then use that API. It's 1-
to-1 (except exceptions :-) with the available scripting api, so you can rely
on that doc as well for guidance.
http://www.orocos.org/stable/documentation/ocl/v2.x/api/html/classOCL_1_...
Peter
Re: Dynamically loading components from C++
The DeploymentComponent manual links to the API docs of this component. What you do in C++ is to instantiate this component and then use that API. It's 1- to-1 (except exceptions :-) with the available scripting api, so you can rely on that doc as well for guidance.
http://www.orocos.org/stable/documentation/ocl/v2.x/api/html/classOCL_1_1DeploymentComponent.html
Peter
Peter,
Ahh, yeah I had been looking all over the RTT docs instead of OCL, and somehow missed that link in the doc. Thanks!
-j