<!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>
"headingSendButton.connect SIGNAL(:clicked), PORT(:heading),:getter => g,:callback => c".
</div>
<div>
 
</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>
 
</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>
 
</div>
<div>
"""
</div>
</div>
<div>
require 'vizkit'
<br/>
<br/>Orocos::CORBA.name_service.ip = "seekurjr"
<br/>Orocos.initialize
<br/>
<br/># load GUI created with the Qt Designer
<br/>widget = Vizkit.load "gui/heading.ui"
<br/>widget.show
<br/>
<br/># connect the widget with the task "simple_task"
<br/>widget.connect_to_task "seekur_odometry" do |task|
<br/>
<br/>    task.port("odometry_samples").on_data do |data|
<br/>        widget.orientationView.update(data,"odometry_samples")
<br/>    end
<br/>
<br/>end
<br/>
<br/>widget.connect_to_task "seekur_corridor_servoing" do |task|
<br/>
<br/>    # generate a new sample each time the button is clicked
<br/>    # and show a message box if there is a connection error
<br/>    g = lambda{widget.headingSpinBox.value}
<br/>    c = lambda{|msg| Qt::MessageBox.warning(widget,"ComErr",msg) if msg != "OK"}
<br/>    headingSendButton.connect SIGNAL(:clicked), PORT(:heading),:getter => g,:callback => c
<br/>
<br/>    # disable the GUI until the task is reachable
<br/>    task.on_reachable {widget.setEnabled(true)}
<br/>    task.on_unreachable {widget.setEnabled(false)}
<br/>end
<br/>
<br/>#run qt main loop
<br/>Vizkit.exec
<br/>
<br/>
</div>
<div>
"""
</div>
<div>
 
</div>
<div>
 
</div>
<div>
Have a nice day,
</div>
<div>
Raúl
</div>
</body></html>