5. rafcontpp.planner package¶
5.1. Submodules¶
5.2. rafcontpp.planner.fast_downward_integration module¶
-
class
rafcontpp.planner.fast_downward_integration.
FdIntegration
[source]¶ Bases:
rafcontpp.model.planner_interface.PlannerInterface
This is the integration Script for the Fast downward Planning System by Malte Helmert Et al. (fast-downward.org)
-
_FdIntegration__copy_and_clean
(plan_path, outsas_path, storage_path)¶ Copy and clean moves all generated files to the storage_path, and writes their names into a list.
Parameters: - plan_path – The path of the plan.
- outsas_path – The path of the outsas file.
- storage_path – The storage path.
Returns: [String]: A list with the names of the moved files.
-
_FdIntegration__parse_raw_plan
(plan_path)¶ Parameters: plan_path – The path of the plan file. Returns: [PlanStep]: A parsed plan.
-
_FdIntegration__translate_fd_exit_code
(fd_exit)¶ receives an error code and returns the corresponding error message.
Parameters: fd_exit – An exit code Returns: String: The corresponding error message.
-
is_available
()[source]¶ Returns: Boolean: True, if the planner is available in the system, false otherwise.
-
plan_scenario
(domain_path, facts_path, planner_argv, storage_path)[source]¶ plan_scenario, uses the given arguments to plan a task, parse the plan into a list of PlanSteps, and returns them in a PlanningReport.
Parameters: - domain_path – The absolute path of the domain file as string.
- facts_path – The absolute path of the facts file as string.
- planner_argv – Some additional planner args as string array.
- storage_path – The location, where to save all produced artefacts (like a plan file) in. as string.
Returns: PlanningReport: A PlanningReport (rafcontpp.model.planning_report).
-
5.3. rafcontpp.planner.fast_forward_integration module¶
-
class
rafcontpp.planner.fast_forward_integration.
FfIntegration
[source]¶ Bases:
rafcontpp.model.planner_interface.PlannerInterface
This is the integration script for the Fast-Forward Planning System version 2.3 by Hoffmann (https://fai.cs.uni-saarland.de/hoffmann/ff.html)
-
_FfIntegration__parse_console_output
(to_parse)¶ Receives the console output, and parses the plan out of it.
Parameters: to_parse – The console output. Returns: [PlanStep]: A parsed plan.
-
is_available
()[source]¶ Returns: Boolean: True, if the planner is available in the system, false otherwhise.
-
plan_scenario
(domain_path, facts_path, planner_argv, storage_path)[source]¶ plan_scenario, uses the given arguments to plan a task, parse the plan into a list of PlanSteps, and returns them in a PlanningReport.
Parameters: - domain_path – The absolute path of the domain file as string.
- facts_path – The absolute path of the facts file as string.
- planner_argv – Some additional planner args as string array.
- storage_path – The location, where to save all produced artefacts (like a plan file) in. as string.
Returns: PlanningReport: A PlanningReport (rafcontpp.model.planning_report).
-