concepts.pdsketch.planners.optimistic_search.ground_action#
- ground_action(executor, action, assignments)[source]#
Ground a single action with a given assignment to the underlying CSP. Basically, this function looks up the assigned value of each optimistic variable that appear in action parameters.
- Parameters:
executor (PDSketchExecutor) – the executor.
action (OperatorApplier) – the action to be grounded.
assignments (Dict[int, Assignment]) – the solution to the underlying CSP.
- Returns:
the grounded action.
- Return type: