Robowflex  v0.1
Making MoveIt Easy
robowflex::OMPL::UR5OMPLPipelinePlanner Class Reference

Convenience class for the default motion planning pipeline for UR5. More...

#include <ur5.h>

+ Inheritance diagram for robowflex::OMPL::UR5OMPLPipelinePlanner:

Public Member Functions

 UR5OMPLPipelinePlanner (const RobotPtr &robot, const std::string &name="")
 Constructor. More...
 
bool initialize (const Settings &settings=Settings(), const std::vector< std::string > &adapters=DEFAULT_ADAPTERS)
 Initialize the planning context. All parameter provided are defaults. More...
 
- Public Member Functions inherited from robowflex::OMPL::OMPLPipelinePlanner
 OMPLPipelinePlanner (const RobotPtr &robot, const std::string &name="")
 
 OMPLPipelinePlanner (OMPLPipelinePlanner const &)=delete
 
void operator= (OMPLPipelinePlanner const &)=delete
 
bool initialize (const std::string &config_file="", const Settings &settings=Settings(), const std::string &plugin=DEFAULT_PLUGIN, const std::vector< std::string > &adapters=DEFAULT_ADAPTERS)
 Initialize planning pipeline. Loads OMPL planning plugin plugin with the planning adapters adapters. Parameters are set on the parameter server from settings and planning configurations are loaded from the YAML file config_file. More...
 
std::vector< std::stringgetPlannerConfigs () 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::PipelinePlanner
 PipelinePlanner (const RobotPtr &robot, const std::string &name="")
 Constructor. More...
 
 PipelinePlanner (PipelinePlanner const &)=delete
 
void operator= (PipelinePlanner const &)=delete
 
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, which goes through planning adapters. More...
 
template<typename T >
std::shared_ptr< T > extractPlanningContext (const SceneConstPtr &scene, const planning_interface::MotionPlanRequest &request) const
 Retrieve planning context and dynamically cast to desired type from planning pipeline. 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, ProgressPropertygetProgressProperties (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::stringgetName () const
 Get the name of the planner. More...
 
virtual void preRun (const SceneConstPtr &scene, const planning_interface::MotionPlanRequest &request)
 This function is called before benchmarking. More...
 

Static Private Attributes

static const std::string DEFAULT_CONFIG
 Default planning configuration. More...
 
static const std::string RESOURCE_CONFIG
 Planning configuration from robowflex_resources. 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::PipelinePlanner
planning_pipeline::PlanningPipelinePtr pipeline_
 Loaded planning pipeline plugin. 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...
 
- Static Protected Attributes inherited from robowflex::OMPL::OMPLPipelinePlanner
static const std::string DEFAULT_PLUGIN
 The default OMPL plugin. More...
 
static const std::vector< std::stringDEFAULT_ADAPTERS
 The default planning adapters. More...
 

Detailed Description

Convenience class for the default motion planning pipeline for UR5.

Definition at line 64 of file ur5.h.

Constructor & Destructor Documentation

◆ UR5OMPLPipelinePlanner()

OMPL::UR5OMPLPipelinePlanner::UR5OMPLPipelinePlanner ( const RobotPtr robot,
const std::string name = "" 
)

Constructor.

Parameters
[in]robotRobot to create planner for.
[in]nameNamespace of this planner.

Definition at line 60 of file ur5.cpp.

61  : OMPLPipelinePlanner(robot, name)
62 {
63 }
OMPLPipelinePlanner(const RobotPtr &robot, const std::string &name="")
Functions for loading and animating robots in Blender.

Member Function Documentation

◆ initialize()

bool OMPL::UR5OMPLPipelinePlanner::initialize ( const Settings settings = Settings(),
const std::vector< std::string > &  adapters = DEFAULT_ADAPTERS 
)

Initialize the planning context. All parameter provided are defaults.

Parameters
[in]settingsSettings to set on the parameter server.
[in]adaptersPlanning adapters to load.
Returns
True on success, false on failure.

Definition at line 65 of file ur5.cpp.

67 {
71 }
static const std::string DEFAULT_PLUGIN
The default OMPL plugin.
bool initialize(const std::string &config_file="", const Settings &settings=Settings(), const std::string &plugin=DEFAULT_PLUGIN, const std::vector< std::string > &adapters=DEFAULT_ADAPTERS)
Initialize planning pipeline. Loads OMPL planning plugin plugin with the planning adapters adapters....
static const std::string DEFAULT_CONFIG
Default planning configuration.
Definition: ur5.h:82
static const std::string RESOURCE_CONFIG
Planning configuration from robowflex_resources.
Definition: ur5.h:83
std::string resolvePackage(const std::string &path)
Resolves package:// URLs to their canonical form. The path does not need to exist,...

Member Data Documentation

◆ DEFAULT_CONFIG

const std::string OMPL::UR5OMPLPipelinePlanner::DEFAULT_CONFIG
staticprivate
Initial value:
{
"package://ur5_robotiq85_moveit_config/config/ompl_planning.yaml"
}

Default planning configuration.

Definition at line 82 of file ur5.h.

◆ RESOURCE_CONFIG

const std::string OMPL::UR5OMPLPipelinePlanner::RESOURCE_CONFIG
staticprivate
Initial value:
{
"package://robowflex_resources/ur/config/ur5/ompl_planning.yaml"
}

Planning configuration from robowflex_resources.

Definition at line 83 of file ur5.h.


The documentation for this class was generated from the following files: