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

Typo of PDDL writer for 'at' predicate in problem file #655

Open
LamannaLeonardo opened this issue Dec 28, 2024 · 0 comments
Open

Typo of PDDL writer for 'at' predicate in problem file #655

LamannaLeonardo opened this issue Dec 28, 2024 · 0 comments

Comments

@LamannaLeonardo
Copy link

The PDDL writer (v1.2.0) seems to introduce a typo when writing a PDDL problem file involving a unary predicate named at, e.g. (at c0) is written as (at_ c0).

Here is a code snippet to reproduce the issue:

from unified_planning.shortcuts import *
from unified_planning.io import PDDLWriter

problem = Problem("test")
obj_type = UserType("object")
at = Fluent("at", BoolType(), obj=obj_type)
problem.set_initial_value(at(Object('c0', obj_type)), True)
PDDLWriter(problem).write_problem('prob.pddl')

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