19 #ifndef OPEN_MANIPULATOR_GRIPPER_CONTROLLER_H 20 #define OPEN_MANIPULATOR_GRIPPER_CONTROLLER_H 28 #include <moveit_msgs/DisplayTrajectory.h> 32 #include <std_msgs/Float64.h> 33 #include <std_msgs/String.h> 35 #include <sensor_msgs/JointState.h> 37 #include "open_manipulator_msgs/SetJointPosition.h" 38 #include "open_manipulator_msgs/State.h" 40 #include <eigen3/Eigen/Eigen> 47 #define ITERATION_FREQUENCY 25 //Hz 49 #define GRIP_ON 0.01 // mm 50 #define GRIP_OFF -0.01 56 Eigen::MatrixXd planned_path_positions;
111 open_manipulator_msgs::SetJointPosition::Response &res);
ros::Subscriber gripper_onoff_sub_
void initPublisher(bool using_gazebo)
ros::Publisher gripper_position_pub_
ros::Publisher gripper_state_pub_
PlannedPathInfo planned_path_info_
bool calcPlannedPath(open_manipulator_msgs::JointPosition msg)
ros::Subscriber display_planned_path_sub_
void initSubscriber(bool using_gazebo)
moveit::planning_interface::MoveGroupInterface * move_group
bool setGripperPositionMsgCallback(open_manipulator_msgs::SetJointPosition::Request &req, open_manipulator_msgs::SetJointPosition::Response &res)
virtual ~GripperController()
void gripperOnOffMsgCallback(const std_msgs::String::ConstPtr &msg)
ros::ServiceServer set_gripper_position_server_
void displayPlannedPathMsgCallback(const moveit_msgs::DisplayTrajectory::ConstPtr &msg)
ros::Publisher gazebo_gripper_position_pub_[2]