gen_all_partially_grounded_actions(executor, state, action_names=None, action_filter=None, filter_static=True, allow_macro_operator=False)[source]#

Generate all partially grounded actions in a state. Partially grounded actions are actions with only object-typed arguments grounded. For Value-typed arguments, the resulting OperatorApplier object will have arguments that are placeholders (i.e., UnnamedPlaceholder objects). Note that, as generate_all_grounded_actions(), this function does not check if the action is applicable at the current state.

  • executor (PDSketchExecutor) – a PDSketchExecutor object.

  • state (State) – the current state.

  • action_names (Sequence[str] | None) – a list of action names to generate. If None, all actions will be generated.

  • action_filter (Callable[[OperatorApplier], bool] | None) – a function that takes an OperatorApplier object and returns a boolean value indicating whether the action should be included in the result.

  • filter_static (bool) – whether to use the filter_static_actions() function to filter out static actions. The function will check all static predicates in the domain and remove actions that will never been applicable.

  • allow_macro_operator (bool) – whether to allow macro operators.


a list of partially grounded actions.

Return type: