[Rock-dev] using base::NamedVector<> as ports

Ajish Babu ajish.babu at dfki.de
Thu Jul 31 14:39:38 CEST 2014


Hi all,

I tried to use the base::NamedVector<..> as port types.

when I include directly in the orogen like *output_port("wrenches", 
"***/base/NamedVector< base/samples/Wrench >*")*

/    mars_core.orogen:231: type /base/NamedVector< /base/samples/Wrench 
 > is not declared (Orocos::Generation::ConfigError)
     Typelib[WARN]: 
/home/babu-dfki/HDSDA2/DFKI-ROCK/install/include/base/NamedVector.hpp:12: ignoring 
the empty struct/class /base/NamedVector</base/samples/Wrench>
     Typelib[WARN]: 
/home/babu-dfki/HDSDA2/DFKI-ROCK/simulation/orogen/mars_core/.orogen/typekit/types/simulation/ForceTorqueSensorTypes.hpp:8: 
cannot create the /simulation/Wrenches typedef, as it points to 
/base/NamedVector</base/samples/Wrench> which is ignored/

and when I do *typedef base::NamedVector< base::samples::Wrench > 
Wrenches;* and then try to use it

/mars_core.orogen:230: type /simulation/Wrenches is not declared 
(Orocos::Generation::ConfigError)//
//    Typelib[WARN]: 
/home/babu-dfki/HDSDA2/DFKI-ROCK/install/include/base/NamedVector.hpp:12: ignoring 
the empty struct/class /base/NamedVector</base/samples/Wrench>//
//    Typelib[WARN]: 
/home/babu-dfki/HDSDA2/DFKI-ROCK/simulation/orogen/mars_core/.orogen/typekit/types/simulation/ForceTorqueSensorTypes.hpp:8: 
cannot create the /simulation/Wrenches typedef, as it points to 
/base/NamedVector</base/samples/Wrench> which is ignored/

It seems to work only if I create a new type like

///struct////Wrenches////:////public////base//:://NamedVector//<//Wrench//>/
///{/
///};/

Does anybody know what is going on or how it can be done without a new type?

best
Ajish Babu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.dfki.de/pipermail/rock-dev/attachments/20140731/293057fc/attachment.htm 


More information about the Rock-dev mailing list