[openrtm-users 00851] Ports configuration

5 posts / 0 new
Last post
root
Offline
Last seen: 12 hours 17 min ago
Joined: 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

Undefined
root
Offline
Last seen: 12 hours 17 min ago
Joined: 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
Offline
Last seen: 12 hours 17 min ago
Joined: 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
Offline
Last seen: Never ago
Joined: 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
Offline
Last seen: 1 year 8 months ago
Joined: 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

Log in or register to post comments

Download

latest Releases : 2.0.0-RELESE

2.0.0-RELESE Download page

Number of Projects

Choreonoid

Motion editor/Dynamics simulator

OpenHRP3

Dynamics simulator

OpenRTP

Integrated Development Platform

AIST RTC collection

RT-Components collection by AIST

TORK

Tokyo Opensource Robotics Association

DAQ-Middleware

Middleware for DAQ (Data Aquisition) by KEK