<div dir="ltr">The problem is that you don'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 => 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"><<a href="mailto:matthias.goldhoorn@dfki.de" target="_blank">matthias.goldhoorn@dfki.de</a>></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'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 "Adding with conf: #{graph} and index #{cnt} as #{id}"<br>
add<br>
BehaviourGraph::CppTask.with_conf(graph).prefer_deployed_tasks("graph#{cnt}"),<br>
:as => 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 => [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>
> Does anyone know how i can add a orogen-task multiple times to a<br>
> composition?<br>
><br>
> I know the idea of syskit is that multiple occurrences get merged. But i<br>
> thought if i give different configuration this will prevent this.<br>
><br>
> I tried something like this:<br>
><br>
><br>
> class Behaviour1 < Syskit::Composition<br>
> cnt=1<br>
> not_importand_background_list.each do |n|<br>
> sub = add<br>
> BehaviourGraph::CppTask.with_conf(n['graph_name']).prefer_deployed_tasks("graph#{cnt}"),<br>
> :as => "node_#{n['id']}"<br>
> cnt=cnt+1<br>
> end<br>
> end<br>
><br>
> unfortunately on instanciate i get the warning that the task association<br>
> is ambiguous, AND i get only one task in the graph.<br>
><br>
> Does anyone know how i do this correctly?<br>
><br>
> Best,<br>
> Matthias<br>
><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>