Closed o-fir closed 2 years ago
The problem came from the fact that the goal was not simplified after method instantiation. Indeed, method instantiation removes actions that are not reachable by decomposition from the initial task network. Thus, fluents could become no more reachable. It is the case in your example for both fluents of the goal. The bug is fixed.
Getting a null pointer exception when trying to instantiate a problem that's clearly not satisfiable
If my goal state contains
(task_performed task1)
, but I don't declare an(is_child task1 SOME_ACTIVITY)
predicate, which is required to perform the task, I get a NPE.To reproduce this behaviour, you can use the domain and problem below. Adding
(is_child task1 a_no_children) (is_child task2 a_no_children)
to the initial state fixes the problem.My domain:
My problem: