[Rock-dev] Roby Bug Hunting Part #2
    Chris Mueller 
    christoph.mueller at dfki.de
       
    Tue Nov  6 17:59:24 CET 2012
    
    
  
Hey Sylvain,
here is another feedback to your latest commits in roby:
1) RuntimeError for setting Planning Descriptions via describe("..")
Seems not to work on my machine. If i comment out all describe, it works.
2) CORBA problems through startling local_process_server / default 
process_server in roby
FIXED (thanks to Alex commits in orocos.rb)
3) Here is maybe another misunderstanding i ran during some 
reimplementing of our methods.
class SuperiorTask < Roby::Task
     argument :variable, :default => 42
     script do
          # execute do
              var = self.variable
          # end
     end
end
- Is this actually possible?
- Is an execute block needed for getting the current argument value?
(Don't know if the script plan is evaluated at runtime or startup. If 
the last case hits, i expect it would store the default value though an 
error message is also reasonable).
* With execute block it seems to work.
* Without i get an error message, self.variable is not defined 
(method_missing? error).
This seems maybe obvious from the low-level perspective in roby but is 
maybe confusing if you know this similar use case with planning methods:
method(:superior_method)
      var = argument[:variable]
      script do
           # variable is known in this block
      end
end
Chris
    
    
More information about the Rock-dev
mailing list