<div dir="ltr">Are you actually sure that both n['graph_name'] and n['id'] *are* different for each element in your list ?<div><br></div><div>Sylvain</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Apr 9, 2014 at 3:10 PM, 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">
Does anyone know how i can add a orogen-task multiple times to a composition?<br>
<br>
I know the idea of syskit is that multiple occurrences get merged. But i 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.<u></u>each do |n|<br>
sub = add BehaviourGraph::CppTask.with_<u></u>conf(n['graph_name']).prefer_<u></u>deployed_tasks("graph#{cnt}"), :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 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>
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>
Zentrale: <a href="tel:%2B49%20421%20178%2045-6611" value="+49421178456611" target="_blank">+49 421 178 45-6611</a><br>
Besuchsadresse der Nebengeschäftstelle:<br>
Robert-Hooke-Straße 5<br>
28359 Bremen, Germany<br>
Tel.: <a href="tel:%2B49%20421%20178%2045-4193" value="+49421178454193" target="_blank">+49 421 178 45-4193</a><br>
Empfang: <a href="tel:%2B49%20421%20178%2045-6600" value="+49421178456600" target="_blank">+49 421 178 45-6600</a><br>
Fax: <a href="tel:%2B49%20421%20178%2045-4150" value="+49421178454150" target="_blank">+49 421 178 45-4150</a><br>
E-Mail: <a href="mailto:matthias.goldhoorn@informatik.uni-bremen.de" target="_blank">matthias.goldhoorn@informatik.<u></u>uni-bremen.de</a><br>
<br>
Weitere Informationen: <a href="http://www.informatik.uni-bremen.de/robotik" target="_blank">http://www.informatik.uni-<u></u>bremen.de/robotik</a><br>
<br>
</blockquote></div><br></div>