PropositionalDecomposition.cpp
46 ompl::control::PropositionalDecomposition::PropositionalDecomposition(const DecompositionPtr &decomp)
68 void ompl::control::PropositionalDecomposition::project(const base::State *s, std::vector<double> &coord) const
73 void ompl::control::PropositionalDecomposition::getNeighbors(int rid, std::vector<int> &neighbors) const
78 void ompl::control::PropositionalDecomposition::sampleFromRegion(int rid, RNG &rng, std::vector<double> &coord) const
83 void ompl::control::PropositionalDecomposition::sampleFullState(const base::StateSamplerPtr &sampler,
Random number generation. An instance of this class cannot be used by multiple threads at once (membe...
Definition: RandomNumbers.h:89
double getRegionVolume(int rid) override
Returns the volume of a given region.
Definition: PropositionalDecomposition.cpp:58
int getNumRegions() const override
Returns the number of regions in this propositional decomposition's underlying decomposition.
Definition: PropositionalDecomposition.cpp:53
void sampleFullState(const base::StateSamplerPtr &sampler, const std::vector< double > &coord, base::State *s) const override
Samples a State using a projected coordinate and a StateSampler.
Definition: PropositionalDecomposition.cpp:83
~PropositionalDecomposition() override
Clears all memory belonging to this propositional decomposition.
A Decomposition is a partition of a bounded Euclidean space into a fixed number of regions which are ...
Definition: Decomposition.h:126
void getNeighbors(int rid, std::vector< int > &neighbors) const override
Stores a given region's neighbors into a given vector.
Definition: PropositionalDecomposition.cpp:73
PropositionalDecomposition(const DecompositionPtr &decomp)
Creates a propositional decomposition wrapped around a given decomposition with a given number of pro...
Definition: PropositionalDecomposition.cpp:46
A shared pointer wrapper for ompl::control::Decomposition.
void sampleFromRegion(int rid, RNG &rng, std::vector< double > &coord) const override
Samples a projected coordinate from a given region.
Definition: PropositionalDecomposition.cpp:78
int locateRegion(const base::State *s) const override
Returns the region of the underlying decomposition that contains a given State.
Definition: PropositionalDecomposition.cpp:63
void project(const base::State *s, std::vector< double > &coord) const override
Project a given State to a set of coordinates in R^k, where k is the dimension of this Decomposition.
Definition: PropositionalDecomposition.cpp:68