pddl-lib
pddl-lib copied to clipboard
Unable to parse my pddl files, please find the attached files
This is my error during executing with pddl-lib
domain file
(define (domain Moveblocks) (:requirements :strips :typing :fluents :durative-actions) (:types block table ) (:predicates (on ?A - block ?C - block) (onTable ?C - block) (clear ?B - block) ) ;; Move C-block to table (:durative-action MoveToTable :parameters (?A ?C - block) :duration ( = ?duration 30) :condition (and (at start (on ?C ?A)) (at start (clear ?C))) :effect (and (at start (not (on ?C ?A))) (at end(ontable ?C)) (at end(clear ?A)) ) ) ;; Move BLOCK ON TOP OF ANOTHER BLOCK (:durative-action MoveTo :parameters (?B ?C - block) :duration ( = ?duration 60) :condition (and (at start (ontable ?B)) (at start(clear ?B)) (at start (clear ?C)) ) :effect (and (at end (on ?B ?C)) (at end (clear ?B)) ) ) )
problem file
(define (problem task) (:domain task) (:objects A B C - block T - table ) (:init (onTable A) (onTable B) (on C A) (clear B) (clear C) ) (:goal (and (on B C) (on A B) )) )
I've merged the time-duration feature just yesterday, and it sure would benefit from having more tests and examples. I should work on this a lot more.
But still I have the same error as the above screen shot.Do you know from where the problem is raised.
The duration feature is not yet available in the published library. The source code that gives support to it was recently merged. I am working on it right now. Sorry for the inconvenience.
I installed it after merging the files but still I have the error. May be you can add some domain and problem files in the examples python.
I am finding that the HEAD version does not pass some tests. Some debugging is required.
Right now, my only advice is to use the older version published in PyPi which regrettably doesn't support time-duration.
If the action named with the (:durative-action it gives you error. Can you please check the reason behind it? So what I did is just removed durative- and executed it. But I am unable to access preconditions and effects because it has keywords at start and at end. It would be very helpful if you clear these bugs.
While refactoring the project (removing .NET and Python 2 support) I've found that HEAD now breaks the shipped examples and tests. I will most probably move this merge to a branch and revert master to the last working revision and keep working on the branch until this feature passes tests and can be shipped with examples.
Please update here if it works with durative-actions.