concepts.pdsketch.planners.discrete_search.goal_test#
- goal_test(executor, state, goal_expr, trajectory, mpt_tracker=None, verbose=False)[source]#
Test whether a state satisfies a goal expression.
- Parameters:
executor (PDSketchExecutor) – the executor.
state (State) – the state to be tested.
goal_expr (ValueOutputExpression) – the goal expression.
trajectory (Sequence[OperatorApplier]) – the trajectory that leads to the current state.
mpt_tracker (MostPromisingTrajectoryTracker | None) – the tracker for the most promising trajectory.
verbose – whether to print the verbose information.
- Returns:
True if the state satisfies the goal expression.
- Return type: