pddl语法的效果,其语义含义是“类型”之一。

发布于 01-26 02:34 字数 424 浏览 3 评论 0原文

我正在努力定义行动的效果。 场景如下:我有两个球(A和B)。他们每个人都可以拿走。一球被放在其中一个球时,其中一个灯L1,L2,L3继续进行(哪一个都没关系) 我已经定义了a,b -balll1,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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你怎么敢2025-02-02 02:34:44

那是一种非确定性的效果...那是您想要的吗?如果它是任意的,并且您不在乎哪个,请为灯使用一个参数。如果您希望其中一个被随机选择,请使用非确定性计划符号...

(oneof (on lamp1) (on lamp2) (on lamp3))

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...

(oneof (on lamp1) (on lamp2) (on lamp3))
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文