37 #ifndef OMPL_BASE_SPACES_REAL_VECTOR_BOUNDS_
38 #define OMPL_BASE_SPACES_REAL_VECTOR_BOUNDS_
65 void setLow(
unsigned int index,
double value);
68 void setHigh(
unsigned int index,
double value);
71 void resize(std::size_t size);
82 void check(
void)
const;
85 std::vector<double>
low;
void resize(std::size_t size)
Change the number of dimensions for the bounds.
RealVectorBounds(unsigned int dim)
Constructor; dim represents the dimension of the space these bounds are for.
std::vector< double > low
Lower bound.
void setLow(double value)
Set the lower bound in each dimension to a specific value.
std::vector< double > getDifference(void) const
Get the difference between the high and low bounds for each dimension: result[i] = high[i] - low[i]...
void setHigh(double value)
Set the upper bound in each dimension to a specific value.
double getVolume(void) const
Compute the volume of the space enclosed by the bounds.
std::vector< double > high
Upper bound.
void check(void) const
Check if the bounds are valid (same length for low and high, high[i] > low[i]). Throw an exception if...
The lower and upper bounds for an Rn space.