up_SMT_engine.helper_functions.PartialOrderPlanFix

Functions

custom_replace_action_instances(plan, ...)

Custom function for replacing action instances of a partial_order_plan The original function has two errors.

up_SMT_engine.helper_functions.PartialOrderPlanFix.custom_replace_action_instances(plan, replace_function: Callable[[ActionInstance], Optional[ActionInstance]]) Plan[source]

Custom function for replacing action instances of a partial_order_plan The original function has two errors. First for plans of length 1 with no successors the plan is discarded. Second the successors are duplicated. Returns a new PartialOrderPlan where every ActionInstance of the current plan is replaced using the given replace_function.

Parameters:

replace_function – The function that applied to an ActionInstance A returns the ActionInstance B; B replaces A in the resulting Plan.

Returns:

The PartialOrderPlan where every ActionInstance is replaced using the given replace_function.