3 #include <xarm_gripper/MoveAction.h> 37 void executeCB(
const xarm_gripper::MoveGoalConstPtr &goal);
48 ROS_INFO(
"Executing, creating MoveAction ");
65 float fdb_pulse = 0;
int fdb_err = 0;
68 while(!ret && fabs(fdb_pulse-goal->target_pulse)>10)
108 int main(
int argc,
char** argv)
110 ros::init(argc, argv,
"xarm_gripper_node");
xarm_gripper::MoveResult result_
void publishFeedback(const FeedbackConstPtr &feedback)
void executeCB(const xarm_gripper::MoveGoalConstPtr &goal)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
GripperAction(std::string name)
void setSucceeded(const Result &result=Result(), const std::string &text=std::string(""))
ROSCPP_DECL void spin(Spinner &spinner)
int main(int argc, char **argv)
void setPreempted(const Result &result=Result(), const std::string &text=std::string(""))
int gripperConfig(float pulse_vel)
bool isPreemptRequested()
actionlib::SimpleActionServer< xarm_gripper::MoveAction > as_
void setAborted(const Result &result=Result(), const std::string &text=std::string(""))
xarm_gripper::MoveFeedback feedback_
xarm_api::XArmROSClient xarm
int getGripperState(float *curr_pulse, int *curr_err)
void init(ros::NodeHandle &nh)
int gripperMove(float pulse)