[Rock-dev] [rock] #325: syskit: action library using defines from imported profile

rock noreply at opendfki.de
Mon Aug 26 14:54:00 CEST 2013


#325: syskit: action library using defines from imported profile
--------------------+------------------------------------
 Reporter:  thro02  |       Owner:  rock-dev-mailing-list
     Type:  defect  |      Status:  new
 Priority:  normal  |   Milestone:
Component:  base    |  Resolution:
 Keywords:          |
--------------------+------------------------------------

Comment (by sylvain.joyeux):

 Replying to [comment:1 mago02]:
 > class Main < Roby::Actions::Interface
 >
 >     profile "ExtendedProfile" do
 >
 >     use_profile Spacebot::Profiles::Simulation
 >
 >     describe("Start the simulated robot").
 >
 >         returns(Spacebot::Tasks::Success)
 >
 >     def start_robot(*arguments)
 >
 >         task = Spacebot::Tasks::Success.new(*arguments)
 >         task.depends_on(simulation_def, :role => 'sim')
 >         task
 >
 >     end
 >
 > end
 >
 > end
 This is wrong:

  * you can't define actions in profiles
  * use_profile can be used within an action interface

-- 
Ticket URL: <https://rock.opendfki.de/ticket/325#comment:3>
rock <https://rock.opendfki.de>
rock: the robot construction kit


More information about the Rock-dev mailing list