[Rock-dev] [rock] #325: syskit: action library using defines from imported profile
rock
noreply at opendfki.de
Mon Aug 26 12:59:21 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 mago02):
You missused the use_profile statement.
The staement itself must be within a class:
try to modify your code like:
class Main < Roby::Actions::Interface
class ExtendedProfile
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
--
Ticket URL: <https://rock.opendfki.de/ticket/325#comment:1>
rock <https://rock.opendfki.de>
rock: the robot construction kit
More information about the Rock-dev
mailing list