[Rock-dev] Roby: Event-Emitting from ScriptingEngine
Christoph Mueller
christoph.mueller at dfki.de
Tue Nov 6 19:26:58 CET 2012
Another feedback for a current bugfix in the roby sources.
method(:superior_method) do
# service composition
self.service.script do
# some executes and polls
....
emit :success
end
end
(Information for the other rock developers)
* This failed some days ago due to a missing method error for 'event' for
:success.
I think its working now, but executing this method via the roby shell results in
another error:
Message:
19:06:27.021 (Roby) {}}> failed with [19:06:27.006 @3]
Roby::PlanningTask:0x7ff99b2c8228{planner_model => MainPlanner, planned_model =>
Roby::Task, planning_method => attacher:21(), method_name => attacher,
planning_owners => , method_options => {}}[][attacher:21():{}] -> expecting a
task, event, or a collection of tasks and events, got
#<Roby::TaskScripting::ScriptEngine:0x7ff99b275b90>/failed
19:06:27.021 (Roby) /stuff/chris/tools/roby/lib/roby/plan.rb:286:in
`partition_event_task': expecting a task, event, or a collection of tasks and
events, got #<Roby::TaskScripting::ScriptEngine:0x7ff99b275b90>
(TypeError)/stuff/chris/tools/roby/lib/roby/plan.rb:286:in
`partition_event_task': expecting a task, event, or a collection of tasks and
events, got #<Roby::TaskScripting::ScriptEngine:0x7ff99b275b90> (TypeError)
19:06:27.021 (Roby) /stuff/chris/tools/roby/lib/roby/plan.rb:286:in
`partition_event_task',
19:06:27.021 (Roby) /stuff/chris/tools/roby/lib/roby/planning/task.rb:154:in
`value',
19:06:27.021 (Roby) /stuff/chris/tools/roby/lib/roby/planning/task.rb:154:in
the polling handler,
19:06:27.021 (Roby)
/stuff/chris/tools/utilrb/lib/utilrb/models/inherited_enumerable.rb:60,
19:06:27.021 (Roby) /stuff/chris/tools/orocos.rb/bin/rock-roby:18
19:06:27.085 (Roby) mission failed: Roby::Task:0x7ff99b2c84d0{}[]
19:06:27.085 (Roby) failed to plan Roby::Task:0x7ff99b2c84d0
19:06:27.085 (Roby) owners: Roby::Distributed
19:06:27.085 (Roby) arguments: #<Roby::TaskArguments:0x7ff99b2c8430
19:06:27.085 (Roby) @static=true,
19:06:27.085 (Roby) @task=
19:06:27.085 (Roby) Roby::Task:0x7ff99b2c84d0
19:06:27.085 (Roby) owners: Roby::Distributed
19:06:27.085 (Roby) arguments: #<Roby::TaskArguments:0x7ff99b2c8430
19:06:27.085 (Roby) @static=true,
19:06:27.085 (Roby) @task=#<Roby::Task:0x7ff99b2c84d0 ...>,
19:06:27.085 (Roby) @values={}>,
19:06:27.085 (Roby) @values={}>
This worked in the past because we used it very much in the avalon planners.
Chris
-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: http://www.dfki.de/pipermail/rock-dev/attachments/20121106/ec8677db/attachment-0001.htm
More information about the Rock-dev
mailing list