user defined types in deployment descriptor

Hi all,

a have two components which exchange its data throught data ports,
the data type is "user defined" ( not really, it is openCV's IplImage )

If i create and connect this component in an application, i have
to introduce this data type to the framework:


struct IplImageTypeInfo : public RTT::TemplateTypeInfo
{
IplImageTypeInfo() : RTT::TemplateTypeInfo( "IplImage" ) {}
};

RTT::TypeInfoRepository::Instance()->addType( new IplImageTypeInfo() );

but, how can a do that if i use the deployment component ???
It is possible to configure user defined types in deploymen descriptor XML file ?
( I don't mean load/write user defined data types for properties )

cheers,
vitali

user defined types in deployment descriptor

On Wed, Aug 19, 2009 at 18:52, <vitali [..] ...> wrote:
> Hi all,
>
> a have two components which exchange its data throught data ports,
> the data type is "user defined" ( not really, it is openCV's IplImage )
>
> If i create and connect this component in an application, i have
> to introduce this data type to the framework:
>
> &#10;&gt; struct IplImageTypeInfo : public RTT::TemplateTypeInfo&lt;IplImage&gt;&#10;&gt; {&#10;&gt;  IplImageTypeInfo() : RTT::TemplateTypeInfo&lt;IplImage&gt;( &quot;IplImage&quot; ) {}&#10;&gt; };&#10;&gt;&#10;&gt; RTT::TypeInfoRepository::Instance()-&gt;addType( new IplImageTypeInfo() );&#10;&gt;
>
> but, how can a do that if i use the deployment component ???
> It is possible to configure user defined types in deploymen descriptor XML file ?
> ( I don't mean load/write user defined data types for properties )

The idea is to create a library which contains your types (it's called
a toolkit).

Related to this, does anyone (Ruben?) know if there was more work done
on Francois' work in
orocos-ocl/vision/VisionToolkit.hpp ?? Is there a more advanced
version available ?

Peter

Ruben Smits's picture

user defined types in deployment descriptor

On Thu, Aug 20, 2009 at 3:58 PM, Peter
Soetens<Peter [dot] Soetens [..] ...> wrote:
> On Wed, Aug 19, 2009 at 18:52, <vitali [..] ...> wrote:
>> Hi all,
>>
>> a have two components which exchange its data throught data ports,
>> the data type is "user defined" ( not really, it is openCV's IplImage )
>>
>> If i create and connect this component in an application, i have
>> to introduce this data type to the framework:
>>
>> &#10;&gt;&gt; struct IplImageTypeInfo : public RTT::TemplateTypeInfo&lt;IplImage&gt;&#10;&gt;&gt; {&#10;&gt;&gt;  IplImageTypeInfo() : RTT::TemplateTypeInfo&lt;IplImage&gt;( &quot;IplImage&quot; ) {}&#10;&gt;&gt; };&#10;&gt;&gt;&#10;&gt;&gt; RTT::TypeInfoRepository::Instance()-&gt;addType( new IplImageTypeInfo() );&#10;&gt;&gt;
>>
>> but, how can a do that if i use the deployment component ???
>> It is possible to configure user defined types in deploymen descriptor XML file ?
>> ( I don't mean load/write user defined data types for properties )
>
> The idea is to create a library which contains your types (it's called
> a toolkit).
>
> Related to this, does anyone (Ruben?) know if there was more work done
> on Francois' work in
> orocos-ocl/vision/VisionToolkit.hpp ?? Is there a more advanced
> version available ?

We are not working on a newer version of this. But IRC others (people
at Onera?) used it as a starter point to extend/adapt it. Maybe they
want to share their code?

Ruben

user defined types in deployment descriptor

On Aug 19, 2009, at 12:52 , vitali [..] ... wrote:

> Hi all,
>
> a have two components which exchange its data throught data ports,
> the data type is "user defined" ( not really, it is openCV's
> IplImage )
>
> If i create and connect this component in an application, i have
> to introduce this data type to the framework:
>
> &#10;&gt; struct IplImageTypeInfo : public RTT::TemplateTypeInfo&lt;IplImage&gt;&#10;&gt; {&#10;&gt;  IplImageTypeInfo() : RTT::TemplateTypeInfo&lt;IplImage&gt;( &quot;IplImage&quot; ) {}&#10;&gt; };&#10;&gt;&#10;&gt; RTT::TypeInfoRepository::Instance()-&gt;addType( new  &#10;&gt; IplImageTypeInfo() );&#10;&gt;
>
> but, how can a do that if i use the deployment component ???
> It is possible to configure user defined types in deploymen
> descriptor XML file ?
> ( I don't mean load/write user defined data types for properties )
>
> cheers,
> vitali

This might help

http://orocos.org/wiki/rtt/simple-examples/developing-plugins-and-toolkits

It is still a work in progress, but I think it will help your situation.
Stephen