41 #include <moveit/task_constructor/stages/generate_pose.h>
46 namespace task_constructor {
54 bool canCompute()
const override;
55 void compute()
override;
60 enum PoseDimension : uint8_t
81 template <
template <
class Realtype =
double>
class RandomNumberDistribution>
83 sampleDimension(pose_dimension, getPoseDimensionSampler<RandomNumberDistribution>(width));
88 pose_dimension_samplers_.emplace_back(std::make_pair(pose_dimension, pose_dimension_sampler));
96 template <
template <
class Realtype =
double>
class RandomNumberDistribution>
98 static_assert(
sizeof(RandomNumberDistribution<double>) == -1,
"This distribution type is not supported!");
102 std::vector<std::pair<PoseDimension, PoseDimensionSampler>> pose_dimension_samplers_;
106 GenerateRandomPose::getPoseDimensionSampler<std::normal_distribution>(
double stddev);
109 GenerateRandomPose::getPoseDimensionSampler<std::uniform_real_distribution>(
double range);
void setProperty(const std::string &name, const boost::any &value)
Set a previously declared property to a new value.
Definition: stage.cpp:448
Definition: generate_pose.h:50
Definition: generate_random_pose.h:50
void setMaxSolutions(size_t max_solutions)
Definition: generate_random_pose.h:92
std::function< double(double)> PoseDimensionSampler
Definition: generate_random_pose.h:59
void sampleDimension(const PoseDimension pose_dimension, const PoseDimensionSampler &pose_dimension_sampler)
Definition: generate_random_pose.h:87
void sampleDimension(const PoseDimension pose_dimension, double width)
Definition: generate_random_pose.h:82