[Rock-dev] Adding one orogen-task multiple times to a composition

Sylvain Joyeux bir.sylvain at gmail.com
Wed Apr 9 19:37:31 CEST 2014


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 <
matthias.goldhoorn at dfki.de> 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:  matthias.goldhoorn at informatik.uni-bremen.de
>
>  Weitere Informationen: http://www.informatik.uni-bremen.de/robotik
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.dfki.de/pipermail/rock-dev/attachments/20140409/0a578021/attachment.htm 


More information about the Rock-dev mailing list