ompl::base::RealVectorBounds Class Reference

The lower and upper bounds for an Rn space. More...

#include <ompl/base/spaces/RealVectorBounds.h>

Public Member Functions

 RealVectorBounds (unsigned int dim)
 Constructor; dim represents the dimension of the space these bounds are for.
 
void setLow (double value)
 Set the lower bound in each dimension to a specific value.
 
void setHigh (double value)
 Set the upper bound in each dimension to a specific value.
 
void setLow (unsigned int index, double value)
 Set the lower bound of a dimension to a specific value.
 
void setHigh (unsigned int index, double value)
 Set the upper bound of a dimension to a specific value.
 
void resize (std::size_t size)
 Change the number of dimensions for the bounds.
 
double getVolume () const
 Compute the volume of the space enclosed by the bounds.
 
std::vector< double > getDifference () const
 Get the difference between the high and low bounds for each dimension: result[i] = high[i] - low[i].
 
void check () const
 Check if the bounds are valid (same length for low and high, high[i] > low[i]). Throw an exception if this is not the case.
 

Public Attributes

std::vector< double > low
 Lower bound.
 
std::vector< double > high
 Upper bound.
 

Detailed Description

The lower and upper bounds for an Rn space.

Definition at line 47 of file RealVectorBounds.h.


The documentation for this class was generated from the following files: