[prev in list] [next in list] [prev in thread] [next in thread] 

List:       orocos-dev
Subject:    [Orocos-Dev] Orocos Corba communication for GUI
From:       peter.soetens () fmtc ! be (Peter Soetens)
Date:       2009-02-13 9:21:56
Message-ID: 200902131021.56955.peter.soetens () fmtc ! be
[Download RAW message or body]

On Tuesday 10 February 2009 16:59:25 Simon Pelletier-Thibault wrote:
> Hi,
>
>
>
> I'm looking for using Orocos in reel-time remote application. In my
> application I will use a computer to run the Orocos application and another
> computer to run a GUI that control the remote application.
>
>
>
> A problem I'm facing off is that the GUI will ask a lot off "get Property"
> and produce a lot of communication for nothing.

Will your GUI use the RTT or will it use the CORBA IDL directly ?

>
>
>
> Have you a solution like a remote mirror TaskContext that can updated more
> efficiently as possible and that "get Property" would not produce
> communication?

Assuming you use RTT at the GUI : The RTT CORBA layer caches the hierarchy the 
property objects, and only when you read the value of a property (like 'ls' 
does), a communication is made (because you always want the latest value). So 
just iterating over the properties and reading their names does not cause 
communication.

In case you need to iterate a lot over property _values_ as well, you might 
consider making a copy of the property tree (RTT::copyProperties) and use the 
copy. 

In case you don't use the RTT at the GUI side, you'll need to implement this 
mechanism yourself of course.

Peter
-- 
Peter Soetens -- FMTC -- <http://www.fmtc.be>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic