[Rock-dev] CameraWidget

Alexander Duda alexander.duda at dfki.de
Tue Nov 20 19:32:32 CET 2012


Your nameservice is not responding. Have you tried to rest it? Are the network settings correct? You should also check if orops is working.

Greets Alex 

Christoph Mueller <christoph.mueller at dfki.de> schrieb:

>Currently checking this fix let me run into a CORBA system Exception.
>
>Simple run script:
>
>   4 require 'orocos'
>  5 require 'vizkit'
>  6 include Orocos
>  7 Orocos::CORBA.call_timeout = 40_000
>  8 Orocos::CORBA.connect_timeout = 10_000
>  9 Orocos.name_service << Orocos::CORBA::NameService.new("10.250.8.24")
> 10 Orocos.initialize
> 11
> 12 camera = TaskContext.get 'payloaditem_3_cam_emi'
> 13
> 14 Vizkit.display camera.frame
> 15 Vizkit.exec
>
>
>Output:
>
>Vizkit[WARN]: Corba call timout is set to 40000 and connect timeout to 10000
>Vizkit[WARN]: This might block your script during connection problems.
>Vizkit[WARN]: ReaderWriterProxy: error while proxing the port: CORBA system
>exception
>Vizkit[WARN]:   /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:517:in
>`do_task_context_names'
>Vizkit[WARN]:   /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:517:in
>`names'
>Vizkit[WARN]:   /stuff/chris/tools/orocos.rb/lib/orocos/corba.rb:102:in
>`refine_exceptions'
>Vizkit[WARN]:   /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:516:in
>`names'
>Vizkit[WARN]:   /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:309:in
>`names'
>Vizkit[WARN]:   /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:308:in
>`collect'
>Vizkit[WARN]:   /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:308:in
>`names'
>Vizkit[WARN]:   /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:45:in
>`task_names'
>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/task_proxy.rb:608:in
>`reachable?'
>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/task_proxy.rb:89:in
>`__reader_writer'
>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/task_proxy.rb:51:in
>`initialize'
>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/task_proxy.rb:205:in
>`initialize'
>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/task_proxy.rb:429:in
>`new'
>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/task_proxy.rb:429:in
>`reader'
>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/oqconnection.rb:53:in
>`initialize'
>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/oqconnection.rb:204:in
>`new'
>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/oqconnection.rb:204:in
>`connect_to_widget'
>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/oqconnection.rb:220:in
>`connect_to'
>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/vizkit.rb:53:in
>`setup_widget'
>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/vizkit.rb:77:in
>`widget_from_options'
>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/vizkit.rb:92:in
>`display'
>Vizkit[WARN]:   display_remote_camera.rb:14
>/stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:517:in
>`do_task_context_names': CORBA system exception (Orocos::CORBAError)
>    from /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:517:in `names'
>    from /stuff/chris/tools/orocos.rb/lib/orocos/corba.rb:102:in
>`refine_exceptions'
>    from /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:516:in `names'
>    from /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:309:in `names'
>    from /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:308:in
>`collect'
>    from /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:308:in `names'
>    from /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:45:in
>`task_names'
>    from /stuff/chris/gui/vizkit/ruby/lib/vizkit/task_proxy.rb:608:in `ping'
>    from /stuff/chris/gui/vizkit/ruby/lib/vizkit/task_proxy.rb:540:in
>`__reconnect'
>    from /stuff/chris/gui/vizkit/ruby/lib/vizkit/task_proxy.rb:562:in
>`__change_name'
>    from /stuff/chris/gui/vizkit/ruby/lib/vizkit/vizkit.rb:135:in `exec'
>    from display_remote_camera.rb:15
>
>Chris
>
>
>Alexander Duda <Alexander.Duda at dfki.de> hat am 16. November 2012 um 16:34
>geschrieben:
>> 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
>>
>_______________________________________________
>Rock-dev mailing list
>Rock-dev at dfki.de
>http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.dfki.de/pipermail/rock-dev/attachments/20121120/ea7a0dde/attachment-0001.htm 


More information about the Rock-dev mailing list