Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ho to solve problems with pddl 2.1? #107

Open
antbono opened this issue May 9, 2023 · 2 comments
Open

Ho to solve problems with pddl 2.1? #107

antbono opened this issue May 9, 2023 · 2 comments
Labels

Comments

@antbono
Copy link

antbono commented May 9, 2023

Hi everyone!

I am trying to solve a problem of a simple domain attached.
Looking in the planners package, it seems the neither STN or statespace planners supports durative actions and fluents (pddl 2.1).
Can anyone confirm that?
Thanks

(define (domain simple)
(:requirements :strips :typing :adl :fluents :durative-actions)

;; Types ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(:types
robot
room
);; end Types ;;;;;;;;;;;;;;;;;;;;;;;;;

;; Predicates ;;;;;;;;;;;;;;;;;;;;;;;;;
(:predicates

(robot_at ?r - robot ?ro - room)
(connected ?ro1 ?ro2 - room)
(battery_full ?r - robot)
(battery_low ?r - robot)
(charging_point_at ?ro - room)

);; end Predicates ;;;;;;;;;;;;;;;;;;;;
;; Functions ;;;;;;;;;;;;;;;;;;;;;;;;;
(:functions

);; end Functions ;;;;;;;;;;;;;;;;;;;;
;; Actions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(:durative-action move
    :parameters (?r - robot ?r1 ?r2 - room)
    :duration ( = ?duration 5)
    :condition (and
        (at start(connected ?r1 ?r2))
        (at start(robot_at ?r ?r1))
        (over all(battery_full ?r))
        )
    :effect (and
        (at start(not(robot_at ?r ?r1)))
        (at end(robot_at ?r ?r2))
    )
)

(:durative-action askcharge
    :parameters (?r - robot ?r1 ?r2 - room)
    :duration ( = ?duration 5)
    :condition (and
        (at start(robot_at ?r ?r1))
        (at start(charging_point_at ?r2))
       )
    :effect (and
        (at start(not(robot_at ?r ?r1)))
        (at end(robot_at ?r ?r2))
    )
)

(:durative-action charge
    :parameters (?r - robot ?ro - room)
    :duration ( = ?duration 5)
    :condition (and
        (at start(robot_at ?r ?ro))
        (at start(charging_point_at ?ro))
    )
    :effect (and
         (at end(not(battery_low ?r)))
         (at end(battery_full ?r))
    )
)

);; end Domain ;;;;;;;;;;;;;;;;;;;;;;;;

@antbono antbono changed the title Ho to solve problems with durative actions? Ho to solve problems with pddl 2.1? May 9, 2023
@pellierd
Copy link
Owner

There is no planner able to deal with PDDL2.1. To implement a simple temporal planner based on non temporal planning you can refer to PDDL2.1: An Extension to PDDL for Expressing Temporal Planning Domains written by D. Long and M. Fox.

@antbono
Copy link
Author

antbono commented May 11, 2023

Thank you @pellierd!
Could you suggest me the most recent/advanced type of problem that the solvers in pddl4j can solve at the moment and some related benchmark files? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants