[Rock-dev] Fwd: Howto get access to properties?

Alexander Duda Alexander.Duda at dfki.de
Mon Sep 9 14:23:53 CEST 2013


> Subject: 	[Rock-dev] Howto get access to properties?
> Date: 	Thu, 22 Aug 2013 15:41:33 +0200
> From: 	Matthias Goldhoorn <matthias.goldhoorn at dfki.de>
> To: 	rock >> "rock-dev at dfki.de" <rock-dev at dfki.de>
>
>
>
> The new async api should be used for gui's
>
> however how could be an Async Property be readed or written?
>
> http://www.rock-robotics.org/master/documentation/graphical_user_interface/300_displaying_logfiles.html
>
> does not explain it
>
> example
>
> t = some_async_task
> p = t.property("a")
>
> failes:
> p = 5
Async objects have the same interface like the corresponding sync ones 
but the possibility to give a callback if the the method shall 
asynchronously be called.

sync call:
p.write(val)

async call:
p.write(val) do |result,error|
     if error
         raise
     end
end

Greets
Alex
>
> -- 
>    Dipl.-Inf. Matthias Goldhoorn
>    Space and Underwater Robotic
>
>    Universität Bremen
>    FB 3 - Mathematik und Informatik
>    AG Robotik
>    Robert-Hooke-Straße 5
>    28359 Bremen, Germany
>
>    Tel.:     +49 421 178 45-4193
>    Zentrale: +49 421 178 45-6550
>    Fax:      +49 421 178 45-4150
>    E-Mail:matthias.goldhoorn at uni-bremen.de
>
>    Weitere Informationen:http://www.informatik.uni-bremen.de/robotik
>
> _______________________________________________
> Rock-dev mailing list
> Rock-dev at dfki.de
> http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev


-- 
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.dfki.de/pipermail/rock-dev/attachments/20130909/919649b2/attachment.htm 


More information about the Rock-dev mailing list