[Rock-dev] [rock] #169: Orocos::RobyPlugin::TaskScripting Refactoring Bug

rock noreply at opendfki.de
Wed May 16 13:55:58 CEST 2012


#169: Orocos::RobyPlugin::TaskScripting Refactoring Bug
------------------------------+-----------------------------------
 Reporter:  allan.conquest@…  |      Owner:  rock-dev-mailing-list
     Type:  defect            |     Status:  new
 Priority:  blocker           |  Milestone:
Component:  toolchain         |   Keywords:  roby TaskScripting
------------------------------+-----------------------------------
 There seems to have happened an error around this refactoring commit in
 tools/orocos.rb: eebf41b20881c20d630a73f6c4bd7430daf39391 "roby: adapt to
 the renamed classes in Roby::TaskScripting" from 2012-03-20 18:30:54.

 undefined local variable or method `script' for
 #<Roby::TaskScripting::Script:0x7fd7e7bee918>
 |     from
 /home/allan/dev/avalon/next/tools/orocos.rb/lib/orocos/roby/task_scripting.rb:78:in
 `data_reader'

 This is present on next and master. The error emerges when I call  for
 example this planning method from the shell:


 {{{
     method(:test) do
         control = self.relative_position_control
         control.script do
             data_reader 'orientation', ['orientation_with_z',
 'orientation_z_samples']
             data_writer 'motion_command', ['controller',
 'motion_commands']

             execute do
                 Plan.info "bla"
             end

             emit :success
         end
     end
 }}}

 I would appreciate a bugfix on next.

 This is the full error message:


 {{{
 localhost:48902 *   t = test!
 => #<service Roby::Task:0x7f7f842eaf58{}[]>
 localhost:48902 >
 [1] test! started to plan
 = planning test failed with
 | cannot develop a () method
 |     from
 /home/allan/dev/avalon/next/tools/roby/lib/roby/planning/task.rb:154:in
 `value'
 |     from
 /home/allan/dev/avalon/next/tools/roby/lib/roby/planning/task.rb:154:in
 the polling handler
 |     from
 /home/allan/dev/avalon/next/tools/utilrb/lib/utilrb/module/inherited_enumerable.rb:20:in
 `to_proc'
 |     from scripts/run:7
 |
 | planning method test:4() failed
 | /home/allan/dev/avalon/next/tools/roby/lib/roby/task_scripting.rb:485:in
 `method_missing': undefined local variable or method `script' for
 #<Roby::TaskScripting::Script:0x7f7f842c20a8>
 |     from
 /home/allan/dev/avalon/next/tools/orocos.rb/lib/orocos/roby/task_scripting.rb:78:in
 `data_reader'
 |     from ./planners/allan_test.rb:76:in `m4'
 |     from ./planners/allan_test.rb:75:in `m4'
 |     from
 /home/allan/dev/avalon/next/tools/utilrb/lib/utilrb/unbound_method/call.rb:5:in
 `call'
 |     from
 /home/allan/dev/avalon/next/tools/utilrb/lib/utilrb/unbound_method/call.rb:5:in
 `call'
 |     from
 /home/allan/dev/avalon/next/tools/roby/lib/roby/planning/task.rb:111:in
 command for 'start'
 |     from
 /home/allan/dev/avalon/next/tools/roby/lib/roby/planning/task.rb:109:in
 command for 'start'
 |     from scripts/run:7
 |
 }}}

-- 
Ticket URL: <http://rock.opendfki.de/ticket/169>
rock <http://rock.opendfki.de>
rock: the robot construction kit


More information about the Rock-dev mailing list