[openrtm-users 02903] Re: using dynamically created ports

György Persa persa @ sztaki.hu
2013年 8月 29日 (木) 19:49:29 JST


Hello,

sure! I attached the compressed folders for the two RTCs and the service
definition!
Also, on this link you can find my exact VS2012 solution, I've used:
https://www.dropbox.com/sh/pioyrjo7tg8d373/LPbOT0zeVt

György

György Persa
*Software engineer*
Institute for Computer Science and Control
Hungarian Academy of Sciences
3D Internet-based Control and Communications Research Laboratory / 3DICC
*Project VirCA* (www.virca.hu)


On Thu, Aug 29, 2013 at 2:40 AM, Ando Noriaki <n-ando @ aist.go.jp> wrote:

> Hello,
>
> Thanks! But I don't know how do you realize dynamic service port.
> Could you show your code?
>
> Noriaki Ando
>
>
>
>
>
> 2013/8/28 György Persa <persa @ sztaki.hu>
>
>> Hello,
>>
>> they were "inline images", but now I just attach them! Hope, now they are
>> available!
>>
>> György
>>
>>
>>
>> György Persa
>> *Software engineer*
>> Institute for Computer Science and Control
>> Hungarian Academy of Sciences
>> 3D Internet-based Control and Communications Research Laboratory / 3DICC
>> *Project VirCA* (www.virca.hu)
>>
>>
>> On Wed, Aug 28, 2013 at 1:18 AM, Ando Noriaki <n-ando @ aist.go.jp> wrote:
>>
>>> Hi,
>>>
>>> I could not find attachments in your e-mail.
>>>
>>>
>>>
>>>
>>> 2013/8/27 György Persa <persa @ sztaki.hu>
>>>
>>>> Hello everyone,
>>>>
>>>> in my project I would like to create service ports dynamically, runtime
>>>> and connect them together. Is there any simple way to do this? Here's a
>>>> short overview of the exact problem what I encountered, I hope you can help
>>>> me!
>>>>
>>>> For this purpose, I designed an experiment for two test components. The
>>>> RTC#1 (DynamicPortTester in attachments) is instructing  RTC#2
>>>> (DynamicPortRecevier) for creating a new port and register a provider for
>>>> that.
>>>> [image: Inline image 1]
>>>> After that, RTC#2 sets up a port as well and connect it to RTC#1's
>>>> newly created port.
>>>> [image: Inline image 2]
>>>> My problem is that I'm unable to use the provided functions in RTC#2,
>>>> because the service is inactive (_non_existent()).
>>>> However, if I deactivate RTC#2 and activate it again, the service
>>>> became active and usable.  Also, if I add the port when creating the
>>>> component or in onInitialize(), it succeeds as well.
>>>>
>>>> Is there a way to get an active service without deactivate & activate
>>>> it?
>>>>
>>>> Thanks in advance,
>>>> György Persa
>>>>
>>>>
>>>>
>>>>
>>>> György Persa
>>>> *Software engineer*
>>>> Institute for Computer Science and Control
>>>> Hungarian Academy of Sciences
>>>> 3D Internet-based Control and Communications Research Laboratory / 3DICC
>>>> *Project VirCA* (www.virca.hu)
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>
>>>
>>
>> _______________________________________________
>> 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
>
>
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
URL: <http://www.openrtm.org/pipermail/openrtm-users/attachments/20130829/bff52231/attachment.html>
-------------- next part --------------
$B%F%-%9%H7A<00J30$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
$B%U%!%$%kL>(B: DynamicPortTest_RTC.zip
$B7?(B:         application/zip
$B%5%$%:(B:     2382 $B%P%$%H(B
$B @ bL@(B:       $BL5$7(B
URL:        <http://www.openrtm.org/pipermail/openrtm-users/attachments/20130829/bff52231/attachment.zip>
-------------- next part --------------
$B%F%-%9%H7A<00J30$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
$B%U%!%$%kL>(B: DynamicPortReceiver_RTC.zip
$B7?(B:         application/zip
$B%5%$%:(B:     3559 $B%P%$%H(B
$B @ bL@(B:       $BL5$7(B
URL:        <http://www.openrtm.org/pipermail/openrtm-users/attachments/20130829/bff52231/attachment-0001.zip>
-------------- next part --------------
$B%F%-%9%H7A<00J30$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
$B%U%!%$%kL>(B: ServiceDef_interface.zip
$B7?(B:         application/zip
$B%5%$%:(B:     7886 $B%P%$%H(B
$B @ bL@(B:       $BL5$7(B
URL:        <http://www.openrtm.org/pipermail/openrtm-users/attachments/20130829/bff52231/attachment-0002.zip>


More information about the openrtm-users mailing list