Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions bin/rock-instantiate
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,17 @@ Bundles.initialize

begin
cname = options[:task_model_name]+"__"+options[:configs].join
Orocos.run options[:task_model_name] => cname,
Orocos.run({options[:task_model_name] => cname},
:output => '/tmp/rock-instantiate.log',
:oro_logfile => '/tmp/rock-instantiate-oro.log' do
inst = Orocos.get cname
:oro_logfile => '/tmp/rock-instantiate-oro.log') do
inst = Orocos.get(cname)
begin
if options[:config_file]
Orocos.apply_conf(inst, options[:config_file], options[:configs])
Orocos.apply_conf(inst, options[:config_file], options[:configs], true)
else
Orocos.conf.apply(inst, options[:configs], true)
end
inst.configure
inst.configure()
rescue ArgumentError => err
puts "ERROR: Could not configure Task Context with config sections: " +
options[:configs].to_s() + ". The following Error was reported: \n"
Expand Down