[Rock-dev] uninitialized constant in simple log replay script

Leif Christensen leif.christensen at dfki.de
Fri Sep 6 15:05:57 CEST 2013


Am 06.09.2013 14:52, schrieb Sascha Arnold:
> Hi,
>> require 'orocos/log'
> should help.
That did the trick, thanks a lot.

But in general: what is the standard procedure of finding the right
require path?

- somehow (grep?, api?) find out where the ruby stuff used is defined
(in my case [...]/tools/orocos.rb/lib/orocos/log/replay.rb) and take the
directory path after lib?


> Best,
> Sascha
> 
> Am 06.09.2013 14:40, schrieb Leif Christensen:
>> Hi,
>>
>> this minimal example script should just print out some information + the
>> samples inside a logfile (not using vizkit):
>>
>>> require 'orocos'
>>> include Orocos
>>> Orocos.initialize
>>>
>>> if ARGV.size < 1
>>>     puts "usage: replay.rb <logfile>"
>>>     exit 0
>>> end
>>>
>>> logfile = ARGV[0]
>>> log = Orocos::Log::Replay.open(logfile)
>>> pp log.replayed_ports
>>> pp log.replayed_properties
>>>
>>> log.run do 
>>>   pp log.current_sample
>>> end
>> Error message is:
>> replay.rb:13:in `<main>': uninitialized constant Orocos::Log (NameError)
>>
>> Evironment is sourced, what is missing?
>>
>> LG,
>> Leif
>>
> 
> _______________________________________________
> Rock-dev mailing list
> Rock-dev at dfki.de
> http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev
> 

-- 
 Leif Christensen

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

 Phone: +49 (0)421 17845-4149
 Fax:   +49 (0)421 17845-4150
 E-Mail: leif.christensen 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