<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi all,<br>
<br>
I tried to use the base::NamedVector<..> as port types. <br>
<br>
when I include directly in the orogen like <b>output_port("wrenches",
"</b><b><b>/base/NamedVector< base/samples/Wrench ></b>")</b><br>
<br>
<i> mars_core.orogen:231: type /base/NamedVector<
/base/samples/Wrench > is not declared
(Orocos::Generation::ConfigError)<br>
Typelib[WARN]:
/home/babu-dfki/HDSDA2/DFKI-ROCK/install/include/base/NamedVector.hpp:12:
ignoring the empty struct/class
/base/NamedVector</base/samples/Wrench><br>
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</i><br>
<br>
and when I do <b>typedef base::NamedVector<
base::samples::Wrench > Wrenches;</b> and then try to use it <br>
<br>
<i> mars_core.orogen:230: type /simulation/Wrenches is not
declared (Orocos::Generation::ConfigError)</i><i><br>
</i><i> Typelib[WARN]:
/home/babu-dfki/HDSDA2/DFKI-ROCK/install/include/base/NamedVector.hpp:12:
ignoring the empty struct/class
/base/NamedVector</base/samples/Wrench></i><i><br>
</i><i> 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</i><br>
<br>
It seems to work only if I create a new type like <br>
<br>
<div class="line" id="LC25"><i> </i><i><span class="k">struct</span></i><i>
</i><i><span class="nl">Wrenches</span></i><i> </i><i><span
class="p">:</span></i><i> </i><i><span class="k">public</span></i><i>
</i><i><span class="n">base</span></i><i><span class="o">::</span></i><i><span
class="n">NamedVector</span></i><i><span class="o"><</span></i><i><span
class="n">Wrench</span></i><i><span class="o">></span></i></div>
<div class="line" id="LC26"><i> </i><i><span class="p">{</span></i></div>
<i> </i><i><span class="p">};</span></i><br>
<br>
Does anybody know what is going on or how it can be done without a
new type?<br>
<br>
best <br>
Ajish Babu<br>
</body>
</html>