Advertisement
kator

PDDL / lab1

Oct 10th, 2017
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. (define
  2. (domain world-of-blocks)
  3. (:requirements :adl)
  4. (:predicates
  5. (on-top ?x ?y) ; gora dol
  6. (on-floor ?x)
  7. (clear ?x)
  8. (podniesiony ?x)
  9. )
  10.  
  11. (:action podnies-z-paczki
  12.  
  13. ;x-co podnosze
  14. ;z-z czego podnosze
  15. :parameters (?x ?z)
  16. :precondition
  17. (and
  18. (clear ?x)
  19. (on-top ?x ?z)
  20. (not (exists (?y) (podniesiony ?y)))
  21. )
  22. :effect
  23. (and
  24. (podniesiony ?x)
  25. (not (on-top ?x ?z))
  26. (clear ?z)
  27. )
  28. );action podnies-z-paczki
  29.  
  30. (:action opusc-na-paczke
  31. :parameters (?x ?z) ;gdzie co
  32. ;x na co kladziemy
  33. ;z co kladizemy
  34. :precondition
  35. (and
  36. (podniesiony ?z)
  37. (clear ?x)
  38. )
  39. :effect
  40. (and
  41. (not (podniesiony ?z))
  42. (on-top ?z ?x )
  43. (clear ?z)
  44. (not (clear ?x))
  45. )
  46. );action opusc-na-paczke
  47.  
  48. (:action podnies-z-podlogi
  49. :parameters (?x)
  50. :precondition
  51. (and
  52. (clear ?x)
  53. (on-floor ?x)
  54. (not (exists (?y) (podniesiony ?y)))
  55. )
  56. :effect
  57. (and
  58. (podniesiony ?x)
  59. (not (on-floor ?x))
  60. )
  61. );action podnies-z-podlogi
  62.  
  63. (:action opusc-na-podloge
  64. :parameters (?x)
  65. :precondition
  66. (and
  67. (podniesiony ?x)
  68. (not(on-floor ?x))
  69. )
  70. :effect
  71. (and
  72. (not (podniesiony ?x))
  73. (on-floor ?x)
  74. )
  75. );action opusc-na-podloge
  76. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement