pddl-lib icon indicating copy to clipboard operation
pddl-lib copied to clipboard

Unable to parse my pddl files, please find the attached files

Open Avinash439 opened this issue 5 years ago • 8 comments

This is my error during executing with pddl-lib Screenshot from 2019-11-18 17-56-35

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

Avinash439 avatar Nov 19 '19 10:11 Avinash439

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.

hfoffani avatar Nov 19 '19 16:11 hfoffani

But still I have the same error as the above screen shot.Do you know from where the problem is raised.

Avinash439 avatar Nov 20 '19 10:11 Avinash439

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.

hfoffani avatar Nov 20 '19 12:11 hfoffani

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.

Avinash439 avatar Nov 20 '19 14:11 Avinash439

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.

hfoffani avatar Nov 20 '19 15:11 hfoffani

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.

Avinash439 avatar Nov 28 '19 18:11 Avinash439

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.

hfoffani avatar Nov 29 '19 10:11 hfoffani

Please update here if it works with durative-actions.

Avinash439 avatar Dec 04 '19 17:12 Avinash439