[Rock-dev] configuration of dynamic properties

Javier Hidalgo Carrió javier.hidalgo_carrio at dfki.de
Wed Jul 24 09:50:59 CEST 2013


Hello Martin,

Did you try to remove the quotes?
I have this in the orogen:


  # A configuration property (here, a std::string). Its value can be 
retrieved
     # in the C++ code with # _config_value.get() and 
_config_value.set(new_value).
     property "config_value", "/std/string", "Hola"
     property "config_vector", "std::vector<std::string>"

And then the yml file is:

--- name:default
# A configuration property (here, a std::string). Its value can be retrieved
# in the C++ code with # _config_value.get() and 
_config_value.set(new_value).
config_value: Hola
# no documentation available for this property
config_vector: [Hola, Adios, Buenas]

It worked for me. Have a look to the attached screenshot.

Regards,

Javier.


On 07/23/2013 06:51 PM, Martin.Azkarate at esa.int wrote:
> Dear all,
>
> I have a property in a component of the following defined structure:
>
> struct CanParams
> {
>         std::vector<int> CanId;
> std::vector<std::string> Name;
> std::vector<MotorType> Type;
> }
>
> with
>
> enum MotorType
> {
>         WHEEL_DRIVE,
>         WHEEL_STEER,
>         WHEEL_WALK,
>         etc.
> }
>
> In the .yml configuration file I set the values for CanParams 
> structure as follows:
>
> --- name:default
> can_parameters:
>         CanId: [1,10,11,12, etc. ]
>         Name: ["WHEEL_DRIVE_FL","WHEEL_DRIVE_FR","WHEEL_DRIVE_CL", etc. ]
>         Type: [WHEEL_DRIVE,WHEEL_DRIVE,WHEEL_DRIVE, etc. ]
> num_nodes: 19
> etc.
>
>
> 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.
>
> Regards,
>
> Martin Azkarate
>
> *ESA - European Space Agency*
> Spanish Trainee, TEC-MMA - Automation and Robotics Section
>
> *ESTEC - European Space research and TEchnology Centre*
> Keplerlaan 1, PO Box 299
> NL-2200 AG Noordwijk, The Netherlands
> Martin.Azkarate at esa.int | www.esa.int
> Tel +31 71 565 3480 | Mob +31 650 625 564
>
> 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.
>
>
> _______________________________________________
> Rock-dev mailing list
> Rock-dev at dfki.de
> http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev


-- 
Javier Hidalgo Carrió
ESA - NPI Programme
Researcher

DFKI Bremen
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, Germany
http://robotik.dfki-bremen.de

Phone:+49(0)421 17845 6661
Fax: +49(0)421 17845 4150

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.dfki.de/pipermail/rock-dev/attachments/20130724/ab153060/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2013-07-24 09:45:21.png
Type: image/png
Size: 395308 bytes
Desc: not available
Url : http://www.dfki.de/pipermail/rock-dev/attachments/20130724/ab153060/attachment-0001.png 


More information about the Rock-dev mailing list