Skip to content

Instantly share code, notes, and snippets.

@keysii26
Created October 21, 2018 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keysii26/2e985621cd0adad998efadd61a46adb5 to your computer and use it in GitHub Desktop.
Save keysii26/2e985621cd0adad998efadd61a46adb5 to your computer and use it in GitHub Desktop.
PDDL para el proyecto The Challenge | Don’t Forget the Can Opener
(define (domain ruta_escape)
(:requiriments :strips :typing)
(:types ubicacion localizable - objeto
persona vehiculo area - localizable)
)
(:predicates
(at ?persona - localizable ?loc- ubicacion )
(in ?persona1 - persona ?unvehiculo - vehiculo)
(disponible ?unvehiculo - vehiculo )
(evacuar ?persona - persona)
(distancia ?desde - ubicacion ?para -ubicacion)
(maximacapacidad ?unvehiculo - vehiculo)
)
(:action move
:parameters (?persona - persona
?loc - ubicacion
?unvehiculo - vehiculo
?origen - ubicacion
?destino - ubicacion
)
:precondition (and (at start ( at ?vehiculo ?origen))
(at start (> (maximacapacidad ?vehiculo) (0)))
(at start(disponible ?unvehiculo)))
:effect (and (at start (not (at ?unvehiculo ?origen)))
(at end (at ?unvehiculo ?destino))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment