[Rock-dev] Configuration file error

Alexander Duda Alexander.Duda at dfki.de
Wed Mar 14 17:14:30 CET 2012


On Wed, 2012-03-14 at 16:56 +0100, Javier Hidalgo Carrió wrote:
> When writing configuration files, we could do the following according
> with the rock documentation:
> In the list of configuration names, later values will override newer
> ones. So, if hokuyo.yml contains 
> --- name:default
> port: /dev/ttyS1
> remission_values: false
> --- name:with_remission
> remission_values: true
> 
> 
> and doing this
> 
> task = Orocos::TaskContext.get 'hokuyo'
> Orocos.apply_conf_file(task, 'hokuyo.yml', ['default', 'with_remission'])
> 
> 
> Then the resulting configuration, above, will be 
> 
> port: /dev/ttyS1
> remission_values: true
> 
> 
> 
> I have the following configuration values in my file:
> --- name:default
> #rad/s/sqrt(s)
> gyrorrw: 
>   data: 
>   - 2.65E-06
>   - 4.01E-06
>   - 5.19E-06
> 
> 
> #rad/sqrt(s)
> gyrorw: 
>   data: 
>   - 6.04E-05
>   - 6.94E-05
>   - 5.96E-05
> 
> 
> --- name:mti_xsens
> #rad/sqrt(s)
> gyrorw: 
>   data: 
>   - 0.0006898864
>   - 0.0007219069
>   - 0.0005708627
> 
> 
> doing this:
> 
> 
>  Orocos.conf.load_dir('configuration_file_path')
>  imumodel = p.task 'imumodel'
>  Orocos.conf.apply(imumodel, ['default', 'mti_xsens'])
> 
> 
> 
> and I get the following error:
> 
> 
> /home/likewise-open/DFKI/jhidalgocarrio/iMoby/iMoby-dev/tools/orocos.rb/lib/orocos/configurations.rb:189:in `merge_conf_array': cannot merge configuration: conflict in [0] between v1=6.04e-05 and v2=0.0006898864 (ArgumentError)
> 
> 
> 
> What am I  doing wrong?

It seems that arrays cannot be overwritten at the moment.
I do not know if this is intended or this is a bug.

For me merge_conf_array should not raise an error if override is set to
true.

If you need a solution very urgent. Just ping me.

Alex

> 
> Many thanks,
> 
> Javi.
> _______________________________________________
> Rock-dev mailing list
> Rock-dev at dfki.de
> http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev

-- 
Dipl.-Ing. Alexander Duda 
Unterwasserrobotik

DFKI Bremen
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, Germany

Phone: +49 (0)421 178-456620
Fax:   +49 (0)421 178-454150
E-Mail: alexander.duda at dfki.de

Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.:    DE 148646973
Steuernummer:  19/673/0060/3



More information about the Rock-dev mailing list