[openrtm-users 02583] Re: [Python version] Service Port Callback when Interface is subscribed

Geoffrey Biggs geoffrey.biggs @ aist.go.jp
2012年 6月 13日 (水) 08:39:54 JST


菅様

ジェフです。

Unfortunately, the service port doesn't have the connection callback
API yet. It is only available on data ports at this time.


ちょっと調べましたが、サービスポートはまだそのAPIが実装されていないようです。

実装したら、接続ポートのインターフェースずつにコールバックを呼ぶことは可能だと思います。そうすると便利そうです。




2012/6/7 Yuki Suga <ysuga @ ysuga.net>:
> 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
> ///////////////////////////////////////////////////////////////////
> _______________________________________________
> openrtm-users mailing list
> openrtm-users @ openrtm.org
> http://www.openrtm.org/mailman/listinfo/openrtm-users


More information about the openrtm-users mailing list