Your nameservice is not responding. Have you tried to rest it? Are the network settings correct? You should also check if orops is working.<br><br>Greets Alex <br><br>Christoph Mueller <christoph.mueller@dfki.de> schrieb:<br><br>
 
 
  <div>
   Currently checking this fix let me run into a CORBA system Exception. 
  </div> 
  <div>
    
  </div> 
  <div>
   Simple run script:
  </div> 
  <div>
    
  </div> 
  <div>
      4 require 'orocos'
   <br/>  5 require 'vizkit'
   <br/>  6 include Orocos
   <br/>  7 Orocos::CORBA.call_timeout = 40_000
   <br/>  8 Orocos::CORBA.connect_timeout = 10_000
   <br/>  9 Orocos.name_service << Orocos::CORBA::NameService.new("10.250.8.24")
   <br/> 10 Orocos.initialize
   <br/> 11 
   <br/> 12 camera = TaskContext.get 'payloaditem_3_cam_emi'
   <br/> 13 
   <br/> 14 Vizkit.display camera.frame
   <br/> 15 Vizkit.exec
   <br/>
   <br/>
  </div> 
  <div>
   <br/>Output:
  </div> 
  <div>
    
  </div> 
  <div>
   Vizkit[WARN]: Corba call timout is set to 40000 and connect timeout to 10000
   <br/>Vizkit[WARN]: This might block your script during connection problems.
   <br/>Vizkit[WARN]: ReaderWriterProxy: error while proxing the port: CORBA system exception
   <br/>Vizkit[WARN]:   /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:517:in `do_task_context_names'
   <br/>Vizkit[WARN]:   /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:517:in `names'
   <br/>Vizkit[WARN]:   /stuff/chris/tools/orocos.rb/lib/orocos/corba.rb:102:in `refine_exceptions'
   <br/>Vizkit[WARN]:   /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:516:in `names'
   <br/>Vizkit[WARN]:   /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:309:in `names'
   <br/>Vizkit[WARN]:   /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:308:in `collect'
   <br/>Vizkit[WARN]:   /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:308:in `names'
   <br/>Vizkit[WARN]:   /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:45:in `task_names'
   <br/>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/task_proxy.rb:608:in `reachable?'
   <br/>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/task_proxy.rb:89:in `__reader_writer'
   <br/>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/task_proxy.rb:51:in `initialize'
   <br/>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/task_proxy.rb:205:in `initialize'
   <br/>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/task_proxy.rb:429:in `new'
   <br/>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/task_proxy.rb:429:in `reader'
   <br/>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/oqconnection.rb:53:in `initialize'
   <br/>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/oqconnection.rb:204:in `new'
   <br/>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/oqconnection.rb:204:in `connect_to_widget'
   <br/>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/oqconnection.rb:220:in `connect_to'
   <br/>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/vizkit.rb:53:in `setup_widget'
   <br/>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/vizkit.rb:77:in `widget_from_options'
   <br/>Vizkit[WARN]:   /stuff/chris/gui/vizkit/ruby/lib/vizkit/vizkit.rb:92:in `display'
   <br/>Vizkit[WARN]:   display_remote_camera.rb:14
   <br/>/stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:517:in `do_task_context_names': CORBA system exception (Orocos::CORBAError)
   <br/>    from /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:517:in `names'
   <br/>    from /stuff/chris/tools/orocos.rb/lib/orocos/corba.rb:102:in `refine_exceptions'
   <br/>    from /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:516:in `names'
   <br/>    from /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:309:in `names'
   <br/>    from /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:308:in `collect'
   <br/>    from /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:308:in `names'
   <br/>    from /stuff/chris/tools/orocos.rb/lib/orocos/name_service.rb:45:in `task_names'
   <br/>    from /stuff/chris/gui/vizkit/ruby/lib/vizkit/task_proxy.rb:608:in `ping'
   <br/>    from /stuff/chris/gui/vizkit/ruby/lib/vizkit/task_proxy.rb:540:in `__reconnect'
   <br/>    from /stuff/chris/gui/vizkit/ruby/lib/vizkit/task_proxy.rb:562:in `__change_name'
   <br/>    from /stuff/chris/gui/vizkit/ruby/lib/vizkit/vizkit.rb:135:in `exec'
   <br/>    from display_remote_camera.rb:15
   <br/>
   <br/>
  </div> 
  <div>
   Chris
  </div> 
  <div>
    
  </div> 
  <div>
   <br/>Alexander Duda <Alexander.Duda@dfki.de> hat am 16. November 2012 um 16:34 geschrieben:
   <br/>> On 11/16/2012 12:07 PM, Chris Mueller wrote:
   <br/>> > Hi,
   <br/>> >
   <br/>> > i have currently some problems with the camera widget used through
   <br/>> > scripting via vizkit.
   <br/>> >
   <br/>> > 1) It always shows a black image through (tested on 640x320 and 320x240
   <br/>> > configured camera tasks)
   <br/>> >
   <br/>> > camera = TaskContext.get 'task'
   <br/>> > Vizkit.display camera.frame
   <br/>> >
   <br/>> > 2) if i pickup the corresponding data with:
   <br/>> >
   <br/>> > 19 frame_reader = camera.frame.reader :type => :buffer, :size => 10
   <br/>> > 20
   <br/>> > 21 while true
   <br/>> > 22 sample = frame_reader.read
   <br/>> > 23
   <br/>> > 24 if sample
   <br/>> > 25 puts "#{sample.time}, #{sample.image.size}"
   <br/>> > 26 end
   <br/>> > 27 end
   <br/>> >
   <br/>> > Output:
   <br/>> > 2012-11-16 12:02:15 +0100, 24290
   <br/>> > 2012-11-16 12:02:15 +0100, 24290
   <br/>> > 2012-11-16 12:02:15 +0100, 24290
   <br/>> > 2012-11-16 12:02:15 +0100, 24290
   <br/>> > 2012-11-16 12:02:15 +0100, 24290
   <br/>> > ...
   <br/>> >
   <br/>> > Therefore the image data should be received successfully to my local
   <br/>> > machine.
   <br/>> >
   <br/>> > 3) It worked 2-3 weeks ago where the camera widget has been popped up
   <br/>> > two times sequencely at start up. One has shown the correct image.
   <br/>> > The other one has been closed immediately.
   <br/>> >
   <br/>> > Chris
   <br/>> solved on master.
   <br/>> thx for the report
   <br/>> 
   <br/>> Alex
   <br/>> 
   <br/>
   <br/>
  </div>