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

Yuki Suga ysuga @ ysuga.net
2012年 6月 15日 (金) 16:43:32 JST


Hi, Geoff,
This is Yuki.

Thank you for your information.
Currently, costs of initialization functions are not so huge, but I'll
try to implement it later.



ジェフさん:
菅です.

情報どうもです.
いまは初期化関数のコストが大した事無いので,あとで実装してみようと思います.



2012年6月13日 8:39 Geoffrey Biggs <geoffrey.biggs @ aist.go.jp>:
> 菅様
>
> ジェフです。
>
> 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
> _______________________________________________
> openrtm-users mailing list
> openrtm-users @ openrtm.org
> http://www.openrtm.org/mailman/listinfo/openrtm-users



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


More information about the openrtm-users mailing list