rock-core / gui-vizkit

Rock (Robot Construction Kit) Ruby-based library to build GUIs that interact with a Rock system
http://rock-robotics.org/documentation/graphical_user_interface/index.html
5 stars 16 forks source link

orogen_loader: OroGen::TaskModelNotFound when encountering a configuration file for which no model exists #4

Closed goldhoorn closed 10 years ago

goldhoorn commented 10 years ago

On the orogen_loader setup i got the following error:

[08:28:46 goldhoorn scripts]$ rock-display 
/home/goldhoorn/dev-avalon/tools/utilrb/lib/utilrb/pkgconfig.rb:460: warning: Insecure world writable dir /opt/Xilinx in PATH, mode 040777
Xlib:  extension "RANDR" missing on display ":0".
Bundles[INFO]: Active bundles: avalon, rock, rock.dfki, rock_auv
/home/goldhoorn/dev-avalon/tools/orogen/lib/orogen/loaders/base.rb:156:in `task_model_from_name': no task model avalon_simulation::Actuators is registered (OroGen::TaskModelNotFound)
    from /home/goldhoorn/dev-avalon/tools/orocos.rb/lib/orocos/configurations.rb:661:in `load_file'
    from /home/goldhoorn/dev-avalon/tools/orocos.rb/lib/orocos/configurations.rb:622:in `block in load_dir'
    from /home/goldhoorn/dev-avalon/tools/orocos.rb/lib/orocos/configurations.rb:618:in `glob'
    from /home/goldhoorn/dev-avalon/tools/orocos.rb/lib/orocos/configurations.rb:618:in `load_dir'
    from /home/goldhoorn/dev-avalon/base/scripts/lib/rock/bundles.rb:343:in `block in load'
    from /home/goldhoorn/dev-avalon/base/scripts/lib/rock/bundles.rb:342:in `each'
    from /home/goldhoorn/dev-avalon/base/scripts/lib/rock/bundles.rb:342:in `load'
    from /home/goldhoorn/dev-avalon/base/scripts/lib/rock/bundles.rb:424:in `initialize'
    from /home/goldhoorn/dev-avalon/gui/vizkit/bin/rock-display:65:in `<main>'

but the module should be build successfull. Even the module is not (yet?) build rock-display should fallback to CORBA introspection or should ignore this task and not completly shutdown.

doudou commented 10 years ago

Ideally, vizkit should (1) not load the configuration files at startup time and (2) manually load them when the user tries to apply configuration(s) using the model that is assigned on the task. That would involve actually being able to build an orogen model from a running task (something for which there is currently no API).

In any case, you fixed the actual bug in rock-core/tools-orocosrb#7, would have been great to mention it there.

goldhoorn commented 10 years ago

Fixed by https://github.com/rock-core/tools-orocosrb/pull/7