TriangularDecomposition.h
162 void sampleFullState(const base::StateSamplerPtr & /*sampler*/, const std::vector<double> & /*coord*/,
165 }
void sampleFromRegion(int triID, RNG &rng, std::vector< double > &coord) const override
Samples a projected coordinate from a given region.
Definition: TriangularDecomposition.cpp:172
double getRegionVolume(int triID) override
Returns the volume of a given region in this Decomposition.
Definition: TriangularDecomposition.cpp:134
virtual int getDimension() const
Returns the dimension of this Decomposition.
Definition: Decomposition.h:147
A GridDecomposition is a Decomposition implemented using a grid.
Definition: GridDecomposition.h:117
int getRegionOfInterestAt(int triID) const
Returns the region of interest that contains the given triangle ID. Returns -1 if the triangle ID is ...
Definition: TriangularDecomposition.cpp:129
virtual int createTriangles()
Helper method to triangulate the space and return the number of triangles.
Definition: TriangularDecomposition.cpp:212
virtual const base::RealVectorBounds & getBounds() const
Returns the bounds of this Decomposition.
Definition: Decomposition.h:153
A Decomposition is a partition of a bounded Euclidean space into a fixed number of regions which are ...
Definition: Decomposition.h:126
virtual void sampleFullState(const base::StateSamplerPtr &sampler, const std::vector< double > &coord, base::State *s) const =0
Samples a State using a projected coordinate and a StateSampler.
int locateRegion(const base::State *s) const override
Returns the index of the region containing a given State. Most often, this is obtained by first calli...
Definition: TriangularDecomposition.cpp:152
virtual void project(const base::State *s, std::vector< double > &coord) const =0
Project a given State to a set of coordinates in R^k, where k is the dimension of this Decomposition.
int getNumRegions() const override
Returns the number of regions in this Decomposition.
Definition: TriangularDecomposition.h:195
void getNeighbors(int triID, std::vector< int > &neighbors) const override
Stores a given region's neighbors into a given vector.
Definition: TriangularDecomposition.cpp:147
std::vector< int > intRegInfo_
Maps from triangle ID to index of Polygon in intReg_ that contains the triangle ID....
Definition: TriangularDecomposition.h:239
Main namespace. Contains everything in this library.
Definition: MultiLevelPlanarManipulatorDemo.cpp:65
TriangularDecomposition(const base::RealVectorBounds &bounds, std::vector< Polygon > holes=std::vector< Polygon >(), std::vector< Polygon > intRegs=std::vector< Polygon >())
Creates a TriangularDecomposition over the given bounds, which must be 2-dimensional....
Definition: TriangularDecomposition.cpp:75