Robowflex  v0.1
Making MoveIt Easy
ur5.h
Go to the documentation of this file.
1 /* Author: Zachary Kingston */
2 
3 #ifndef ROBOWFLEX_UR5_
4 #define ROBOWFLEX_UR5_
5 
8 
9 namespace robowflex
10 {
11  /** \cond IGNORE */
12  ROBOWFLEX_CLASS_FORWARD(UR5Robot);
13  /* \endcond */
14 
15  /** \class robowflex::UR5RobotPtr
16  \brief A shared pointer wrapper for robowflex::UR5Robot. */
17 
18  /** \class robowflex::UR5RobotConstPtr
19  \brief A const shared pointer wrapper for robowflex::UR5Robot. */
20 
21  /** \brief Convenience class that describes the default setup for UR5 (with robotiq gripper and load cell)
22  * Will first attempt to load configuration and description from the robowflex_resources package.
23  * See https://github.com/KavrakiLab/robowflex_resources for this package.
24  * If this package is not available, then ur_description / robotiq packages will be used.
25  */
26  class UR5Robot : public Robot
27  {
28  public:
29  /** \brief Constructor.
30  */
31  UR5Robot();
32 
33  /** \brief Initialize the robot with manipulator kinematics.
34  * \return True on success, false on failure.
35  */
36  bool initialize();
37 
38  private:
39  static const std::string DEFAULT_URDF; ///< Default URDF
40  static const std::string DEFAULT_SRDF; ///< Default SRDF
41  static const std::string DEFAULT_LIMITS; ///< Default Limits
42  static const std::string DEFAULT_KINEMATICS; ///< Default kinematics
43 
44  static const std::string RESOURCE_URDF; ///< URDF from robowflex_resources
45  static const std::string RESOURCE_SRDF; ///< SRDF from robowflex_resources
46  static const std::string RESOURCE_LIMITS; ///< Limits from robowflex_resources
47  static const std::string RESOURCE_KINEMATICS; ///< kinematics from robowflex_resources
48  };
49 
50  namespace OMPL
51  {
52  /** \cond IGNORE */
53  ROBOWFLEX_CLASS_FORWARD(UR5OMPLPipelinePlanner);
54  /* \endcond */
55 
56  /** \class robowflex::OMPL::UR5OMPLPipelinePlannerPtr
57  \brief A shared pointer wrapper for robowflex::OMPL::UR5OMPLPipelinePlanner. */
58 
59  /** \class robowflex::OMPL::UR5OMPLPipelinePlannerConstPtr
60  \brief A const shared pointer wrapper for robowflex::OMPL::UR5OMPLPipelinePlanner. */
61 
62  /** \brief Convenience class for the default motion planning pipeline for UR5.
63  */
65  {
66  public:
67  /** \brief Constructor.
68  * \param[in] robot Robot to create planner for.
69  * \param[in] name Namespace of this planner.
70  */
71  UR5OMPLPipelinePlanner(const RobotPtr &robot, const std::string &name = "");
72 
73  /** \brief Initialize the planning context. All parameter provided are defaults.
74  * \param[in] settings Settings to set on the parameter server.
75  * \param[in] adapters Planning adapters to load.
76  * \return True on success, false on failure.
77  */
78  bool initialize(const Settings &settings = Settings(),
79  const std::vector<std::string> &adapters = DEFAULT_ADAPTERS);
80 
81  private:
82  static const std::string DEFAULT_CONFIG; ///< Default planning configuration.
83  static const std::string RESOURCE_CONFIG; ///< Planning configuration from robowflex_resources.
84  };
85  } // namespace OMPL
86 } // namespace robowflex
87 
88 #endif
#define ROBOWFLEX_CLASS_FORWARD(C)
Macro that forward declares a class and defines two shared ptrs types:
Definition: class_forward.h:16
A robowflex::PipelinePlanner that uses the MoveIt! default OMPL planning pipeline.
static const std::vector< std::string > DEFAULT_ADAPTERS
The default planning adapters.
Settings descriptor for settings provided by the default MoveIt! OMPL planning pipeline.
Convenience class for the default motion planning pipeline for UR5.
Definition: ur5.h:65
bool initialize(const Settings &settings=Settings(), const std::vector< std::string > &adapters=DEFAULT_ADAPTERS)
Initialize the planning context. All parameter provided are defaults.
Definition: ur5.cpp:65
UR5OMPLPipelinePlanner(const RobotPtr &robot, const std::string &name="")
Constructor.
Definition: ur5.cpp:60
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
A shared pointer wrapper for robowflex::Robot.
Loads information about a robot and maintains information about a robot's state.
Convenience class that describes the default setup for UR5 (with robotiq gripper and load cell) Will ...
Definition: ur5.h:27
bool initialize()
Initialize the robot with manipulator kinematics.
Definition: ur5.cpp:39
UR5Robot()
Constructor.
Definition: ur5.cpp:35
static const std::string RESOURCE_KINEMATICS
kinematics from robowflex_resources
Definition: ur5.h:47
static const std::string DEFAULT_SRDF
Default SRDF.
Definition: ur5.h:40
static const std::string DEFAULT_LIMITS
Default Limits.
Definition: ur5.h:41
static const std::string DEFAULT_URDF
Default URDF.
Definition: ur5.h:39
static const std::string RESOURCE_URDF
URDF from robowflex_resources.
Definition: ur5.h:44
static const std::string RESOURCE_LIMITS
Limits from robowflex_resources.
Definition: ur5.h:46
static const std::string RESOURCE_SRDF
SRDF from robowflex_resources.
Definition: ur5.h:45
static const std::string DEFAULT_KINEMATICS
Default kinematics.
Definition: ur5.h:42
Functions for loading and animating robots in Blender.
Main namespace. Contains all library classes and functions.
Definition: scene.cpp:25