[openrtm-users 00851] Ports configuration

5 個の投稿 / 0 new
最終投稿
root
オフライン
Last seen: 4日 16時間 前
登録日: 2009-06-23 14:31
[openrtm-users 00851] Ports configuration

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

未定義
root
オフライン
Last seen: 4日 16時間 前
登録日: 2009-06-23 14:31
[openrtm-users 00853] Ports configuration

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

root
オフライン
Last seen: 4日 16時間 前
登録日: 2009-06-23 14:31
[openrtm-users 00856] Ports configuration

Thank you for your help.

I tried to put the following in the config file but it does not seem
to work:

port.inport.MobileState.buffer.length: 4
port.inport.MobileState.buffer.write.full_policy: overwrite

I know the config file is read because the next line is used.
What did I do wrong ? Is it possible to configure InPorts this way ?

Thank you

Cedric Pasteur

Masayuki Shimizu
オフライン
Last seen: なし 前
登録日: 2011-10-28 12:20
[openrtm-users 02326] Configuration

静岡大の清水です。

コンポーネントのコンフィグレーションをC++のプログラムから
変更したいのですが、サンプルプログラムがどこかに無いでしょうか?

C++版のOpenRTM-aistのソース内を探してみましたが、
コンフィグレーションの変更プログラムを見つけられませんでした。

コンポーネントのCORBA参照(RTC::RTObject_var)は
取得できているという前提でのCode snippet.でも結構です。

よろしくお願いいたします。

清水
--------------------
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
_______________________________________________
openrtm-users mailing list
openrtm-users@openrtm.org
http://www.openrtm.org/mailman/listinfo/openrtm-users

ysuga
オフライン
Last seen: 1年 9ヶ月 前
登録日: 2011-05-23 10:14
[openrtm-users 02327] Configuration

清水先生:
菅です.

この記事で参考になりませんか?
http://ysuga.net/robot/rtm/practice/rtc_configure
古い記事なので,すこしリンクとかおかしいところがあるかもしれませんが・・・

2011年11月16日19:48 Masayuki Shimizu :
> 静岡大の清水です。
>
> コンポーネントのコンフィグレーションをC++のプログラムから
> 変更したいのですが、サンプルプログラムがどこかに無いでしょうか?
>
> C++版のOpenRTM-aistのソース内を探してみましたが、
> コンフィグレーションの変更プログラムを見つけられませんでした。
>
> コンポーネントのCORBA参照(RTC::RTObject_var)は
> 取得できているという前提でのCode snippet.でも結構です。
>
> よろしくお願いいたします。
>
> 清水
> --------------------
> 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
> _______________________________________________
> openrtm-users mailing list
> openrtm-users@openrtm.org
> http://www.openrtm.org/mailman/listinfo/openrtm-users
>
_______________________________________________
openrtm-users mailing list
openrtm-users@openrtm.org
http://www.openrtm.org/mailman/listinfo/openrtm-users

コメントを投稿するにはログインまたはユーザー登録を行ってください

ダウンロード

最新バージョン : 2.0.1-RELESE

統計

Webサイト統計
ユーザ数:2210
プロジェクト統計
RTコンポーネント307
RTミドルウエア35
ツール22
文書・仕様書2

Choreonoid

モーションエディタ/シミュレータ

OpenHRP3

動力学シミュレータ

OpenRTP

統合開発プラットフォーム

産総研RTC集

産総研が提供するRTC集

TORK

東京オープンソースロボティクス協会

DAQ-Middleware

ネットワーク分散環境でデータ収集用ソフトウェアを容易に構築するためのソフトウェア・フレームワーク