patrick
/
plasp
Archived
1
0
Fork 0
Commit Graph

93 Commits

Author SHA1 Message Date
Patrick Lühne 2288fa891e
Replacing user-defined variable names.
This replaces all user-defined variable names with continuously numbered
ones so that they don’t lead to syntax problems in ASP, while still
unique and distinguishable. For instance, this avoids problems when
variable names contain hyphens, which are allowed in PDDL identifiers
but not in ASP variables.
2017-11-25 00:37:09 +01:00
Patrick Lühne b21b4f47bf
Made form of variables within values consistent.
Previously, variables referenced within values were unpacked within
values. This was inconsistent, because all predicates are usually used
in their unpacked form in the rest of the output format. This commit
makes this consistent by using variables in their packed form within
values, making it more compact to handle them.
2017-11-03 01:49:24 +01:00
Patrick Lühne e87f86af95
Removed Boost dependency in assertions.
Instead of using BOOST_ASSERT, this commit changes all assertions to
plain C-style assertions in order to drop the dependency to Boost.
2017-10-28 16:49:15 +02:00
Patrick Lühne 27f773e091
Added support for derived predicates in goals.
By accident, the support for derived predicates in goals was missing.
This commit adds this, in a very similar way to how normal predicates
are handled in the goal description.
2017-10-27 16:46:38 +02:00
Patrick Lühne 6d07fcbd6c
Moved initial state translation to new header. 2017-10-27 16:38:01 +02:00
Patrick Lühne 6415f871d7
Error for derived predicates in initial state.
Previously, derived predicates in the initial state weren’t handled at
all. That’s not an issue, because derived predicates shouldn’t occur in
the initial state. However, as a defensive measure, this commit adds an
error thrown in such cases.
2017-10-27 16:27:33 +02:00
Patrick Lühne feaef5a3fa
Translating derived predicates of problems.
While derived predicates stemming from the domain were already
translated, the ones from the problem were missing. This commit fixes
that, although it duplicates the definition of “contains.”
2017-10-27 16:21:54 +02:00
Patrick Lühne 9803710ff3
Fixed typo. 2017-10-25 19:00:54 +02:00
Patrick Lühne 4d8525f52d
Added comment for consistency. 2017-10-25 18:03:11 +02:00
Patrick Lühne 9199b68080
Renamed “pddlparse” library to simply “pddl”. 2017-08-09 17:52:50 +02:00
Patrick Lühne b282225363
Moved util predicates to separate section. 2017-06-28 01:00:36 +02:00
Patrick Lühne a5038535f4
Added missing argument to ASP predicate. 2017-06-28 00:35:28 +02:00
Patrick Lühne d82ae8544b
Implemented translation of conditional PDDL effects. 2017-06-28 00:33:00 +02:00
Patrick Lühne f61cfa532d
Added support for unconditional “forall” effect statements. 2017-06-27 23:17:32 +02:00
Patrick Lühne 0eff8e5dcf
Only enumerating existentially bound parameters for “and” expressions. 2017-06-27 16:52:50 +02:00
Patrick Lühne 6c9ca0ccb8
Implemented translation of derived predicates. 2017-06-24 23:54:57 +02:00
Patrick Lühne 9d1a8f4c0f
Started implementing PDDL normalization. 2017-06-23 04:18:07 +02:00
Patrick Lühne 2851f8d286
Corrected grammar of initial state facts. 2017-06-23 03:41:52 +02:00
Patrick Lühne e93085d88a
Moved color logging to separate library for reusing it in PDDL parser. 2017-06-22 20:58:31 +02:00
Patrick Lühne e345fd60fd
Reimplemented plasp with PDDL parsing library. 2017-06-20 01:53:55 +02:00
Patrick Lühne 586f53a788
Restructured functions related to translation of predicates. 2016-12-08 01:27:38 +01:00
Patrick Lühne 8587aa23c4
Put functions related to translation of variables in separate file. 2016-12-08 01:05:39 +01:00
Patrick Lühne 66cb09c8e4
Fixed incorrect auxiliary rule for derived predicates. 2016-12-08 00:54:13 +01:00
Patrick Lühne 6355921e59
Implemented preconditions for derived predicates. 2016-12-08 00:52:09 +01:00
Patrick Lühne 4172d320e4
Cleaned up output of translated derived predicates. 2016-12-07 23:26:46 +01:00
Patrick Lühne a8ba375e36
Implemented printing body of derived predicate definition rules. 2016-12-07 02:58:25 +01:00
Patrick Lühne 2334686c59
Renamed arguments to parameters in predicate declarations. 2016-12-07 02:55:44 +01:00
Patrick Lühne ebab65e233
Refactoring to avoid dynamic casts. 2016-12-07 02:29:48 +01:00
Patrick Lühne 692d3fe83a
Refactoring to avoid checking expression types via type enum. 2016-12-07 02:11:54 +01:00
Patrick Lühne 3b110c0b8a
Started implementing translation for derived predicates. 2016-12-07 01:56:06 +01:00
Patrick Lühne c4e19dddae
Refactoring to use cleaner output implementation. 2016-11-29 06:03:05 +01:00
Patrick Lühne 7aa20a5820 Refactored expressions thanks to intrusive pointers. 2016-09-04 18:48:46 +02:00
Patrick Lühne 9afabacde3 Switched to intrusive pointers for much easier maintenance. 2016-09-04 18:26:02 +02:00
Patrick Lühne c528626fe9 Preparing more general form of PDDL normalization. 2016-09-02 16:39:42 +02:00
Patrick Lühne e312740629 Fixed syntax error in output. 2016-08-18 14:39:40 +02:00
Patrick Lühne 21c337e0fa Removed now obsolete ASP variable handling for PDDL. 2016-08-18 00:25:47 +02:00
Patrick Lühne 8251652445 Implemented parameter name normalization for PDDL to avoid escaping the names. 2016-08-18 00:24:10 +02:00
Patrick Lühne 5e28dd046b Further simplified the output of the PDDL variable value facts. 2016-08-18 00:00:50 +02:00
Patrick Lühne 363070b579 Replaced the two rules for the values of a PDDL variable with a single one. 2016-08-17 23:31:31 +02:00
Patrick Lühne 7bd483cd7e Added rule to PDDL translator output to make all unspecified initial state variables false by default. 2016-08-17 19:02:51 +02:00
Patrick Lühne 91019f52aa Fixed issue with unsupported expression negations. 2016-08-16 18:58:30 +02:00
Patrick Lühne 69a26cb22f Fixed undetected issue with unsupported negations. 2016-08-16 18:43:37 +02:00
Patrick Lühne cdb06fa5bf Improved output format and highlighting. 2016-08-16 18:35:55 +02:00
Patrick Lühne b8a3019e5b Made unconditional effects a keyword. 2016-08-15 16:59:28 +02:00
Patrick Lühne 08113c961a Continuously incrementing effect IDs, with a special identifier for unconditional effects. 2016-08-14 17:21:41 +02:00
Patrick Lühne 340db244f6 Fixed bug in output format. 2016-08-13 04:04:28 +02:00
Patrick Lühne 8969364f73 Fixed syntax error in output format. 2016-08-13 03:27:37 +02:00
Patrick Lühne b67168134b Made initial state definition consistent with unified output format. 2016-08-13 03:22:25 +02:00
Patrick Lühne 97d33da686 Added effect ID as a placeholder (for conditional effects) for consistency with unified output format. 2016-08-13 03:17:48 +02:00
Patrick Lühne 1f35bda3d2 Wrapped translated PDDL action definitions for usability in meta encodings. 2016-08-13 03:11:38 +02:00