Julia Package for generating Hybrid Funnel Graphs with discrete and continuous variables and constraints.
- Open your Julia REPL by typing
julia
in your terminal. - Press
]
on your keyboard to enter the package manager - Enter command
add https://github.com/adubredu/HybridFunnelGraphs.jl
and pressEnter
on your keyboard to install this package. - Press the
Backspace
key on your keyboard to return to the REPL
A Hybrid Funnel Graph is generated from .hpd files that describe an optimal constrained task planning problem. Two .hpd
files are required to generate a Hybrid Funnel Graph. The first .hpd
file is one which contains a description of the planning domain and contains specifications of action primitives. The second .hpd
file required is one that describes the initial and final states of continuous and symbolic propositions as well as any external constraints and an objective function.
Here's an example usage of this package:
using HybridFunnelGraphs
# gets path to .hpd files
path = joinpath(dirname(pathof(HybridFunnelGraphs)), "..", "test/hpd")
domain_path = joinpath(path, "domain.hpd")
problem_path = joinpath(path, "problem.hpd")
#creates a Hybrid Funnel Graph struct from .hpd files
graph = create_funnel_graph(domain_path, problem_path)
A Hybrid Funnel Graph (HFG) has the following key attributes:
num_levels
: Integer-valued number of state levels in the HFGacts
: A dictionary whose keys are level indices and values are lists of funnels in the corresponding level.props
: A dictionary whose keys are level indices and values are lists of dictionaries of discrete and continuous propositions in the corresponding level.initprops
: A dictionary of discrete and continuous initial propositions.goalprops
: A dictionary of discrete and continuous goal propositions.