43#include <ompl/base/StateStorage.h>
44#include <boost/serialization/map.hpp>
48typedef 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_;
#define MOVEIT_CLASS_FORWARD(C)
void registerConstraintApproximation(const ConstraintApproximationPtr &approx)
void printConstraintApproximations(std::ostream &out=std::cout) const
ConstraintsLibrary(ModelBasedPlanningContext *pcontext)
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 saveConstraintApproximations(const std::string &path)
void clearConstraintApproximations()
void loadConstraintApproximations(const std::string &path)
const ConstraintApproximationPtr & getConstraintApproximation(const moveit_msgs::msg::Constraints &msg) const
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
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
const std::string & getGroup() const
ompl::base::StateStoragePtr state_storage_ptr_
ConstraintApproximationStateStorage * state_storage_
bool hasExplicitMotions() const
moveit_msgs::msg::Constraints constraint_msg_
const std::string & getFilename() const
const moveit_msgs::msg::Constraints & getConstraintsMsg() const
std::vector< int > space_signature_
std::string ompldb_filename_
virtual ~ConstraintApproximation()
const std::string & getStateSpaceParameterization() const
InterpolationFunction getInterpolationFunction() const
const std::vector< int > & getSpaceSignature() const
const std::string & getName() const
std::size_t getMilestoneCount() const
const ompl::base::StateStoragePtr & getStateStorage() const
ompl::base::StateSamplerAllocator getStateSamplerAllocator(const moveit_msgs::msg::Constraints &msg) const
std::string state_space_parameterization_