39 #include "ompl/util/Console.h"
48 namespace ompl
52 PrecomputedSequence::PrecomputedSequence(std::string path, unsigned int dimensions, bool shuffle,
54 : DeterministicSequence(dimensions)
68 OMPL_WARN("Precomputed sequence sampler requested more samples than possible, will provide same "
73 ++current_index_; // out of bounds check is done on next sample, so that if there are n samples, sampling
78 void PrecomputedSequence::readSamplesFromFile(std::string path, unsigned int dimensions, size_t max_samples)
96 OMPL_ERROR("Precomputed sequence contains less dimensions than requested.");
std::vector< double > sample() override
Returns the next sample, loops if there are no more precomputed samples. The range of the samples dep...
An abstract class for deterministic sequences in arbitrary dimensions.
PrecomputedSequence(std::string path, unsigned int dimensions, bool shuffle=false, size_t max_samples=0)
Constructor, requires the path of file containing the precomputed samples formated with one sample pe...