[Rock-dev] [roby] using of the state_machine

Matthias Goldhoorn matthias.goldhoorn at uni-bremen.de
Wed Apr 10 14:23:33 CEST 2013


How can i use an composition (without definit it first) inside an 
state_machine?

like:

      state_machine "walk" do
          cmp = state Limes::MantisWalker.with_arguments(:speed_x => 5, 
:timeout => 10).as_plan
          start(cmp)
      end


The resulting error is:

= 
/home/goldhoorn/dev-limes/tools/roby/lib/roby/actions/state_machine.rb:214:in 
`state': cannot create a state from 
Limes::MantisWalker:0x5166048{speed_x => 5, timeout => 10}[] (ArgumentError)

MantisWalker is a composition

Greetings,
Matthias


-- 
  Dipl.-Inf. Matthias Goldhoorn
  Space and Underwater Robotic

  Universität Bremen
  FB 3 - Mathematik und Informatik
  AG Robotik
  Robert-Hooke-Straße 5
  28359 Bremen, Germany

  Tel.:     +49 421 178 45-4193
  Zentrale: +49 421 178 45-6550
  Fax:      +49 421 178 45-4150
  E-Mail:   matthias.goldhoorn at uni-bremen.de

  Weitere Informationen: http://www.informatik.uni-bremen.de/robotik



More information about the Rock-dev mailing list