concepts.dm.crow.csp_solver.csp_utils.csp_ground_action#
- csp_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 (CrowExecutor) – the executor.
action (CrowControllerApplier) – the action to be grounded.
assignments (Dict[int, Assignment]) – the solution to the underlying CSP.
- Returns:
the grounded action.
- Return type: