<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000">Hello everyone,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000">

<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000">I made my experiments with the original RTM SimpleService example!</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000">

Results in pictures and modified source code can be found in attachment!</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000">

I started two piece of MyServiceProvider by manipulating the rtc.conf between starts, to make them different console windows. In the original setup the MyServiceConsumer called functions only one of the connected MyServiceProviders. With the modified source code (applying the method mentioned before) The Consumer call functions on all Provider (or we can choose Provider from the map by connector_id as well).</div>

<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000">So it seems, that the Consumer copies are containing some information about which Provider to call. Can access it somehow?</div>

<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000">Best regards,</div>

<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000">György Persa</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000"><br></div>
<div class="gmail_extra">
<br clear="all"><div><div>
<font>György Persa</font><br><font size="1"><i>Software engineer</i><br>Institute for Computer Science and Control<br>Hungarian Academy of Sciences<br>3D Internet-based Control and Communications Research Laboratory / 3DICC<br>

<i>Project VirCA</i> (<a href="http://www.virca.hu" target="_blank">www.virca.hu</a>)</font>
<font size="1"></font></div></div>
<br><br><div class="gmail_quote">On Fri, May 9, 2014 at 11:07 AM, György Persa <span dir="ltr"><<a href="mailto:persa@sztaki.hu" target="_blank">persa@sztaki.hu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Hello Geoffrey,</div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">
<br></div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">​​Thank you for your answer,</div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">
Those port are CorbaPort-s, "X" marked are holding Consumer and "O" marked are holding Provider of an interface, having one getter and one setter function. The component on the right (PoC_VirCA) is supposed to provide information for every other component by getters (it does), and utilize setter functions of connected components, thus update their state. But only if needed! We want to update only "subscribed" components, so want to define which active connection should be used for updating.</div>


<div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">But maybe my example was a little bit irrelevant in this context, sorry for that! There is a lot of part in code, which can lead to this (now I guess buggy) measurements.<br>


</div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">I meant only ask, what is the expected behaviour in the case of multiple provider one consumer. Is it suppose to call the remote function on every provider? </div>


<div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Is it a way to choose which provider to use? </div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">
For instance, in SimpleService example project, can I call function on a specific MyServiceProvider from MyServiceConsumer if there are multiple of them?</div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">


<br></div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Meanwhile, we have further experimental setups, which shows, that we can address providers, but it's a bit complicated. We defined ConnectionListener for the Consumer and when "on connected" call-back function is called, we store a copy(!) of the Consumer in an std::map, using the connection_id for key value. Later, we can use this map (containing copies of the same Consumer) for calling functions on specified connections.</div>


<div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Next week I'll try to do the same method in SimpleService example and share the code. I hope that will be more clear! </div>


<div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Best regards,</div>
<div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">György Persa</div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"> </div>
<div class="gmail_extra"><div class=""><br clear="all"><div><div>
<font>György Persa</font><br><font size="1"><i>Software engineer</i><br>Institute for Computer Science and Control<br>Hungarian Academy of Sciences<br>3D Internet-based Control and Communications Research Laboratory / 3DICC<br>


<i>Project VirCA</i> (<a href="http://www.virca.hu" target="_blank">www.virca.hu</a>)</font>
<font size="1"></font></div></div>
<br><br></div><div><div class="h5"><div class="gmail_quote">On Thu, May 8, 2014 at 1:34 AM, Geoffrey Biggs <span dir="ltr"><<a href="mailto:geoffrey.biggs@aist.go.jp" target="_blank">geoffrey.biggs@aist.go.jp</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">Hi <span style="color:rgb(0,0,0);font-family:verdana,sans-serif">György,</span><div><span style="color:rgb(0,0,0);font-family:verdana,sans-serif"><br></span></div><div><span style="color:rgb(0,0,0);font-family:verdana,sans-serif">Could you give some more details about how your components are implemented and connected? Details such as what port types you are using to connect them, what the connector profiles are, and so on will make it easier to answer your question. If possible, could you provide your code?</span></div>



<div><span style="color:rgb(0,0,0);font-family:verdana,sans-serif"><br></span></div><div><span style="color:rgb(0,0,0);font-family:verdana,sans-serif">Geoff</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">


<div><div>
On 7 May 2014 18:50, György Persa <span dir="ltr"><<a href="mailto:persa@sztaki.hu" target="_blank">persa@sztaki.hu</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<div><div>
<div dir="ltr"><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Hello everyone,</div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">


<br></div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Recently I made an experimental setup in our system, and it seems to me, that if I connect multiple provider to one consumer I can call function only one of the providers/implementations.<br>





In attached image I displayed the function call counts in console window. In the relation of one provider to multiple consumer function was called twice as much as in opposite direction. Thus I suggest, that when I connect multiple provider to one consumer only one of the providers is taking action.</div>





<div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">My questions are:</div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><ul><li>


Is it really the case? If I connect multiple provider to one consumer only one of them will answer?</li><li>Is it possible to declare which provider's function should be called if a consumer has many of them (thus choose between implementations)? </li>





<li>Or can I access all the providers and call function on them somehow?<br></li></ul><div>Thanks in advance!</div><div>Best regards,</div><div>György Persa</div></div><span><font color="#888888"><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">





<br></div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div><div>
<font>György Persa</font><br><font size="1"><i>Software engineer</i><br>Institute for Computer Science and Control<br>Hungarian Academy of Sciences<br>3D Internet-based Control and Communications Research Laboratory / 3DICC<br>





<i>Project VirCA</i> (<a href="http://www.virca.hu" target="_blank">www.virca.hu</a>)</font>
<font size="1"></font></div></div>
<div dir="ltr"><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div></div></font></span></div>
<br></div></div>_______________________________________________<br>
openrtm-users mailing list<br>
<a href="mailto:openrtm-users@openrtm.org" target="_blank">openrtm-users@openrtm.org</a><br>
<a href="http://www.openrtm.org/mailman/listinfo/openrtm-users" target="_blank">http://www.openrtm.org/mailman/listinfo/openrtm-users</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
openrtm-users mailing list<br>
<a href="mailto:openrtm-users@openrtm.org" target="_blank">openrtm-users@openrtm.org</a><br>
<a href="http://www.openrtm.org/mailman/listinfo/openrtm-users" target="_blank">http://www.openrtm.org/mailman/listinfo/openrtm-users</a><br>
<br></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div>