Loading...
Searching...
No Matches
ProductGraph.cpp
67std::size_t ompl::control::ProductGraph::HashState::operator()(const ompl::control::ProductGraph::State &s) const
103ompl::control::ProductGraph::ProductGraph(PropositionalDecompositionPtr decomp, AutomatonPtr cosafetyAut,
109ompl::control::ProductGraph::ProductGraph(const PropositionalDecompositionPtr &decomp, AutomatonPtr cosafetyAut)
119const ompl::control::PropositionalDecompositionPtr &ompl::control::ProductGraph::getDecomp() const
135 ProductGraph::State *start, const std::function<double(ProductGraph::State *, ProductGraph::State *)> &edgeWeight)
150 .distance_map(boost::make_iterator_property_map(distances.begin(), get(boost::vertex_index, graph_)))
151 .predecessor_map(boost::make_iterator_property_map(parents.begin(), get(boost::vertex_index, graph_))));
197void ompl::control::ProductGraph::buildGraph(State *start, const std::function<void(State *)> &initialize)
213 OMPL_INFORM("Building graph from start state (%u,%u,%u) with index %d", startState_->decompRegion,
254 boost::tie(edge, ignore) = boost::add_edge(v, boost::vertex(stateToIndex_[nextState], graph_), graph_);
268 OMPL_INFORM("Number of high-level states in abstraction graph: %u", boost::num_vertices(graph_));
301ompl::control::ProductGraph::State *ompl::control::ProductGraph::getState(const base::State *cs, int cosafe,
314ompl::control::ProductGraph::State *ompl::control::ProductGraph::getState(const State *parent, int nextRegion) const
A shared pointer wrapper for ompl::control::Automaton.
A class to represent a deterministic finite automaton, each edge of which corresponds to a World....
Definition Automaton.h:71
A State of a ProductGraph represents a vertex in the graph-based Cartesian product represented by the...
Definition ProductGraph.h:84
int getDecompRegion() const
Returns this State's PropositionalDecomposition region component.
Definition ProductGraph.cpp:88
bool operator==(const State &s) const
Returns whether this State is equivalent to a given State, by comparing their PropositionalDecomposit...
Definition ProductGraph.cpp:57
bool isValid() const
Returns whether this State is valid. A State is valid if and only if none of its Automaton states are...
Definition ProductGraph.cpp:62
int getCosafeState() const
Returns this State's co-safe Automaton state component.
Definition ProductGraph.cpp:93
friend std::ostream & operator<<(std::ostream &out, const State &s)
Helper function to print this State to a given output stream.
Definition ProductGraph.cpp:79
State()=default
Creates a State without any assigned PropositionalDecomposition region or Automaton states....
int getSafeState() const
Returns this State's safe Automaton state component.
Definition ProductGraph.cpp:98
void buildGraph(State *start, const std::function< void(State *)> &initialize=[](State *) {})
Constructs this ProductGraph beginning with a given initial State, using a breadth-first search....
Definition ProductGraph.cpp:197
bool isSolution(const State *s) const
Returns whether the given State is an accepting State in this ProductGraph. We call a State accepting...
Definition ProductGraph.cpp:271
State * getStartState() const
Returns the initial State of this ProductGraph.
Definition ProductGraph.cpp:276
State * getState(const base::State *cs) const
Returns a ProductGraph State with initial co-safety and safety Automaton states, and the Propositiona...
Definition ProductGraph.cpp:296
const PropositionalDecompositionPtr & getDecomp() const
Returns the PropositionalDecomposition contained within this ProductGraph.
Definition ProductGraph.cpp:119
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 s...
Definition ProductGraph.cpp:291
std::vector< State * > computeLead(State *start, const std::function< double(State *, State *)> &edgeWeight)
Returns a shortest-path sequence of ProductGraph states, beginning with a given initial State and end...
Definition ProductGraph.cpp:134
const AutomatonPtr & getSafetyAutom() const
Returns the safe Automaton contained within this ProductGraph.
Definition ProductGraph.cpp:129
double getRegionVolume(const State *s)
Helper method to return the volume of the PropositionalDecomposition region corresponding to the give...
Definition ProductGraph.cpp:281
const AutomatonPtr & getCosafetyAutom() const
Returns the co-safe Automaton contained within this ProductGraph.
Definition ProductGraph.cpp:124
ProductGraph(PropositionalDecompositionPtr decomp, AutomatonPtr cosafetyAut, AutomatonPtr safetyAut)
Initializes a ProductGraph with a given PropositionalDecomposition, co-safe Automaton,...
Definition ProductGraph.cpp:103
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 th...
Definition ProductGraph.cpp:286
A shared pointer wrapper for ompl::control::PropositionalDecomposition.
A class to represent an assignment of boolean values to propositions. A World can be partially restri...
Definition World.h:72
This namespace contains sampling based planning routines used by planning under differential constrai...
Definition Control.h:45
Main namespace. Contains everything in this library.
Definition MultiLevelPlanarManipulatorDemo.cpp:66
STL namespace.