codegen only.Expand description
Loads a Problem for planning code that pddl-codegen generated from a
domain.
Generated code describes its domain as a Signature: the types in
depth-first order, the predicates and functions with their argument types,
and the constants. load checks a problem against it, numbers the objects
and grounds the initial state and the goal. The generated task then copies
the facts into its typed state.
The generated code calls this module; it is public for that, not as an API
of its own, and can change with pddl-codegen.
§Numbering
Objects are numbered type by type in the order of Signature::types,
which lists every type before its subtypes and keeps each subtree together.
So the objects of a type and all its subtypes are one range,
starts[t]..ends[t], and a type check is a range check.
Structs§
- Loaded
- A problem, checked against a
Signatureand grounded. - Signature
- A domain as generated code sees it. All names are lowercase.
- Symbol
- A predicate or function with the type index of each argument.
- Type
Signature - A type and its place in the hierarchy.
Enums§
- Load
Error - Why a problem doesn’t fit a generated domain.
Functions§
- load
- Checks
problemagainstsignature, numbers its objects and grounds its initial state and goal.