[Rock-dev] Problem with connect to

Alexander Duda Alexander.Duda at dfki.de
Mon Apr 29 18:40:15 CEST 2013


On 04/29/2013 06:25 PM, Sylvain Joyeux wrote:
> On 04/29/2013 06:22 PM, Sylvain Joyeux wrote:
>> On 04/29/2013 05:27 PM, Alexander Duda wrote:
>>> Have a look at
>>> http://www.rock-robotics.org/master/documentation/graphical_user_interface/200_simple_gui.html 
>>>
>>> for an overview how to use the async API.
>>>
>>> In the particular case use either
>>>
>>> task.port("odometry_samples").on_data do |data|
>>>      widget.orientationView.update(data,"odometry_samples")
>>> end
>>>
>>> or the connect logic:
>>> l = lambda do |sample|
>>>      widget.orientationView.update(sample,"odometry_samples")
>>> end
>>> connect PORT(:odometry_samples),l
>> Couldn't we then implement #connect_to(&block) by calling the connect
>> logic, i.e.
>>
>>     def connect_to(&block)
>>         task.connect(task.PORT(name), block)
>>     end
> Forget about my comment ... connect_to(&block) was an old vizkit 
> thing, it is now replaced by on_data, is that right ?
>
> Sylvain

That's correct.

Alex




-- 
Dipl.-Ing. Alexander Duda
Unterwasserrobotik

DFKI Bremen
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, Germany

Phone: +49 (0)421 178-456620
Fax:   +49 (0)421 178-454150
E-Mail: alexander.duda at dfki.de

Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.:    DE 148646973
Steuernummer:  19/673/0060/3



More information about the Rock-dev mailing list