39 #include <ompl/base/StateSampler.h>
40 #include <ompl/base/ValidStateSampler.h>
46 class ModelBasedPlanningContext;
56 constraint_samplers::ConstraintSamplerPtr cs = constraint_samplers::ConstraintSamplerPtr());
58 bool sample(ompl::base::State* state)
override;
59 virtual bool project(ompl::base::State* state);
60 bool sampleNear(ompl::base::State* state,
const ompl::base::State* near,
const double distance)
override;
64 kinematic_constraints::KinematicConstraintSetPtr kinematic_constraint_set_;
65 constraint_samplers::ConstraintSamplerPtr constraint_sampler_;
66 ompl::base::StateSamplerPtr default_sampler_;
Representation of a robot's state. This includes position, velocity, acceleration and effort.
bool sample(ompl::base::State *state) override
virtual bool project(ompl::base::State *state)
ValidConstrainedSampler(const ModelBasedPlanningContext *pc, kinematic_constraints::KinematicConstraintSetPtr ks, constraint_samplers::ConstraintSamplerPtr cs=constraint_samplers::ConstraintSamplerPtr())
bool sampleNear(ompl::base::State *state, const ompl::base::State *near, const double distance) override
The MoveIt interface to OMPL.
MOVEIT_CLASS_FORWARD(ValidStateSampler)
double distance(const urdf::Pose &transform)