ProjectionEvaluator.h
90 static Matrix ComputeRandom(const unsigned int from, const unsigned int to, const std::vector<double> &scale);
104 void computeRandom(const unsigned int from, const unsigned int to, const std::vector<double> &scale);
231 void computeCoordinates(const EuclideanProjection &projection, ProjectionCoordinates &coord) const;
257 virtual void printProjection(const EuclideanProjection &projection, std::ostream &out = std::cout) const;
308 SubspaceProjectionEvaluator(const StateSpace *space, unsigned int index, const ProjectionEvaluatorPtr &projToUse = ProjectionEvaluatorPtr());
std::vector< double > cellSizes_
The size of a cell, in every dimension of the projected space, in the implicitly defined integer grid...
Definition: ProjectionEvaluator.h:270
If the projection for a CompoundStateSpace is supposed to be the same as the one for one of its inclu...
Definition: ProjectionEvaluator.h:298
bool cellSizesWereInferred_
Flag indicating whether projection cell sizes were automatically inferred.
Definition: ProjectionEvaluator.h:288
A shared pointer wrapper for ompl::base::StateSpace.
void computeCoordinates(const State *state, ProjectionCoordinates &coord) const
Compute integer coordinates for a state.
Definition: ProjectionEvaluator.h:234
static Matrix ComputeRandom(const unsigned int from, const unsigned int to, const std::vector< double > &scale)
Compute a random projection matrix with from columns and to rows. A vector with from elements can be ...
Definition: ProjectionEvaluator.cpp:51
ProjectionEvaluatorPtr specifiedProj_
The projection that is optionally specified by the user in the constructor argument (projToUse) ...
Definition: ProjectionEvaluator.h:328
RealVectorBounds estimatedBounds_
An approximate bounding box for projected state values; This is the cached result of estimateBounds()...
Definition: ProjectionEvaluator.h:278
void print(std::ostream &out=std::cout) const
Print the contained projection matrix to a stram.
Definition: ProjectionEvaluator.cpp:121
void computeRandom(const unsigned int from, const unsigned int to, const std::vector< double > &scale)
Wrapper for ComputeRandom(from, to, scale)
Definition: ProjectionEvaluator.cpp:102
const StateSpace * space_
The state space this projection operates on.
Definition: ProjectionEvaluator.h:265
bool defaultCellSizes_
Flag indicating whether cell sizes have been set by the user, or whether they were inferred automatic...
Definition: ProjectionEvaluator.h:284
unsigned int index_
The index of the subspace from which to project.
Definition: ProjectionEvaluator.h:319
const ParamSet & params() const
Get the parameters for this projection.
Definition: ProjectionEvaluator.h:248
A shared pointer wrapper for ompl::base::ProjectionEvaluator.
std::vector< int > ProjectionCoordinates
Grid cells corresponding to a projection value are described in terms of their coordinates.
Definition: ProjectionEvaluator.h:58
Representation of a space in which planning can be performed. Topology specific sampling, interpolation and distance are defined.
Definition: StateSpace.h:72
boost::numeric::ublas::vector< double > EuclideanProjection
The datatype for state projections. This class contains a real vector.
Definition: ProjectionEvaluator.h:61
A projection matrix – it allows multiplication of real vectors by a specified matrix. The matrix can also be randomly generated.
Definition: ProjectionEvaluator.h:67
const std::vector< double > & getCellSizes() const
Get the size (each dimension) of a grid cell.
Definition: ProjectionEvaluator.h:180
The lower and upper bounds for an Rn space.
Definition: RealVectorBounds.h:48
const RealVectorBounds & getBounds() const
Get the bounds computed/set for this projection.
Definition: ProjectionEvaluator.h:219
bool hasBounds() const
Check if bounds were specified for this projection.
Definition: ProjectionEvaluator.h:208
void project(const double *from, EuclideanProjection &to) const
Multiply the vector from by the contained projection matrix to obtain the vector to.
Definition: ProjectionEvaluator.cpp:112
boost::numeric::ublas::matrix< double > Matrix
Datatype for projection matrices.
Definition: ProjectionEvaluator.h:72
RealVectorBounds bounds_
A bounding box for projected state values.
Definition: ProjectionEvaluator.h:273
Abstract definition for a class computing projections to Rn. Implicit integer grids are imposed on th...
Definition: ProjectionEvaluator.h:137
ProjectionEvaluatorPtr proj_
The projection to use. This is either the same as specifiedProj_ or, if specifiedProj_ is not initial...
Definition: ProjectionEvaluator.h:325