[Rock-dev] [rock] #259: orogen: default deployments cause #import_types_from(base) to be called on the typekit at compile time but not at runtime

rock noreply at opendfki.de
Wed Apr 24 15:35:17 CEST 2013


#259: orogen: default deployments cause #import_types_from(base) to be called on
the typekit at compile time but not at runtime
--------------------+------------------------------------
 Reporter:  stha02  |       Owner:  rock-dev-mailing-list
     Type:  defect  |      Status:  new
 Priority:  major   |   Milestone:
Component:  base    |  Resolution:
 Keywords:          |
--------------------+------------------------------------

Comment (by stha02):

 Any script causes the error (only the default deployment uses this task),
 e.g.:

 {{{
 require 'orocos'
 require 'readline'

 include Orocos
 Orocos.initialize

 Orocos.run 'spacebot_simulation',
         'spacebot_motioncontroller::Task' => 'controller' do
     Readline::readline("Press ENTER to exit ...")
 end
 }}}

 Error is
 {{{
 stefan at stefan-u:/opt/software_spacebot/simulation/orogen/spacebot_simulation$
 ruby scripts/run_spacebot_simulation.rb
 /opt/software_spacebot/tools/orogen/lib/orogen/gen/imports.rb:141:in
 `get': type /base/MotionCommand2D is not declared
 (Orocos::Generation::ConfigError)
         from
 /opt/software_spacebot/tools/orogen/lib/orogen/gen/imports.rb:141:in
 `find_type'
         from
 /opt/software_spacebot/tools/orogen/lib/orogen/gen/project.rb:565:in
 `find_type'
         from
 /opt/software_spacebot/tools/orogen/lib/orogen/gen/imports.rb:237:in
 `find_type'
         from
 /opt/software_spacebot/tools/orogen/lib/orogen/gen/project.rb:523:in
 `find_interface_type'
         from
 /opt/software_spacebot/tools/orogen/lib/orogen/spec/port.rb:75:in
 `initialize'
         from
 /opt/software_spacebot/tools/orogen/lib/orogen/spec/input_port.rb:8:in
 `initialize'
         from
 /opt/software_spacebot/tools/orogen/lib/orogen/spec/task_context.rb:958:in
 `new'
         from
 /opt/software_spacebot/tools/orogen/lib/orogen/spec/task_context.rb:958:in
 `input_port'
         from
 /opt/software_spacebot/install/share/orogen/spacebot_motioncontroller.orogen:16:in
 `eval_dsl_file_content'
         from
 /opt/software_spacebot/tools/orogen/lib/orogen/gen/project.rb:1013:in
 `instance_eval'
         from
 /opt/software_spacebot/tools/orogen/lib/orogen/gen/project.rb:1013:in
 `external_task_context'
         from
 /opt/software_spacebot/tools/orogen/lib/orogen/gen/project.rb:990:in
 `task_context'
         from
 /opt/software_spacebot/tools/orogen/lib/orogen/gen/imports.rb:270:in
 `task_context'
         from
 /opt/software_spacebot/tools/utilrb/lib/utilrb/kernel/load_dsl_file.rb:158:in
 `__send__'
         from
 /opt/software_spacebot/tools/utilrb/lib/utilrb/kernel/load_dsl_file.rb:158:in
 `method_missing'
         from
 /opt/software_spacebot/install/share/orogen/spacebot_motioncontroller.orogen:14:in
 `eval_dsl_file_content'
         from
 /opt/software_spacebot/tools/utilrb/lib/utilrb/kernel/load_dsl_file.rb:176:in
 `instance_eval'
         from
 /opt/software_spacebot/tools/utilrb/lib/utilrb/kernel/load_dsl_file.rb:176:in
 `dsl_exec_common'
         from
 /opt/software_spacebot/tools/utilrb/lib/utilrb/kernel/with_module.rb:45:in
 `instance_eval'
         from
 /opt/software_spacebot/tools/utilrb/lib/utilrb/kernel/with_module.rb:45:in
 `with_module'
         from
 /opt/software_spacebot/tools/utilrb/lib/utilrb/kernel/load_dsl_file.rb:169:in
 `dsl_exec_common'
         from
 /opt/software_spacebot/tools/utilrb/lib/utilrb/kernel/load_dsl_file.rb:34:in
 `load_dsl_filter_backtrace'
         from
 /opt/software_spacebot/tools/utilrb/lib/utilrb/kernel/load_dsl_file.rb:151:in
 `dsl_exec_common'
         from
 /opt/software_spacebot/tools/utilrb/lib/utilrb/kernel/load_dsl_file.rb:110:in
 `eval_dsl_file_content'
         from
 /opt/software_spacebot/tools/utilrb/lib/utilrb/kernel/load_dsl_file.rb:126:in
 `eval_dsl_file'
         from
 /opt/software_spacebot/tools/orogen/lib/orogen/gen/project.rb:1328:in
 `load'
         from
 /opt/software_spacebot/tools/orogen/lib/orogen/gen/imports.rb:229:in
 `load'
         from
 /opt/software_spacebot/tools/orogen/lib/orogen/gen/project.rb:1036:in
 `load_orogen_project'
         from
 /opt/software_spacebot/tools/orogen/lib/orogen/gen/project.rb:1081:in
 `load_task_library'
         from
 /opt/software_spacebot/tools/orogen/lib/orogen/gen/project.rb:1174:in
 `using_task_library'
         from
 /opt/software_spacebot/tools/orogen/lib/orogen/gen/project.rb:1142:in
 `using_project'
         from
 /opt/software_spacebot/tools/orocos.rb/lib/orocos/process.rb:237:in
 `initialize'
         from
 /opt/software_spacebot/tools/orocos.rb/lib/orocos/process.rb:432:in `new'
         from
 /opt/software_spacebot/tools/orocos.rb/lib/orocos/process.rb:432:in `run'
         from
 /opt/software_spacebot/tools/orocos.rb/lib/orocos/process.rb:431:in `each'
         from
 /opt/software_spacebot/tools/orocos.rb/lib/orocos/process.rb:431:in `run'
         from
 /opt/software_spacebot/tools/orocos.rb/lib/orocos/process.rb:429:in `each'
         from
 /opt/software_spacebot/tools/orocos.rb/lib/orocos/process.rb:429:in `run'
         from
 /opt/software_spacebot/tools/orocos.rb/lib/orocos/process.rb:74:in `run'
         from scripts/run_spacebot_simulation.rb:9
 }}}

-- 
Ticket URL: <https://rock.opendfki.de/ticket/259#comment:2>
rock <https://rock.opendfki.de>
rock: the robot construction kit


More information about the Rock-dev mailing list