How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

On Friday 22 October 2010 15:26:55 Tinne De Laet wrote:
> Hi all,
>
> In 1.10 we were able to create vectors of our own types. To this end
> Ruben and me wrote StdVectorTemplateTypeComposition.
> How should we handle the vector<MyTypes> in 2.x?

By using SequenceTypeInfo< vector<MyTypes> >("MyTypes")

This will give you size/capacity/[] access to your type. You won't have
constructors or operators.

It's a mistake that the constructors are not present, since we could have
added them in the constructor of SequenceTypeInfo itself. The accessor
functions for these constructors are defined in SequenceConstructor.hpp

For 2.1, you'll need to add in your typekit:

#include <rtt/types/SequenceConstructor.hpp>
#include <rtt/types/TemplateConstructor.hpp>
 
// ...
 
        ti->type("mytypes")->addConstructor( new SequenceBuilder<MyTypes>() );
        // fixed number of args:
        ti->type("mytypes")->addConstructor( newConstructor( 
sequence_ctor<MyTypes>() ) );
        ti->type("mytypes")->addConstructor( newConstructor( 
sequence_ctor2<MyTypes>() ) );

It should no longer be necessary to add these in 2.2.

Peter

How to add a vector<MyType> to my typekit?

On Friday 22 October 2010 15:26:55 Tinne De Laet wrote:
> Hi all,
>
> In 1.10 we were able to create vectors of our own types. To this end
> Ruben and me wrote StdVectorTemplateTypeComposition.
> How should we handle the vector<MyTypes> in 2.x?

By using SequenceTypeInfo< vector<MyTypes> >("MyTypes")

This will give you size/capacity/[] access to your type. You won't have
constructors or operators.

It's a mistake that the constructors are not present, since we could have
added them in the constructor of SequenceTypeInfo itself. The accessor
functions for these constructors are defined in SequenceConstructor.hpp

For 2.1, you'll need to add in your typekit:

#include <rtt/types/SequenceConstructor.hpp>
#include <rtt/types/TemplateConstructor.hpp>
 
// ...
 
        ti->type("mytypes")->addConstructor( new SequenceBuilder<MyTypes>() );
        // fixed number of args:
        ti->type("mytypes")->addConstructor( newConstructor( 
sequence_ctor<MyTypes>() ) );
        ti->type("mytypes")->addConstructor( newConstructor( 
sequence_ctor2<MyTypes>() ) );

It should no longer be necessary to add these in 2.2.

Peter

How to add a vector<MyType> to my typekit?

On Friday 22 October 2010 15:26:55 Tinne De Laet wrote:
> Hi all,
>
> In 1.10 we were able to create vectors of our own types. To this end
> Ruben and me wrote StdVectorTemplateTypeComposition.
> How should we handle the vector<MyTypes> in 2.x?

By using SequenceTypeInfo< vector<MyTypes> >("MyTypes")

This will give you size/capacity/[] access to your type. You won't have
constructors or operators.

It's a mistake that the constructors are not present, since we could have
added them in the constructor of SequenceTypeInfo itself. The accessor
functions for these constructors are defined in SequenceConstructor.hpp

For 2.1, you'll need to add in your typekit:

#include <rtt/types/SequenceConstructor.hpp>
#include <rtt/types/TemplateConstructor.hpp>
 
// ...
 
        ti->type("mytypes")->addConstructor( new SequenceBuilder<MyTypes>() );
        // fixed number of args:
        ti->type("mytypes")->addConstructor( newConstructor( 
sequence_ctor<MyTypes>() ) );
        ti->type("mytypes")->addConstructor( newConstructor( 
sequence_ctor2<MyTypes>() ) );

It should no longer be necessary to add these in 2.2.

Peter

How to add a vector<MyType> to my typekit?

On Friday 22 October 2010 15:26:55 Tinne De Laet wrote:
> Hi all,
>
> In 1.10 we were able to create vectors of our own types. To this end
> Ruben and me wrote StdVectorTemplateTypeComposition.
> How should we handle the vector<MyTypes> in 2.x?

By using SequenceTypeInfo< vector<MyTypes> >("MyTypes")

This will give you size/capacity/[] access to your type. You won't have
constructors or operators.

It's a mistake that the constructors are not present, since we could have
added them in the constructor of SequenceTypeInfo itself. The accessor
functions for these constructors are defined in SequenceConstructor.hpp

For 2.1, you'll need to add in your typekit:

#include <rtt/types/SequenceConstructor.hpp>
#include <rtt/types/TemplateConstructor.hpp>
 
// ...
 
        ti->type("mytypes")->addConstructor( new SequenceBuilder<MyTypes>() );
        // fixed number of args:
        ti->type("mytypes")->addConstructor( newConstructor( 
sequence_ctor<MyTypes>() ) );
        ti->type("mytypes")->addConstructor( newConstructor( 
sequence_ctor2<MyTypes>() ) );

It should no longer be necessary to add these in 2.2.

Peter

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

On Friday 22 October 2010 15:26:55 Tinne De Laet wrote:
> Hi all,
>
> In 1.10 we were able to create vectors of our own types. To this end
> Ruben and me wrote StdVectorTemplateTypeComposition.
> How should we handle the vector<MyTypes> in 2.x?

By using SequenceTypeInfo< vector<MyTypes> >("MyTypes")

This will give you size/capacity/[] access to your type. You won't have
constructors or operators.

It's a mistake that the constructors are not present, since we could have
added them in the constructor of SequenceTypeInfo itself. The accessor
functions for these constructors are defined in SequenceConstructor.hpp

For 2.1, you'll need to add in your typekit:

#include <rtt/types/SequenceConstructor.hpp>
#include <rtt/types/TemplateConstructor.hpp>
 
// ...
 
        ti->type("mytypes")->addConstructor( new SequenceBuilder<MyTypes>() );
        // fixed number of args:
        ti->type("mytypes")->addConstructor( newConstructor( 
sequence_ctor<MyTypes>() ) );
        ti->type("mytypes")->addConstructor( newConstructor( 
sequence_ctor2<MyTypes>() ) );

It should no longer be necessary to add these in 2.2.

Peter

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

On Friday 22 October 2010 15:26:55 Tinne De Laet wrote:
> Hi all,
>
> In 1.10 we were able to create vectors of our own types. To this end
> Ruben and me wrote StdVectorTemplateTypeComposition.
> How should we handle the vector<MyTypes> in 2.x?

By using SequenceTypeInfo< vector<MyTypes> >("MyTypes")

This will give you size/capacity/[] access to your type. You won't have
constructors or operators.

It's a mistake that the constructors are not present, since we could have
added them in the constructor of SequenceTypeInfo itself. The accessor
functions for these constructors are defined in SequenceConstructor.hpp

For 2.1, you'll need to add in your typekit:

#include <rtt/types/SequenceConstructor.hpp>
#include <rtt/types/TemplateConstructor.hpp>
 
// ...
 
        ti->type("mytypes")->addConstructor( new SequenceBuilder<MyTypes>() );
        // fixed number of args:
        ti->type("mytypes")->addConstructor( newConstructor( 
sequence_ctor<MyTypes>() ) );
        ti->type("mytypes")->addConstructor( newConstructor( 
sequence_ctor2<MyTypes>() ) );

It should no longer be necessary to add these in 2.2.

Peter

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

On Friday 22 October 2010 15:26:55 Tinne De Laet wrote:
> Hi all,
>
> In 1.10 we were able to create vectors of our own types. To this end
> Ruben and me wrote StdVectorTemplateTypeComposition.
> How should we handle the vector<MyTypes> in 2.x?

By using SequenceTypeInfo< vector<MyTypes> >("MyTypes")

This will give you size/capacity/[] access to your type. You won't have
constructors or operators.

It's a mistake that the constructors are not present, since we could have
added them in the constructor of SequenceTypeInfo itself. The accessor
functions for these constructors are defined in SequenceConstructor.hpp

For 2.1, you'll need to add in your typekit:

#include <rtt/types/SequenceConstructor.hpp>
#include <rtt/types/TemplateConstructor.hpp>
 
// ...
 
        ti->type("mytypes")->addConstructor( new SequenceBuilder<MyTypes>() );
        // fixed number of args:
        ti->type("mytypes")->addConstructor( newConstructor( 
sequence_ctor<MyTypes>() ) );
        ti->type("mytypes")->addConstructor( newConstructor( 
sequence_ctor2<MyTypes>() ) );

It should no longer be necessary to add these in 2.2.

Peter

How to add a vector<MyType> to my typekit?

On Friday 22 October 2010 15:26:55 Tinne De Laet wrote:
> Hi all,
>
> In 1.10 we were able to create vectors of our own types. To this end
> Ruben and me wrote StdVectorTemplateTypeComposition.
> How should we handle the vector<MyTypes> in 2.x?

By using SequenceTypeInfo< vector<MyTypes> >("MyTypes")

This will give you size/capacity/[] access to your type. You won't have
constructors or operators.

It's a mistake that the constructors are not present, since we could have
added them in the constructor of SequenceTypeInfo itself. The accessor
functions for these constructors are defined in SequenceConstructor.hpp

For 2.1, you'll need to add in your typekit:

#include <rtt/types/SequenceConstructor.hpp>
#include <rtt/types/TemplateConstructor.hpp>
 
// ...
 
        ti->type("mytypes")->addConstructor( new SequenceBuilder<MyTypes>() );
        // fixed number of args:
        ti->type("mytypes")->addConstructor( newConstructor( 
sequence_ctor<MyTypes>() ) );
        ti->type("mytypes")->addConstructor( newConstructor( 
sequence_ctor2<MyTypes>() ) );

It should no longer be necessary to add these in 2.2.

Peter

How to add a vector<MyType> to my typekit?

On Fri, Oct 22, 2010 at 15:45, Peter Soetens <peter [..] ...> wrote:
> On Friday 22 October 2010 15:26:55 Tinne De Laet wrote:
>> Hi all,
>>
>> In 1.10 we were able to create vectors of our own types. To this end
>> Ruben and me wrote StdVectorTemplateTypeComposition.
>> How should we handle the vector<MyTypes> in 2.x?
>
> By using SequenceTypeInfo< vector<MyTypes> >("MyTypes")
>
> This will give you size/capacity/[] access to your type. You won't have
> constructors or operators.

This works indeed! (I tested it with different types!)

> It's a mistake that the constructors are not present, since we could have
> added them in the constructor of SequenceTypeInfo itself. The accessor
> functions for these constructors are defined in SequenceConstructor.hpp
>
> For 2.1, you'll need to add in your typekit:
>
>

> #include <rtt/types/SequenceConstructor.hpp>
> #include <rtt/types/TemplateConstructor.hpp>
>
> // ...
>
>        ti->type("mytypes")->addConstructor( new SequenceBuilder<MyTypes>() );
>        // fixed number of args:
>        ti->type("mytypes")->addConstructor( newConstructor(
> sequence_ctor<MyTypes>() ) );
>        ti->type("mytypes")->addConstructor( newConstructor(
> sequence_ctor2<MyTypes>() ) );
> 

>
> It should no longer be necessary to add these in 2.2.

Using the git master, the constructors were not needed any more.

Thanks,

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne

How to add a vector<MyType> to my typekit?

Hi all,

In 1.10 we were able to create vectors of our own types. To this end
Ruben and me wrote StdVectorTemplateTypeComposition.
How should we handle the vector<MyTypes> in 2.x?

Tinne