Are you actually sure that both n['graph_name'] and n['id'] *are* different for each element in your list ?
Sylvain On Wed, Apr 9, 2014 at 3:10 PM, Matthias Goldhoorn < [email protected]> wrote: > Does anyone know how i can add a orogen-task multiple times to a > composition? > > I know the idea of syskit is that multiple occurrences get merged. But i > thought if i give different configuration this will prevent this. > > I tried something like this: > > > class Behaviour1 < Syskit::Composition > cnt=1 > not_importand_background_list.each do |n| > sub = add BehaviourGraph::CppTask.with_ > conf(n['graph_name']).prefer_deployed_tasks("graph#{cnt}"), :as => > "node_#{n['id']}" > cnt=cnt+1 > end > end > > unfortunately on instanciate i get the warning that the task association > is ambiguous, AND i get only one task in the graph. > > Does anyone know how i do this correctly? > > Best, > Matthias > > -- > Dipl.-Inf. Matthias Goldhoorn > Space and Underwater Robotic > > Universität Bremen > FB 3 - Mathematik und Informatik > AG Robotik > Robert-Hooke-Straße 1 > 28359 Bremen, Germany > Zentrale: +49 421 178 45-6611 > Besuchsadresse der Nebengeschäftstelle: > Robert-Hooke-Straße 5 > 28359 Bremen, Germany > Tel.: +49 421 178 45-4193 > Empfang: +49 421 178 45-6600 > Fax: +49 421 178 45-4150 > E-Mail: [email protected] > > Weitere Informationen: http://www.informatik.uni-bremen.de/robotik > >
_______________________________________________ Rock-dev mailing list [email protected] http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev
