[Rock-dev] Configuration file error

Javier Hidalgo Carrió javier.hidalgo_carrio at dfki.de
Wed Mar 14 16:56:55 CET 2012


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?

Many thanks,

Javi.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.dfki.de/pipermail/rock-dev/attachments/20120314/1073046d/attachment.htm 


More information about the Rock-dev mailing list