[openrtm-users 02575] [Python version] Service Port Callback when Interface is subscribed

Yuki Suga ysuga @ ysuga.net
2012年 6月 7日 (木) 20:28:25 JST


OpenRTM-aist MLの皆さん:
お世話になっております.ysuga.netの菅です.

表題の通り,サービスポートのインターフェース購読時のコールバックについて伺いたいと思い連絡差し上げました.

Python版1.1を使っておりますが,C++版でもJava版でも情報を頂けると嬉しいです

やりたい事は,

サービスポートが接続された場合に,接続・切断されたインターフェースの分だけコールバックを呼び出したい

ということです.
単一のサービスポートが複数のインターフェースを持っているのですが、持っているインターフェースの数が少ないConsumerに接続された場合に,
必要な回数だけ初期化を行いたいので,こういう事情になりました.


addPortConnectRetListenerのON_SUBSCRIBE_INTERFACESでは,データポートの場合のみしか動作しないのですが、
サービスポートのコールバックは実装されておりませんか?

お教えください.


------

Hi, OpenRTM-aist ML members:
This is Yuki Suga (ysuga.net)

I'd like to ask how  to set callback function that is called when the
interfaces of ServicePort are connected.

My RTC provides one ServicePort that includes plural interfaces.
When a consumer RTC that has less number of interfaces tries to
connect to my provider, the number of callback should be equal to the
connections of interfaces.

In my situation (Python 1.1RC), addPortConnectRetListener can work
only if the port is DataPort.

Are the ServicePort's callbacks implemented?

Please teach me.



--- Yuki Suga
ysuga.net
ysuga @ ysuga.net
http://ysuga.net


-- 
///////////////////////////////////////////////////////////////////
// Yuki Suga, Ph.D.
// URL: http://www.ysuga.net/?lang=en
// E-mail: ysuga @ ysuga.net
///////////////////////////////////////////////////////////////////


More information about the openrtm-users mailing list