ExecutionEnvironment

class unified_planning.model.contingent.ExecutionEnvironment(problem: ContingentProblem)[source]

Bases: object

A base class that defines the interface for an environment in the planning domain.

apply(action: ActionInstance) Dict[FNode, FNode][source]

Applies the given action to the current state of the environment and returns the resulting observation.

Parameters:

action – A ActionInstance object representing the action to apply.

Returns:

A dictionary mapping the fluent expressions observed by the sensing action to their corresponding values.

is_goal_reached() bool[source]

Determines whether the goal of the planning problem has been reached in the current state of the environment.

Returns:

A boolean value indicating whether the goal has been reached.