43 #include <ompl/base/StateStorage.h>
44 #include <boost/serialization/map.hpp>
48 typedef std::pair<std::vector<std::size_t>, std::map<std::size_t, std::pair<std::size_t, std::size_t> > >
58 moveit_msgs::msg::Constraints msg, std::string filename, ompl::base::StateStoragePtr storage,
59 std::size_t milestones = 0);
174 const moveit_msgs::msg::Constraints& constr_hard,
const std::string&
group,
175 const planning_scene::PlanningSceneConstPtr&
scene,
180 const planning_scene::PlanningSceneConstPtr&
scene,
188 constraint_approximations_[approx->getName()] = approx;
195 const moveit_msgs::msg::Constraints& constr_sampling,
196 const moveit_msgs::msg::Constraints& constr_hard,
201 std::map<std::string, ConstraintApproximationPtr> constraint_approximations_;
void registerConstraintApproximation(const ConstraintApproximationPtr &approx)
const ConstraintApproximationPtr & getConstraintApproximation(const moveit_msgs::msg::Constraints &msg) const
ConstraintApproximationConstructionResults addConstraintApproximation(const moveit_msgs::msg::Constraints &constr_sampling, const moveit_msgs::msg::Constraints &constr_hard, const std::string &group, const planning_scene::PlanningSceneConstPtr &scene, const ConstraintApproximationConstructionOptions &options)
void printConstraintApproximations(std::ostream &out=std::cout) const
ConstraintsLibrary(ModelBasedPlanningContext *pcontext)
void saveConstraintApproximations(const std::string &path)
void clearConstraintApproximations()
void loadConstraintApproximations(const std::string &path)
The MoveIt interface to OMPL.
std::pair< std::vector< std::size_t >, std::map< std::size_t, std::pair< std::size_t, std::size_t > > > ConstrainedStateMetadata
MOVEIT_CLASS_FORWARD(ValidStateSampler)
std::function< bool(const ompl::base::State *from, const ompl::base::State *to, const double t, ompl::base::State *state)> InterpolationFunction
ompl::base::StateStorageWithMetadata< std::vector< std::size_t > > ConstraintApproximationStateStorage
std::string state_space_parameterization
ConstraintApproximationConstructionOptions()
double explicit_points_resolution
unsigned int edges_per_sample
unsigned int max_explicit_points
ConstraintApproximationPtr approx
double state_sampling_time
double state_connection_time
double sampling_success_rate
ompl::base::StateStoragePtr state_storage_ptr_
ConstraintApproximationStateStorage * state_storage_
bool hasExplicitMotions() const
moveit_msgs::msg::Constraints constraint_msg_
const ompl::base::StateStoragePtr & getStateStorage() const
std::vector< int > space_signature_
const moveit_msgs::msg::Constraints & getConstraintsMsg() const
const std::string & getStateSpaceParameterization() const
ConstraintApproximation(const planning_models::RobotModelConstPtr &kinematic_model, const std::string &group, const std::string &factory, const std::string &serialization, const std::string &filename, const ompl::base::StateStoragePtr &storage)
std::string ompldb_filename_
virtual ~ConstraintApproximation()
const std::string & getName() const
const std::string & getFilename() const
const std::vector< int > & getSpaceSignature() const
std::size_t getMilestoneCount() const
ompl::base::StateSamplerAllocator getStateSamplerAllocator(const moveit_msgs::msg::Constraints &msg) const
const std::string & getGroup() const
InterpolationFunction getInterpolationFunction() const
std::string state_space_parameterization_