Robowflex
v0.1
Making MoveIt Easy
|
Wrapper for easy access to DART planning tools via standard Robowflex interface. More...
#include <planner.h>
Public Member Functions | |
DARTPlanner (const robowflex::RobotPtr &robot, const std::string &name="DARTPlanner") | |
Constructor. Takes in a robot description and an optional namespace name. If name is specified, planner parameters are namespaced under the namespace of robot. More... | |
void | preRun (const robowflex::SceneConstPtr &scene, const planning_interface::MotionPlanRequest &request) override |
This function is called before benchmarking. Here, it is used to setup the DART scene before the solve method. More... | |
planning_interface::MotionPlanResponse | plan (const robowflex::SceneConstPtr &scene, const planning_interface::MotionPlanRequest &request) override |
Plan a motion given a request and a scene. More... | |
std::vector< std::string > | getPlannerConfigs () const override |
Return all planner configurations offered by this planner. Any of the configurations returned can be set as the planner for a motion planning query sent to plan(). More... | |
Public Member Functions inherited from robowflex::Planner | |
Planner (const RobotPtr &robot, const std::string &name="") | |
Constructor. Takes in a robot description and an optional namespace name. If name is specified, planner parameters are namespaced under the namespace of robot. More... | |
Planner (Planner const &)=delete | |
void | operator= (Planner const &)=delete |
virtual std::map< std::string, ProgressProperty > | getProgressProperties (const SceneConstPtr &scene, const planning_interface::MotionPlanRequest &request) const |
Retrieve the planner progress property map for this planner given a specific request. More... | |
const RobotPtr | getRobot () const |
Return the robot for this planner. More... | |
const std::string & | getName () const |
Get the name of the planner. More... | |
Public Attributes | |
PlanBuilderPtr | builder |
DART Motion Plan Builder. More... | |
Private Types | |
using | PlannerAllocator = std::function< ompl::base::PlannerPtr()> |
A funciton that returns an allocated planner. More... | |
Private Member Functions | |
template<typename T , typename... Args> | |
PlannerAllocator | makePlanner (Args &&... args) |
Macro for creating and setting up an OMPL planner. More... | |
void | setupPlanners () |
Setup planner allocators. More... | |
Private Attributes | |
std::map< std::string, PlannerAllocator > | planner_allocators_ |
Named planner allocators. More... | |
SceneConstPtr | scene_ |
Current planning request scene. More... | |
StructurePtr | dart_scene_ |
DART version of current planning request scene. More... | |
RobotPtr | dart_robot_ |
DART version of the robot. More... | |
WorldPtr | world_ |
DART world containing robot and scene. More... | |
ompl::base::GoalPtr | goal_ |
Current motion planning goal. More... | |
Additional Inherited Members | |
Public Types inherited from robowflex::Planner | |
using | ProgressProperty = std::function< std::string()> |
A function that returns the value of a planner property over the course of a run. More... | |
Protected Attributes inherited from robowflex::Planner | |
RobotPtr | robot_ |
The robot to plan for. More... | |
IO::Handler | handler_ |
The parameter handler for the planner. More... | |
const std::string | name_ |
Namespace for the planner. More... | |
Wrapper for easy access to DART planning tools via standard Robowflex interface.
|
private |
DARTPlanner::DARTPlanner | ( | const robowflex::RobotPtr & | robot, |
const std::string & | name = "DARTPlanner" |
||
) |
Constructor. Takes in a robot description and an optional namespace name. If name is specified, planner parameters are namespaced under the namespace of robot.
[in] | robot | The robot to plan for. |
[in] | name | Optional namespace for planner. |
Definition at line 34 of file planner.cpp.
|
overridevirtual |
Return all planner configurations offered by this planner. Any of the configurations returned can be set as the planner for a motion planning query sent to plan().
Implements robowflex::Planner.
Definition at line 157 of file planner.cpp.
|
inlineprivate |
Macro for creating and setting up an OMPL planner.
[in] | args | Arguments to pass to the planner. |
|
overridevirtual |
Plan a motion given a request and a scene.
[in] | scene | A planning scene for the same robot_ to compute the plan in. |
[in] | request | The motion planning request to solve. |
Implements robowflex::Planner.
Definition at line 102 of file planner.cpp.
|
overridevirtual |
This function is called before benchmarking. Here, it is used to setup the DART scene before the solve method.
[in] | scene | Scene to plan for. |
[in] | request | Planning request. |
Reimplemented from robowflex::Planner.
Definition at line 78 of file planner.cpp.
|
private |
PlanBuilderPtr robowflex::darts::DARTPlanner::builder |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |