[Rock-dev] Data-Driven Tasks

Thomas Roehr thomas.roehr at dfki.de
Fri Feb 4 12:22:44 CET 2011


This interface is not supported in RTT 2.X. There is just one update() 
hook. I will update the documentation.
Use
...
if(_yourInputPort.read(sample) == RTT::NewData)
...
instead.

Thomas


On 04.02.2011 11:44, Yuping Shi wrote:
>
> hi,
>
> As I found here 
> http://www.rock-robotics.org/orogen/triggering/ports.html, it should 
> be possible to use
>
>
> void  updateHook(std::vector<RTT::PortInterface*>  
> const&  updated_ports){
>
>
> <pre>
> if  (isPortUpdated(_image))
>
>
> {
>
>
> }
>
>
>    
> }
>
> to detect if there's any new incoming data on a given port, but this 
> interface dosen't seems to exist anymore. I guess *void 
> dataOnPort(base::PortInterface* port)* (in 
> install/include/rtt/TaskContext.hpp) shall be used instead, can 
> someone give me a short introduction on how to set this up, or maybe 
> there is another way to do this?
>
> thanks,
>
> yuping
>
>  --
>  Dipl. Inf. Yuping Shi
>  Researcher
>
>  DFKI Bremen
>  Robotics Innovation Center
>  Robert-Hooke-Straße 5
>  28359 Bremen, Germany
>
>  Phone: +49 (0)421 178 45-6629
>  E-Mail: Yuping.Shi 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
>  -----------------------------------------------------------------------
>
>
> _______________________________________________
> Rock-dev mailing list
> Rock-dev at dfki.de
> http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev
>    


-- 
Thomas Röhr (M.Sc.)
Space Robotics

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

Phone: +49 (0)421 178-454151
Fax:   +49 (0)421 178-454150
E-Mail: robotik 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/mailman/cgi-bin/private/rock-dev/attachments/20110204/8b168402/attachment.htm 


More information about the Rock-dev mailing list