<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
 </head><body style="">
 
 
  <div>
   Hello,
  </div> 
  <div>
   &#160;
  </div> 
  <div>
   I am working with the master branch just updated.
  </div> 
  <div>
   &#160;
  </div> 
  <div>
   Running this script:
  </div> 
  <div>
   &#160;
  </div> 
  <div>
   &#34;&#34;&#34;
  </div> 
  <div>
   require &#39;vizkit&#39;
   <br/>
   <br/>Orocos::CORBA.name_service.ip = &#34;seekurjr&#34;
   <br/>Orocos.initialize
   <br/>
   <br/># load GUI created with the Qt Designer
   <br/>widget = Vizkit.load &#34;gui/heading.ui&#34;
   <br/>widget.show
   <br/>
   <br/>
  </div> 
  <div>
   # connect the widget with the task &#34;simple_task&#34;
   <br/>widget.connect_to_task &#34;seekurjr/seekur_odometry&#34; do |task|
   <br/>
   <br/>
   <br/>&#160;&#160;&#160; task.port(&#34;odometry_samples&#34;).connect_to do |data,port_name|
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; widget.orientationView.update(data,port_name)
   <br/>&#160;&#160;&#160; end
   <br/>
   <br/>end
   <br/>
   <br/>
  </div> 
  <div>
   widget.connect_to_task &#34;seekurjr/seekur_corridor_servoing&#34; do |task|
   <br/>
   <br/>&#160;&#160;&#160; # generate a new sample each time the button is clicked
   <br/>&#160;&#160;&#160; # and show a message box if there is a connection error
   <br/>&#160;&#160;&#160; g = lambda{widget.headingSpinBox.value}
   <br/>&#160;&#160;&#160; c = lambda{|msg| Qt::MessageBox.warning(widget,&#34;ComErr&#34;,msg) if msg != &#34;OK&#34;}
   <br/>&#160;&#160;&#160; headingSendButton.connect SIGNAL(:clicked), PORT(:heading),:getter =&#62; g,:callback =&#62; c
   <br/>
   <br/>&#160;&#160;&#160; # disable the GUI until the task is reachable
   <br/>&#160;&#160;&#160; task.on_reachable {widget.setEnabled(true)}
   <br/>&#160;&#160;&#160; task.on_unreachable {widget.setEnabled(false)}
   <br/>end
   <br/>
   <br/>#run qt main loop
   <br/>Vizkit.exec
   <br/>&#34;&#34;&#34;
  </div> 
  <div>
   &#160;
  </div> 
  <div>
   Gives the following error when clicking the headingSendButton:
  </div> 
  <div>
   &#160;
  </div> 
  <div>
   &#160;
  </div> 
  <div>
   &#34;&#34;&#34;
  </div> 
  <div>
   /home/virgo/virgo_rock/tools/orocos.rb/lib/orocos/async/ports.rb:374:in `connect_to&#39;: wrong number of arguments (0 for 2) (ArgumentError)
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /home/virgo/virgo_rock/tools/orocos.rb/lib/orocos/async/ports.rb:374:in `call&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /home/virgo/virgo_rock/tools/orocos.rb/lib/orocos/async/ports.rb:374:in `write&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /home/virgo/virgo_rock/tools/utilrb/lib/utilrb/event_loop.rb:313:in `call&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /home/virgo/virgo_rock/tools/utilrb/lib/utilrb/event_loop.rb:313:in `defer&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /home/virgo/virgo_rock/tools/utilrb/lib/utilrb/event_loop.rb:161:in `call&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /home/virgo/virgo_rock/tools/utilrb/lib/utilrb/event_loop.rb:161:in `call&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /home/virgo/virgo_rock/tools/utilrb/lib/utilrb/event_loop.rb:612:in `step&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /home/virgo/virgo_rock/tools/utilrb/lib/utilrb/event_loop.rb:700:in `call&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /home/virgo/virgo_rock/tools/utilrb/lib/utilrb/event_loop.rb:700:in `handle_errors&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /home/virgo/virgo_rock/tools/utilrb/lib/utilrb/event_loop.rb:612:in `step&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /home/virgo/virgo_rock/gui/vizkit/ruby/lib/vizkit/vizkit.rb:125:in `exec&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /usr/lib/ruby/1.8/Qt/qtruby4.rb:2427:in `call&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /usr/lib/ruby/1.8/Qt/qtruby4.rb:2427:in `invoke&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /usr/lib/ruby/1.8/Qt/qtruby4.rb:469:in `qt_metacall&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /usr/lib/ruby/1.8/Qt/qtruby4.rb:469:in `method_missing&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /usr/lib/ruby/1.8/Qt/qtruby4.rb:469:in `exec&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /home/virgo/virgo_rock/gui/vizkit/ruby/lib/vizkit/vizkit.rb:129:in `exec&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from heading_viz.rb:36
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /home/virgo/virgo_rock/tools/utilrb/lib/utilrb/event_loop.rb:619:in `step&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /home/virgo/virgo_rock/gui/vizkit/ruby/lib/vizkit/vizkit.rb:125:in `exec&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /usr/lib/ruby/1.8/Qt/qtruby4.rb:2427:in `call&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /usr/lib/ruby/1.8/Qt/qtruby4.rb:2427:in `invoke&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /usr/lib/ruby/1.8/Qt/qtruby4.rb:469:in `qt_metacall&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /usr/lib/ruby/1.8/Qt/qtruby4.rb:469:in `method_missing&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /usr/lib/ruby/1.8/Qt/qtruby4.rb:469:in `exec&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from /home/virgo/virgo_rock/gui/vizkit/ruby/lib/vizkit/vizkit.rb:129:in `exec&#39;
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from heading_viz.rb:36
  </div> 
  <div>
   &#34;&#34;&#34;
  </div> 
  <div>
   &#160;
  </div> 
  <div>
   &#160;
  </div> 
  <div>
   Thanks,
  </div> 
  <div>
   Ra&#250;l
  </div>
 
</body></html>