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

Error unknown predicate and used in precondition of action #26

Open
MATTYGILO opened this issue Mar 18, 2024 · 1 comment
Open

Error unknown predicate and used in precondition of action #26

MATTYGILO opened this issue Mar 18, 2024 · 1 comment

Comments

@MATTYGILO
Copy link

I am getting this error:

Error unknown predicate and used in precondition of action

from this code:

    (:action PICKUP_NORMAL
        :parameters (?b - Bot ?a - Aisle ?s - Shelf)
        ; The bot is in the aisle (At ?b ?a)
        ; The bot is not holding anything (not (Holding ?b))
        ; The bot can pick up (CanPickUp ?a ?s)
        ; The shelf must not be weighed (not (WeighableShelf ?s))
        :precondition (and
            (At ?b ?a)
            (and
                (not (Holding ?b))
                (and
                    (CanPickUp ?a ?s)
                    (not (WeighableShelf ?s))
                )

            )
        )
        ; The bot is holding something (Holding ?b)
        ; The bot is holding the shelf (HoldingShelf ?b ?s)
        :effect (and
            (Holding ?b)
            (HoldingShelf ?b ?s)
        )
    )
@roeger
Copy link

roeger commented Mar 18, 2024

How does the (:predicates ...) section in your domain file look like? Did you declare all predicates there?

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

2 participants