<div dir="ltr">The problem is that you don&#39;t have any connections. There is no way in syskit, right now, to run the exact same node twice if they have the exact same input (for syskit: same input + same configuration = same output =&gt; no need to run twice).<div>
<br></div><div>In other words, if you add the connections that your network actually needs, you should get what you expect.</div><div><br></div><div>Sylvain </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Apr 10, 2014 at 8:32 AM, Matthias Goldhoorn <span dir="ltr">&lt;<a href="mailto:matthias.goldhoorn@dfki.de" target="_blank">matthias.goldhoorn@dfki.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Okay,<br>
some of them have the same configuration but different id&#39;s.<br>
We could instanciate several but the same subgraphs, that in the end<br>
fullfill different tasks.<br>
e.G. a multiplier node can have multiple occurances in our network.<br>
<br>
<br>
STDOUT.puts &quot;Adding with conf: #{graph} and index #{cnt} as #{id}&quot;<br>
add<br>
BehaviourGraph::CppTask.with_conf(graph).prefer_deployed_tasks(&quot;graph#{cnt}&quot;),<br>
:as =&gt; id<br>
<br>
Adding with conf: activity.yml and index 1<br>
Adding with conf: limb_coordinator.yml and index 2<br>
Adding with conf: limb_cpg.yml and index 3<br>
Adding with conf: limb_cpg.yml and index 4<br>
Adding with conf: limb_cpg.yml and index 5<br>
Adding with conf: limb_cpg.yml and index 6<br>
Adding with conf: limb_cpg.yml and index 7<br>
Adding with conf: limb_cpg.yml and index 8<br>
<br>
<br>
BehaviourGraph::CppTask:0x7850910{conf =&gt; [limb_cpg.yml]}[]: multiple<br>
possible deployments, choose one with<br>
#prefer_deployed_tasks(deployed_task_name)  current hints: graph3,<br>
graph4, graph6, graph7, graph8, graph5  current hints: graph3, graph4,<br>
graph6, graph7, graph8, graph5  current hints: graph3, graph4, graph6,<br>
graph7, graph8, graph5  current hints: graph3, graph4, graph6, graph7,<br>
graph8, graph5  current hints: graph3, graph4, graph6, graph7, graph8,<br>
graph5  current hints: graph3, graph4, graph6, graph7, graph8, graph5<br>
<br>
But i indeed want this node multiple times running, not only one time....<br>
<br>
Best,<br>
Matthias<br>
<div><div class="h5"><br>
<br>
<br>
<br>
<br>
On 09.04.2014 15:10, Matthias Goldhoorn wrote:<br>
&gt; Does anyone know how i can add a orogen-task multiple times to a<br>
&gt; composition?<br>
&gt;<br>
&gt; I know the idea of syskit is that multiple occurrences get merged. But i<br>
&gt; thought if i give different configuration this will prevent this.<br>
&gt;<br>
&gt; I tried something like this:<br>
&gt;<br>
&gt;<br>
&gt; class Behaviour1 &lt; Syskit::Composition<br>
&gt;       cnt=1<br>
&gt;       not_importand_background_list.each do |n|<br>
&gt;                   sub = add<br>
&gt; BehaviourGraph::CppTask.with_conf(n[&#39;graph_name&#39;]).prefer_deployed_tasks(&quot;graph#{cnt}&quot;),<br>
&gt; :as =&gt; &quot;node_#{n[&#39;id&#39;]}&quot;<br>
&gt;                   cnt=cnt+1<br>
&gt;       end<br>
&gt; end<br>
&gt;<br>
&gt; unfortunately on instanciate i get the warning that the task association<br>
&gt; is ambiguous, AND i get only one task in the graph.<br>
&gt;<br>
&gt; Does anyone know how i do this correctly?<br>
&gt;<br>
&gt; Best,<br>
&gt; Matthias<br>
&gt;<br>
<br>
<br>
--<br>
  Dipl.-Inf. Matthias Goldhoorn<br>
  Space and Underwater Robotic<br>
<br>
  Universität Bremen<br>
  FB 3 - Mathematik und Informatik<br>
  AG Robotik<br>
  Robert-Hooke-Straße 1<br>
  28359 Bremen, Germany<br>
<br>
  Zentrale: +49 421 178 45-6611<br>
<br>
  Besuchsadresse der Nebengeschäftstelle:<br>
  Robert-Hooke-Straße 5<br>
  28359 Bremen, Germany<br>
<br>
  Tel.:    +49 421 178 45-4193<br>
  Empfang: +49 421 178 45-6600<br>
  Fax:     +49 421 178 45-4150<br>
  E-Mail:  <a href="mailto:matthias.goldhoorn@informatik.uni-bremen.de">matthias.goldhoorn@informatik.uni-bremen.de</a><br>
<br>
  Weitere Informationen: <a href="http://www.informatik.uni-bremen.de/robotik" target="_blank">http://www.informatik.uni-bremen.de/robotik</a><br>
<br>
</div></div>_______________________________________________<br>
Rock-dev mailing list<br>
<a href="mailto:Rock-dev@dfki.de">Rock-dev@dfki.de</a><br>
<a href="http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev" target="_blank">http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev</a><br>
</blockquote></div><br></div>