37 #include "ompl/base/spaces/RealVectorBounds.h"
38 #include "ompl/util/Exception.h"
44 std::fill(
low.begin(),
low.end(), value);
49 std::fill(high.begin(), high.end(), value);
64 unsigned int n = std::min(low.size(), high.size());
65 std::vector<double> result(n);
66 for (
unsigned int i = 0 ; i < n ; ++i)
67 result[i] = high[i] - low[i];
74 unsigned int n = std::min(low.size(), high.size());
75 for (
unsigned int i = 0 ; i < n ; ++i)
77 double d = high[i] - low[i];
85 if (low.size() != high.size())
86 throw Exception(
"Lower and upper bounds are not of same dimension");
87 for (
unsigned int i = 0 ; i < low.size() ; ++i)
89 throw Exception(
"Bounds for real vector space seem to be incorrect (lower bound must be stricly less than upper bound). Sampling will not be possible");