3 #ifndef ROBOWFLEX_OMPL_
4 #define ROBOWFLEX_OMPL_
6 #include <moveit/ompl_interface/ompl_interface.h>
83 bool force =
false)
const;
107 const ompl_interface::ModelBasedPlanningContextPtr &context,
const SceneConstPtr &
scene,
127 mutable ompl_interface::ModelBasedPlanningContextPtr
context_;
128 mutable ompl::geometric::SimpleSetupPtr
ss_;
#define ROBOWFLEX_CLASS_FORWARD(C)
Macro that forward declares a class and defines two shared ptrs types:
static Key getNullKey()
Get a null key for initialization.
A planner that directly uses MoveIt!'s OMPL planning interface.
bool hybridize_
Whether or not planner should hybridize solutions.
std::string last_request_hash_
Hash of last request.
std::vector< std::string > configs_
Planning configurations.
ompl_interface::OMPLInterface & getInterface() const
Access the OMPLInterface directly, to customize the planning process.
void setPrePlanCallback(const PrePlanCallback &prePlanCallback)
Set a callback, to be called right before a planning session for last-minute configuration or externa...
OMPLInterfacePlanner(OMPLInterfacePlanner const &)=delete
ID::Key last_scene_id_
ID of last scene.
void preRun(const SceneConstPtr &scene, const planning_interface::MotionPlanRequest &request) override
This function is called before benchmarking.
ompl::geometric::SimpleSetupPtr ss_
PrePlanCallback pre_plan_callback_
Callback to be called just before planning.
bool initialize(const std::string &config_file="", const OMPL::Settings settings=Settings())
Initialize planning pipeline.
ompl_interface::ModelBasedPlanningContextPtr getPlanningContext(const SceneConstPtr &scene, const planning_interface::MotionPlanRequest &request) const
Returns the planning context used for this motion planning request.
planning_interface::MotionPlanResponse plan(const SceneConstPtr &scene, const planning_interface::MotionPlanRequest &request) override
Plan a motion given a request and a scene. Uses the planning pipeline's generatePlan() method,...
std::map< std::string, Planner::ProgressProperty > getProgressProperties(const SceneConstPtr &scene, const planning_interface::MotionPlanRequest &request) const override
Retrieve the planner progress property map for this planner given a specific request.
std::unique_ptr< ompl_interface::OMPLInterface > interface_
Planning interface.
void refreshContext(const SceneConstPtr &scene, const planning_interface::MotionPlanRequest &request, bool force=false) const
Refreshes the internal planning context.
bool interpolate_
Whether or not planner should interpolate solutions.
void operator=(OMPLInterfacePlanner const &)=delete
std::vector< std::string > getPlannerConfigs() const override
Return all planner configurations offered by this planner. Any of the configurations returned can be ...
ompl::geometric::SimpleSetupPtr getLastSimpleSetup() const
Get the last OMPL simple setup used in planning.
ompl_interface::ModelBasedPlanningContextPtr context_
Last context.
OMPLInterfacePlanner(const RobotPtr &robot, const std::string &name="")
Constructor.
Settings descriptor for settings provided by the default MoveIt! OMPL planning pipeline.
An abstract interface to a motion planning algorithm.
A shared pointer wrapper for robowflex::Robot.
A const shared pointer wrapper for robowflex::Scene.
moveit_msgs::MotionPlanRequest MotionPlanRequest
Functions for loading and animating robots in Blender.
Main namespace. Contains all library classes and functions.
Functions for loading and animating scenes in Blender.