[Rock-dev] CameraWidget

Alexander Duda Alexander.Duda at dfki.de
Fri Nov 16 16:34:21 CET 2012


On 11/16/2012 12:07 PM, Chris Mueller wrote:
> Hi,
>
> i have currently some problems with the camera widget used through
> scripting via vizkit.
>
> 1) It always shows a black image through (tested on 640x320 and 320x240
> configured camera tasks)
>
> camera = TaskContext.get 'task'
> Vizkit.display camera.frame
>
> 2) if i pickup the corresponding data with:
>
> 19 frame_reader = camera.frame.reader :type => :buffer, :size => 10
> 20
> 21 while true
> 22   sample = frame_reader.read
> 23
> 24   if sample
> 25     puts "#{sample.time}, #{sample.image.size}"
> 26 end
> 27 end
>
> Output:
> 2012-11-16 12:02:15 +0100, 24290
> 2012-11-16 12:02:15 +0100, 24290
> 2012-11-16 12:02:15 +0100, 24290
> 2012-11-16 12:02:15 +0100, 24290
> 2012-11-16 12:02:15 +0100, 24290
> ...
>
> Therefore the image data should be received successfully to my local
> machine.
>
> 3) It worked 2-3 weeks ago where the camera widget has been popped up
> two times sequencely at start up. One has shown the correct image.
> The other one has been closed immediately.
>
> Chris
solved on master.
thx for the report

Alex

-- 
Dipl.-Ing. Alexander Duda
Unterwasserrobotik

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

Phone: +49 (0)421 178-456620
Fax:   +49 (0)421 178-454150
E-Mail: alexander.duda 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