[openrtm-users 00853] Re: Ports configuration

Masayuki Shimizu masayuki.shimizu @ aist.go.jp
2009年 6月 30日 (火) 02:12:07 JST


Hello, 

I translated the document in OutPort.h to English. 
Find the attached file. 
(perhaps it may include mistakes or strange translation.)
I hope this will help you. 

Dr. Ando, core developer of OpenRTM-aist, said that, 
as of 1.0.0-RC1, users cannot select the port buffer. 
Only ring buffer is available now. 
This limitation will be eliminated, he says, by release
version. 
(I expect NullBuffer will be come back in release
version.)

In addition, not all port callbacks does work in RC1
version. 
As you pointed out, OnWrite callbacks of InPort 
do not work currently. 
The OnWrite callbacks will be available by release
version. 

So, I think, you might wait release version, if you can
wait.

Regards, 

Masayuki Shimizu
Assistant Professor
Shizuoka University, Japan

--- C将アdric Pasteur <cpasteur @ laas.fr> wrote:

> Hi,
> I am currently doing an internship at the the LAAS
> in Toulouse,  
> France, working on the new version of their module
> generator Genom. I  
> have created a system that makes it possible to use
> the same module  
> with multiple backends, one of them being openRTM.
> In order to achieve  
> this, I have to tweak the standard behaviour of
> ports in OpenRTM to  
> reflect the behaviour of modules in the previous
> genom version.
> 
> I am using OpenRTM v 1.0.0 RC1.
> 
> My goal is to have inports that  behave like
> proxies, ie only store  
> one value at a time and always overwrite the
> previous value on  
> updating. To achieve that, I want to modify the
> ports buffer.length  
> and buffer.full_policy properties. I tried a few
> syntax but none worked.
> I found some doc in the Outportbase.h file but
> unfortunately it is in  
> Japanese (that i can't read).
> What is the correct syntax ?
> 
> 
> I also have a second question. Is it possible to
> have a callback when  
> an in port receives new data? onRead() is only
> called when the program  
> calls read(). Do i have to keep polling with isNew()
> in a separate  
> thread ?
> 
> Thank you in advance
> Best regards
> 
> Cedric Pasteur,
> LAAS, Toulouse, France
> 
> 
> 
> 
> 

--------------------
Masayuki Shimizu
Assistant Professor
Dept. of Mechanical Engineering, Shizuoka Univ.
3-5-1, Johoku, Naka-ku, Hamamatsu 432-8561, JAPAN
TEL/FAX: +81-53-478-1061
Email: tmsimiz @ ipc.shizuoka.ac.jp
-------------- next part --------------
テキスト形式以外の添付ファイルを保管しました...
ファイル名: OutPortBase_doc.h
型:         text/x-chdr
サイズ:     5546 バイト
説明:       pat938606264
URL:        <http://www.openrtm.org/pipermail/openrtm-users/attachments/20090630/f1790f4d/attachment-0001.h>


openrtm-users メーリングリストの案内