[Rock-dev] [rock] #315: NEXT: undefined method call in method 'method _missing'

Raul Dominguez Raul.Dominguez at dfki.de
Mon Aug 19 17:59:34 CEST 2013


Hello again,

On 08/19/2013 03:14 PM, Raul Dominguez wrote:
> On 08/19/2013 02:58 PM, Sylvain Joyeux wrote:
>> The script context is evaluated at loading time. This means that you
>> *must* have Types::Base::MotionCommand2D available when the file is loaded.
>>
>> To make sure of that, you have to do
>>
>> import_types_from 'base'
>>
>> at the top of the file
> Same  error after including the import line.
I included this line and also changed
Types::Base::MotionCommand2D   to    Base::MotionCommand2D
and now the error has moved to:

/home/rdominguez/Workspace_virgo/VirGo4/tools/utilrb/lib/utilrb/kernel/with_module.rb:28:in 
`const_missing': uninitialized constant ForwardMotion::Base (NameError)

with this backtrace:

= Backtrace
|
| 
/home/rdominguez/Workspace_virgo/VirGo4/tools/utilrb/lib/utilrb/kernel/with_module.rb:28:in 
`const_missing'
| 
/home/rdominguez/Workspace_virgo/VirGo4/bundles/virgo/models/tasks/motion.rb:21:in 
`block in <class:ForwardMotion>'
| 
/home/rdominguez/Workspace_virgo/VirGo4/tools/roby/lib/roby/task_scripting.rb:177:in 
`instance_eval'
| 
/home/rdominguez/Workspace_virgo/VirGo4/tools/roby/lib/roby/task_scripting.rb:177:in 
`load'
| 
/home/rdominguez/Workspace_virgo/VirGo4/tools/roby/lib/roby/task_scripting.rb:91:in 
`load'
| 
/home/rdominguez/Workspace_virgo/VirGo4/tools/roby/lib/roby/task_scripting.rb:563:in 
`script'
| 
/home/rdominguez/Workspace_virgo/VirGo4/bundles/virgo/models/tasks/motion.rb:14:in 
`<class:ForwardMotion>'
| 
/home/rdominguez/Workspace_virgo/VirGo4/bundles/virgo/models/tasks/motion.rb:3:in 
`<top (required)>'
| 
/home/rdominguez/Workspace_virgo/VirGo4/tools/roby/lib/roby/app.rb:774:in `require'
| 
/home/rdominguez/Workspace_virgo/VirGo4/tools/roby/lib/roby/app.rb:774:in `require'
| 
/home/rdominguez/Workspace_virgo/VirGo4/tools/roby/lib/roby/app.rb:798:in `block 
in require_models'
| 
/home/rdominguez/Workspace_virgo/VirGo4/tools/roby/lib/roby/app.rb:797:in `each'
| 
/home/rdominguez/Workspace_virgo/VirGo4/tools/roby/lib/roby/app.rb:797:in `require_models'
| 
/home/rdominguez/Workspace_virgo/VirGo4/tools/roby/lib/roby/app.rb:921:in `setup'
| 
/home/rdominguez/Workspace_virgo/VirGo4/tools/roby/lib/roby/app/scripts/run.rb:31:in 
`block in <top (required)>'
| 
/home/rdominguez/Workspace_virgo/VirGo4/tools/roby/lib/roby/exceptions.rb:376:in 
`display_exception'
| 
/home/rdominguez/Workspace_virgo/VirGo4/tools/roby/lib/roby/app/scripts/run.rb:30:in 
`<top (required)>'
|   /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
|   /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
|   /home/rdominguez/Workspace_virgo/VirGo4/tools/roby/bin/roby:7:in 
`<main>'
=

The error is still in the initialization. I guess I still miss something.

>> I am a bit surprised by this file, by the way. It looks very much like
>> rock-roby code (not syskit code). The Srv:: stuff is definitely from
>> rock-roby
>>
> The file was last edited the 31-01-2013 by Chris Mueller.
>
>

-- 
  Raul Dominguez (M.Sc.)
  Space Robotics

  Universität Bremen
  FB 3 - Mathematik und Informatik
  AG Robotik
  Robert-Hooke-Straße 5
  28359 Bremen, Germany

  Tel.:     +49 421 178 45-6617
  Zentrale: +49 421 178 45-6611
  Fax:      +49 421 178 45-4150
  E-Mail:   Raul.Dominguez at uni-bremen.de

  Weitere Informationen: http://www.informatik.uni-bremen.de/robotik



More information about the Rock-dev mailing list