<!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>
   I think that the problem is comming from the line
  </div> 
  <div>
   &#34;headingSendButton.connect SIGNAL(:clicked), PORT(:heading),:getter =&#62; g,:callback =&#62; c&#34;.
  </div> 
  <div>
   &#160;
  </div> 
  <div>
   The widget loads correctly and I get the data from the task running on the robot (before too), but when I press the send button in the widget, the widget crashes with the same error as before.
  </div> 
  <div>
   &#160;
  </div> 
  <div> 
   <div>
    I corrected some parts of the script but I still get the same error. Here is the current state of the script once changed the connect_to for on_data.
   </div> 
   <div>
    &#160;
   </div> 
   <div>
    &#34;&#34;&#34; 
   </div> 
  </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/># connect the widget with the task &#34;simple_task&#34;
   <br/>widget.connect_to_task &#34;seekur_odometry&#34; do |task|
   <br/>
   <br/>&#160;&#160;&#160; task.port(&#34;odometry_samples&#34;).on_data do |data|
   <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; widget.orientationView.update(data,&#34;odometry_samples&#34;)
   <br/>&#160;&#160;&#160; end
   <br/>
   <br/>end
   <br/>
   <br/>widget.connect_to_task &#34;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/>
   <br/>
  </div> 
  <div>
   &#34;&#34;&#34;
  </div> 
  <div>
   &#160;
  </div> 
  <div>
   &#160;
  </div> 
  <div>
   Have a nice day,
  </div> 
  <div>
   Ra&#250;l
  </div>
 
</body></html>