<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hello Martin,<br>
<br>
Did you try to remove the quotes?<br>
I have this in the orogen:<br>
<br>
<br>
# A configuration property (here, a std::string). Its value can
be retrieved<br>
# in the C++ code with # _config_value.get() and
_config_value.set(new_value).<br>
property "config_value", "/std/string", "Hola"<br>
property "config_vector", "std::vector<std::string>"<br>
<br>
And then the yml file is:<br>
<br>
--- name:default<br>
# A configuration property (here, a std::string). Its value can be
retrieved<br>
# in the C++ code with # _config_value.get() and
_config_value.set(new_value).<br>
config_value: Hola<br>
# no documentation available for this property<br>
config_vector: [Hola, Adios, Buenas]<br>
<br>
It worked for me. Have a look to the attached screenshot.<br>
<br>
Regards,<br>
<br>
Javier.<br>
<br>
<br>
On 07/23/2013 06:51 PM, <a class="moz-txt-link-abbreviated" href="mailto:Martin.Azkarate@esa.int">Martin.Azkarate@esa.int</a> wrote:<br>
</div>
<blockquote
cite="mid:1296_1374598308_51EEB4A4_1296_6075_1_OF3E361C57.65F73C02-ONC1257BB1.005A6D8C-C1257BB1.005CA47C@esa.int"
type="cite"><font size="2" face="sans-serif">Dear all,</font>
<br>
<br>
<font size="2" face="sans-serif">I have a property in a component
of
the following defined structure:</font>
<br>
<br>
<font size="2" face="sans-serif">struct CanParams</font>
<br>
<font size="2" face="sans-serif">{</font>
<br>
<font size="2" face="sans-serif"> std::vector<int>
CanId;</font>
<br>
<font size="2" face="sans-serif">
std::vector<std::string>
Name;</font>
<br>
<font size="2" face="sans-serif">
std::vector<MotorType>
Type;</font>
<br>
<font size="2" face="sans-serif">}</font>
<br>
<br>
<font size="2" face="sans-serif">with</font>
<br>
<br>
<font size="2" face="sans-serif">enum MotorType</font>
<br>
<font size="2" face="sans-serif">{</font>
<br>
<font size="2" face="sans-serif"> WHEEL_DRIVE,</font>
<br>
<font size="2" face="sans-serif"> WHEEL_STEER,</font>
<br>
<font size="2" face="sans-serif"> WHEEL_WALK,</font>
<br>
<font size="2" face="sans-serif"> etc.</font>
<br>
<font size="2" face="sans-serif">}</font>
<br>
<br>
<font size="2" face="sans-serif">In the .yml configuration file I
set
the values for CanParams structure as follows:</font>
<br>
<br>
<font size="2" face="sans-serif">--- name:default</font>
<br>
<font size="2" face="sans-serif">can_parameters:</font>
<br>
<font size="2" face="sans-serif"> CanId:
[1,10,11,12, etc. ]</font>
<br>
<font size="2" face="sans-serif"> Name:
["WHEEL_DRIVE_FL","WHEEL_DRIVE_FR","WHEEL_DRIVE_CL",
etc. ]</font>
<br>
<font size="2" face="sans-serif"> Type:
[WHEEL_DRIVE,WHEEL_DRIVE,WHEEL_DRIVE, etc. ]</font>
<br>
<font size="2" face="sans-serif">num_nodes: 19</font>
<br>
<font size="2" face="sans-serif">etc.</font>
<br>
<br>
<br>
<font size="2" face="sans-serif">When applying this conf file it
shows
an error loading the .yml file, precisely when loading the Name
field.
I don't know if the nomenclature I am using is the right one, I
have tried
with single quotes, semicolon, etc but nome seems to work.
Attached an
screenshot of the error.</font>
<br>
<br>
<font size="3">Regards,</font>
<p><font size="2" color="#001fe2" face="Verdana">Martin Azkarate</font>
</p>
<p><font size="1" color="#8f8f8f" face="Verdana"><b>ESA - European
Space Agency</b><br>
Spanish Trainee, TEC-MMA - Automation and Robotics Section </font>
</p>
<p><font size="1" color="#8f8f8f" face="Verdana"><b>ESTEC -
European Space
research and TEchnology Centre</b><br>
Keplerlaan 1, PO Box 299 <br>
NL-2200 AG Noordwijk, The Netherlands <br>
<a class="moz-txt-link-abbreviated" href="mailto:Martin.Azkarate@esa.int">Martin.Azkarate@esa.int</a> | </font><a moz-do-not-send="true"
href="www.esa.int"><font size="1" color="#8f8f8f"
face="Verdana">www.esa.int</font></a><font size="1"
color="#8f8f8f" face="Verdana">
<br>
Tel +31 71 565 3480 | Mob +31 650 625 564 </font></p>
<pre>This message and any attachments are intended for the use of the addressee or addressees only. The unauthorised disclosure, use, dissemination or copying (either in whole or in part) of its content is not permitted. If you received this message in error, please notify the sender and delete it from your system. Emails can be altered and their integrity cannot be guaranteed by the sender.
Please consider the environment before printing this email.
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Rock-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Rock-dev@dfki.de">Rock-dev@dfki.de</a>
<a class="moz-txt-link-freetext" href="http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev">http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Javier Hidalgo Carrió
ESA - NPI Programme
Researcher
DFKI Bremen
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, Germany
<a class="moz-txt-link-freetext" href="http://robotik.dfki-bremen.de">http://robotik.dfki-bremen.de</a>
Phone:+49(0)421 17845 6661
Fax: +49(0)421 17845 4150
</pre>
</body>
</html>