ROSEndEffector
ROS End-Effector package: provides a ROS-based set of standard interfaces to command robotics end-effectors in an agnostic fashion.
XBot2Hal.h
Go to the documentation of this file.
1 #ifndef __ROSEE_XBOT2_HAL__
2 #define __ROSEE_XBOT2_HAL__
3 
5 #include <xbot2/xbot2.h>
6 #include <xbot2/robot_interface/robot_interface_xbot_rt.h>
7 #include <std_srvs/SetBool.h>
8 
9 
10 #include <string>
11 #include <memory>
12 
13 namespace ROSEE {
14 
19 class XBot2Hal : public ROSEE::EEHal
20 {
21 
22 public:
23 
24  typedef std::shared_ptr<XBot2Hal> Ptr;
25  typedef std::shared_ptr<const XBot2Hal> ConstPtr;
26 
27  XBot2Hal( ros::NodeHandle* nh );
28  virtual ~XBot2Hal() { };
29 
30  virtual bool sense() override;
31 
32  virtual bool move() override;
33 
34 private:
35 
36  XBot::RobotInterface::Ptr _robot;
37  XBot::JointNameMap _jointPositionActualMap;
38  XBot::JointNameMap _jointPositionReferenceMap;
39 
40 };
41 
43 
44 } //namespace roseee
45 
46 #endif // __ROSEE_XBOT2_HAL__
XBot2Hal(ros::NodeHandle *nh)
Definition: XBot2Hal.cpp:4
std::shared_ptr< XBot2Hal > Ptr
Definition: XBot2Hal.h:24
XBot::JointNameMap _jointPositionActualMap
Definition: XBot2Hal.h:37
Concrete class which communicate directly with ROS topics.
Definition: XBot2Hal.h:19
XBot::RobotInterface::Ptr _robot
Definition: XBot2Hal.h:36
virtual ~XBot2Hal()
Definition: XBot2Hal.h:28
Class representing an end-effector.
Definition: EEHal.h:54
XBot::JointNameMap _jointPositionReferenceMap
Definition: XBot2Hal.h:38
virtual bool sense() override
Definition: XBot2Hal.cpp:47
#define HAL_CREATE_OBJECT(className)
Definition: EEHal.h:42
virtual bool move() override
Definition: XBot2Hal.cpp:72
std::shared_ptr< const XBot2Hal > ConstPtr
Definition: XBot2Hal.h:25