PrecomputedSequence.cpp
52 PrecomputedSequence::PrecomputedSequence(std::string path, unsigned int dimensions, bool shuffle,
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)
An abstract class for deterministic sequences in arbitrary dimensions.
Definition: DeterministicSequence.h:48
std::vector< double > sample() override
Returns the next sample, loops if there are no more precomputed samples. The range of the samples dep...
Definition: PrecomputedSequence.cpp:64
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...
Definition: PrecomputedSequence.cpp:52