我既使用持续动作,又试图能够清除某种类型的所有元素的谓词。见下文。这可能吗?如果是这样,有人知道正确的语法吗?谢谢!
(:durative-action init
:parameters (?r - robot)
:duration ( = ?duration 1)
:condition (and
(at start (robot_uninitialized ?r))
(at start (robot_free ?r))
)
:effect (and
(at start(not(robot_free ?r)))
(at end (assign (robot_on_fastener_number_in_sequence) 1))
(at end (not(robot_uninitialized ?r)))
(at end (robot_free ?r))
(at end (forall (?f - fastener) (not(fastener_selected ?f))))
)
)
我正在运行 popf 规划器,提供的错误是:Syntax error in timed effect
.