[Rock-dev] Using a specific task deployment in a composition (Roby)

Janosch Machowinski Janosch.Machowinski at dfki.de
Wed May 23 10:40:52 CEST 2012


Hi Chris,
why do you actually need to nail a task to a
deployments ? If it is only about the configuration,
you can do this like this :
add(Cmp::DualSonar.use('sonar' => 
SonarTritech::Micron.with_conf(''default', 'foo'), 'sonar_rear' => 
SonarTritech::Micron.with_conf(''default', 'rear')))
Greetings
     Janosch
On 21.05.2012 16:35, Chris Müller wrote:
> Hi,
>
> Thomas has asked me about an interesting use case in defining a
> composition in roby. Here is a simplified description about the problem.
> Assume the following setup:
>
> # deployments
> simple_deployment("sonar", "sonar_tritech::Micron")
> simple_deployment("sonar_rear", "sonar_tritech::Micron")
>
> # compositions
> composition 'DualSonar'
>       add SonarTritech::Micron, :as =>  'sonar'
>       add SonarTritech::Micron, :as =>  'sonar_rear'
> end
>
> The final question is how can we map the Micron task from deployment
> "sonar" directly
> to place holder for the 'sonar' task in the DualSonar composition.
>
> On our AUV Avalon we have a similar use case, where we distinguish two
> sonar devices from the same driver and it seems it maps magically in the
> correct order. (never met any problem by roby).
>
> I don't know if the :as flag is influencing the mapping mechanism for
> the right deployment or only the order of deployment declarations is
> relevant.
>
> In the experiments it wouldn't be a problem because each task in the
> composition is configured through the :as identifier. But after a few
> thoughts i would currently not exclude a situation where the deployment
> "sonar" is configured and used for the "sonar_rear" task.
>
> Does anyone have some more experiences with this use case? (Matthias,
> Janosch?)
>
> Chris
>
> _______________________________________________
> Rock-dev mailing list
> Rock-dev at dfki.de
> http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev


-- 
  Dipl. Inf. Janosch Machowinski
  SAR-&  Sicherheitsrobotik

  DFKI Bremen
  Robotics Innovation Center
  Robert-Hooke-Straße 5
  28359 Bremen, Germany

  Phone: +49 (0)421 178 45-6614
  Fax:   +49 (0)421 178 45-4150
  E-Mail: robotik at dfki.de

  Weitere Informationen: http://www.dfki.de/robotik
  -----------------------------------------------------------------------
  Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
  Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
  Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
  (Vorsitzender) Dr. Walter Olthoff
  Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
  Amtsgericht Kaiserslautern, HRB 2313
  Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
  USt-Id.Nr.:    DE 148646973
  Steuernummer:  19/673/0060/3
  -----------------------------------------------------------------------



More information about the Rock-dev mailing list