[Rock-dev] roby shell

Sylvain Joyeux sylvain.joyeux at dfki.de
Mon Jan 9 15:16:37 CET 2012


On 01/09/2012 02:49 PM, Chris Müller wrote:
>    def self.inherited(klass)
>         puts "#{klass}"
>         Task.all_models<<  klass
>    end
Wrong spot. inherited is called at class creation (that's a Ruby 
feature), before the class gets properly initialized, which is why #to_s 
and #name fails there.

#remote_name is defined and used for models that are available remotely, 
but not locally. It gets created and initialized in anon_model_factory 
in roby/distributed/protocol.rb:409, which is called by 
DRobyModel.local_model

To track it down, I would look in those two methods to display the data 
stored in the ancestors array. That should give a hint as to what causes 
the problem.
-- 
Sylvain Joyeux (Dr.Ing.)
Space & Security Robotics

!!! Achtung, neue Telefonnummer!!!

Standort Bremen:
DFKI GmbH
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, Germany

Phone: +49 (0)421 178-454136
Fax:   +49 (0)421 218-454150
E-Mail: robotik at dfki.de

Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.:    DE 148646973
Steuernummer:  19/673/0060/3
-----------------------------------------------------------------------


More information about the Rock-dev mailing list