ompl::control::ProductGraph Class Reference

A ProductGraph represents the weighted, directed, graph-based Cartesian product of a PropositionalDecomposition object, an Automaton corresponding to a co-safe LTL specification, and an Automaton corresponding to a safe LTL specification. More...

#include <ompl/control/planners/ltl/ProductGraph.h>

List of all members.

Classes

struct  Edge
class  State
 A State of a ProductGraph represents a vertex in the graph-based Cartesian product represented by the ProductGraph. A State is simply a tuple consisting of a PropositionalDecomposition region, a co-safe Automaton state, and a safe Automaton state. More...

Public Member Functions

 ProductGraph (const PropositionalDecompositionPtr &decomp, const AutomatonPtr &cosafetyAut, const AutomatonPtr &safetyAut)
 Initializes a ProductGraph with a given PropositionalDecomposition, co-safe Automaton, and safe Automaton.
 ProductGraph (const PropositionalDecompositionPtr &decomp, const AutomatonPtr &cosafetyAut)
 Initializes an abstraction with a given propositional decomposition and cosafety automaton. The safety automaton is set to be one that always accepts.
const
PropositionalDecompositionPtr
getDecomp () const
 Returns the PropositionalDecomposition contained within this ProductGraph.
const AutomatonPtrgetCosafetyAutom () const
 Returns the co-safe Automaton contained within this ProductGraph.
const AutomatonPtrgetSafetyAutom () const
 Returns the safe Automaton contained within this ProductGraph.
std::vector< State * > computeLead (State *start, const boost::function< double(State *, State *)> &edgeWeight)
 Returns a shortest-path sequence of ProductGraph states, beginning with a given initial State and ending with a State for which the corresponding safety Automaton state is accepting, and the corresponding co-safety Automaton state is as close as possible to an accepting state given the adjacency properties of the PropositionalDecomposition. Dijkstra's shortest-path algorithm is used to compute the path with the given edge-weight function.
void clear ()
 Clears all memory belonging to this ProductGraph.
void buildGraph (State *start, const boost::function< void(State *)> &initialize=ProductGraph::noInit)
 Constructs this ProductGraph beginning with a given initial State, using a breadth-first search. Accepts an optional initialization method, which will be called exactly once on each State (including the given initial State) that is added to the ProductGraph. The default argument for the initialization method is a no-op method.
bool isSolution (const State *s) const
 Returns whether the given State is an accepting State in this ProductGraph. We call a State accepting if its safety Automaton state component is accepting, and its co-safety Automaton state component is as close as possible to an accepting state in the co-safety Automaton given the adjacency properties of the PropositionalDecomposition.
StategetStartState (void) const
 Returns the initial State of this ProductGraph.
double getRegionVolume (const State *s)
 Helper method to return the volume of the PropositionalDecomposition region corresponding to the given ProductGraph State.
int getCosafeAutDistance (const State *s) const
 Helper method to return the distance from a given State's co-safety state to an accepting state in the co-safety Automaton.
int getSafeAutDistance (const State *s) const
 Helper method to return the distance from a given State's safety state to an accepting state in the safety Automaton.
StategetState (const base::State *cs) const
 Returns a ProductGraph State with initial co-safety and safety Automaton states, and the PropositionalDecomposition region that contains a given base::State.
StategetState (const base::State *cs, int cosafe, int safe) const
 Returns a ProductGraph State with given co-safety and safety Automaton states, and the PropositionalDecomposition region that contains a given base::State.
StategetState (const State *parent, int nextRegion) const
 Returns a ProductGraph State with a given PropositionalDecomposition region. The co-safety and safety Automaton states are calculated using a given parent ProductGraph State and the decomposition region.
StategetState (const State *parent, const base::State *cs) const
 Returns a ProductGraph state with the PropositionalDecomposition region that contains a given base::State. The co-safety and safety Automaton states are calculated using a given parent ProductGraph State and the decomposition region.
StategetState (int region, int cosafe, int safe) const
 Returns the ProductGraph state corresponding to the given region, co-safety state, and safety state.

Protected Types

typedef boost::adjacency_list
< boost::vecS, boost::vecS,
boost::directedS, State
*, Edge
GraphType
typedef boost::graph_traits
< GraphType >
::vertex_descriptor 
Vertex
typedef boost::graph_traits
< GraphType >::vertex_iterator 
VertexIter
typedef boost::property_map
< GraphType,
boost::vertex_index_t >::type 
VertexIndexMap
typedef boost::graph_traits
< GraphType >::edge_iterator 
EdgeIter

Static Protected Member Functions

static void noInit (State *s)

Protected Attributes

PropositionalDecompositionPtr decomp_
AutomatonPtr cosafety_
AutomatonPtr safety_
GraphType graph_
StatestartState_
std::vector< State * > solutionStates_
boost::unordered_map< State,
State * > 
stateToPtr_
boost::unordered_map< State
*, int > 
stateToIndex_

Detailed Description

A ProductGraph represents the weighted, directed, graph-based Cartesian product of a PropositionalDecomposition object, an Automaton corresponding to a co-safe LTL specification, and an Automaton corresponding to a safe LTL specification.

Definition at line 67 of file ProductGraph.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines