XXLPlanarDecomposition.h
57 const int thetaSlices, double thetaLowerBound, double thetaUpperBound, bool diagonalEdges = false);
87 virtual bool sampleFromRegion(int r, base::State* s, const base::State* seed = nullptr) const = 0;
90 virtual bool sampleFromRegion(int r, base::State* s, const base::State* seed, int layer) const = 0;
virtual int locateRegion(const base::State *s) const
Return the id of the region that this state falls in.
Definition: XXLPlanarDecomposition.cpp:147
Random number generation. An instance of this class cannot be used by multiple threads at once (membe...
Definition: RandomNumbers.h:89
int gridCellToRid(const std::vector< int > &cell) const
Return the region id corresponding to the (discrete) grid cell coordinates.
Definition: XXLPlanarDecomposition.cpp:302
virtual int numLayers() const =0
Return the number of layers possible in this decomposition. Must be at least 1.
virtual bool sampleFromRegion(int r, base::State *s, const base::State *seed=nullptr) const =0
Sample a state s from region r in layer 0.
virtual void project(const base::State *s, std::vector< double > &coord, int layer=0) const =0
Project the given State into the XXLDecomposition.
virtual int getNumRegions() const
Return the total number of regions in this decomposition.
Definition: XXLPlanarDecomposition.cpp:137
virtual void getNeighbors(int rid, std::vector< int > &neighbors) const
Stores the given region's neighbors into a given vector.
Definition: XXLPlanarDecomposition.cpp:159
virtual double distanceHeuristic(int r1, int r2) const
An admissible and consistent distance heuristic between two regions. Manhattan distance on grid.
Definition: XXLPlanarDecomposition.cpp:311
int coordToRegion(const std::vector< double > &coord) const
Return the region id of the given coordinate in the decomposition.
Definition: XXLPlanarDecomposition.cpp:274
virtual int getDimension() const
Return the dimension of this HiLoDecomposition.
Definition: XXLPlanarDecomposition.cpp:142
virtual void getNeighborhood(int rid, std::vector< int > &neighborhood) const
Stores the given region's neighbors into the vector. This returns the 8-connected grid neighbors of t...
Definition: XXLPlanarDecomposition.cpp:169
bool hasDiagonalEdges() const
Return true if the decomposition has diagonal edges.
Definition: XXLPlanarDecomposition.cpp:333
The lower and upper bounds for an Rn space.
Definition: RealVectorBounds.h:111