pddl语法的效果,其语义含义是“类型”之一。
我正在努力定义行动的效果。 场景如下:我有两个球(A和B)。他们每个人都可以拿走。一球被放在其中一个球时,其中一个灯L1,L2,L3继续进行(哪一个都没关系) 我已经定义了a,b -ball
,l1,l2,l3 -lamp
,并且我对以下定义有一个操作:
(:action put
:parameters (?b - ball)
:precondition
(and
(ballTaken ?b)
)
:effect
(and
(not( ballTaken ?b))
(... **one of the lamps goes on**...)
)
)
我如何表达此灯继续“在pddl?因此,基本上 - 如何使用对效果中的动作的参数不给出的对象? 谢谢你!
I am struggling with defining the effect of an action.
The scenario is the following: I have two balls (a and b). Each of them can be taken and put. As soon as one of the balls is put, one of the lamps L1, L2, L3 goes on (it does not matter which one)
I have defined a, b - ball
, L1, L2, L3 - lamp
and I have an action with the following definition:
(:action put
:parameters (?b - ball)
:precondition
(and
(ballTaken ?b)
)
:effect
(and
(not( ballTaken ?b))
(... **one of the lamps goes on**...)
)
)
How can I express this "one of the lamps goes on" in pddl? So, basically - how can I use objects which are not given as parameters to the action in the effect ?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

那是一种非确定性的效果...那是您想要的吗?如果它是任意的,并且您不在乎哪个,请为灯使用一个参数。如果您希望其中一个被随机选择,请使用非确定性计划符号...
That's a non-deterministic effect...is that what you wanted? If it's arbitrary and you don't care which, then use a parameter for the lamp. If you want one of them to randomly be selected, then use non-deterministic planning notation...