[Rock-dev] Deploy task multiple times with the default deployment
Christian Rauch
Christian.Rauch at dfki.de
Tue Sep 10 13:49:54 CEST 2013
Hello,
I want to use a task (Monitor::Task) multiple times, so I defined the
aliases in the config/* of the robot, e.g.:
{{{
Syskit.conf.use_deployment Monitor::Task => 'monitor1'
Syskit.conf.use_deployment Monitor::Task => 'monitor2'
}}}
These tasks are then used by:
{{{
define 'mon1', Monitor::Task.use_deployments('monitor1')
define 'mon2', Monitor::Task.use_deployments('monitor2')
}}}
When calling both definitions (mon1, mon2) after each other, I expect
that there will be two Monitor::Task with their corresponding name.
When starting the second monitor the deploying fails with:
{{{
Syskit[FATAL]: cannot deploy the following tasks
Syskit[FATAL]: Monitor::Task:0x3f2eb28{conf => [default]}[]
Syskit[FATAL]:
Syskit[FATAL]: Monitor::Task:0x3f2eb28{conf => [default]}[]: multiple
possible deployments, choose one with #use_deployments(deployed_task_name)
Syskit[FATAL]: task monitor2 from deployment
orogen_default_monitor__Task defined in monitor on localhost
Syskit[FATAL]: task monitor1 from deployment
orogen_default_monitor__Task defined in monitor on localhost
}}}
which is misleading, as the task to deploy is already defined via
#.use_deployments.
Is there something similar to the renaming feature when starting orogen
components, that is also applicable within syskit, i.e. starting the
default deployment twice with different names?
Regards,
Christian
--
Christian Rauch
Space Robotics
Universität Bremen
FB 3 - Mathematik und Informatik
AG Robotik
Robert-Hooke-Straße 5
28359 Bremen, Germany
Tel: +49 (0)421 178 45-6619
Empfang: +49 (0)421 178 45-6611
Fax: +49 (0)421 178 45-4150
E-Mail: Christian.Rauch at dfki.de
Weitere Informationen: http://www.informatik.uni-bremen.de/robotik
More information about the Rock-dev
mailing list