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

Abstract Task written incorrectly by parsedProblem.toString function for HDDL domains #111

Open
gaspard-quenard opened this issue Aug 31, 2023 · 0 comments

Comments

@gaspard-quenard
Copy link

To continue the #110 issue, there is also a problem to represent the abstract tasks. If I run the function parsedProblem.toString for the domain: ipc2020/Blockworld-GTOHP/domain.hddl, it gives me:

;...

(:tasks 
  (do_put_on ?x - BLOCK ?y - BLOCK)
  (do_on_table ?x - BLOCK)
  (do_move ?x - BLOCK ?y - BLOCK)
  (do_clear ?x - BLOCK)
  (pick-up ?x - BLOCK)
  (put-down ?x - BLOCK)
  (stack ?x - BLOCK ?y - BLOCK)
  (unstack ?x - BLOCK ?y - BLOCK)
  (nop)
  (pick-up ?x - BLOCK)
  (put-down ?x - BLOCK)
  (stack ?x - BLOCK ?y - BLOCK)
  (unstack ?x - BLOCK ?y - BLOCK)
  (nop)
  )

;...

But it seems that the hddl parser does not accept the :tasks keyword, only :task and it is used only for abstract task. So it should be:

;...

(:task do_put_on
:parameters (?x - block ?y - block) )

(:task do_on_table
:parameters (?x - block) )

(:task do_move
:parameters (?x - block ?y - block) )

(:task do_clear
:parameters (?x - block) )

;...

Would it be possible to make this change as well ? Thanks

@gaspard-quenard gaspard-quenard changed the title Abstract Task written incorectly by parsedProblem.toString function for HDDL domains Abstract Task written incorrectly by parsedProblem.toString function for HDDL domains Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant