Class PrecomputedSequence
Defined in File PrecomputedSequence.h
Inheritance Relationships
Base Type
public ompl::base::DeterministicSequence
(Class DeterministicSequence)
Class Documentation
-
class PrecomputedSequence : public ompl::base::DeterministicSequence
General realization for a sampler of precomputed sequences or sets.
Public Functions
-
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 per line, with the dimensions separated by whitespace. Optionally the order of the samples can be randomized (which removes deterministim, if not all samples are used), max_samples optionally limits the number of samples to be read from the file (default 0 means all samples are read), scale_factor optinonally scales the the samples (if the precomputed samplesets are e.g. in range 0,1.
-
virtual std::vector<double> sample() override
Returns the next sample, loops if there are no more precomputed samples. The range of the samples depends on the precomputed set of samples.
-
PrecomputedSequence(std::string path, unsigned int dimensions, bool shuffle = false, size_t max_samples = 0)