37 #ifndef OMPL_BASE_HALTON_SEQUENCE
38 #define OMPL_BASE_HALTON_SEQUENCE
40 #include "ompl/base/samplers/deterministic/DeterministicSequence.h"
60 class HaltonSequence1D
70 void setBase(
unsigned int base);
76 unsigned int i_, base_;
81 class HaltonSequence :
public DeterministicSequence
89 HaltonSequence(
unsigned int dimensions, std::vector<unsigned int> bases);
92 std::vector<double>
sample()
override;
95 std::vector<HaltonSequence1D> halton_sequences_1d_;
98 void setBasesToPrimes();
double sample()
Returns the next sample in the interval [0,1].
std::vector< double > sample() override
Returns the next sample in the interval [0,1].
HaltonSequence(unsigned int dimensions)
Constructor, only specifiying the dimensions, first n primes will be used as bases.
HaltonSequence1D()
Constructor.
void setBase(unsigned int base)
Sets the base of the halton sequence.
Main namespace. Contains everything in this library.