32 ,desired_update_freq_(desired_update_freq)
52 if(joint_names.size() != 4)
74 resp.message +=
"Init succeeded. ";
83 resp.message +=
"Ready to command. ";
103 resp.success =
false;
104 resp.message =
"Not initialized. ";
115 resp.message +=
"Device halted. ";
127 while(!
driver_->isEmergReleaseComplete())
133 resp.message +=
"Emergency release complete. ";
145 while(
driver_->isInitialized())
150 resp.message +=
"Shutdown complete. ";
159 if (!config.ind_control_scissor)
172 driver_->setVelocity(config.velocity, config.velocity, config.velocity, config.velocity);
173 driver_->setForce(config.force, config.force, config.force, config.force);
ros::ServiceServer emerg_release_srv_
void publish(const boost::shared_ptr< M > &message) const
void handleRawCmd(const robotiq_3f_gripper_articulated_msgs::Robotiq3FGripperRobotOutput::ConstPtr &msg)
bool handleHalt(std_srvs::TriggerRequest &req, std_srvs::TriggerResponse &resp)
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
ros::ServiceServer init_srv_
Services.
ros::Publisher input_status_pub_
Topics.
ServiceServer advertiseService(const std::string &service, bool(T::*srv_func)(MReq &, MRes &), T *obj)
ros::Duration desired_update_freq_
Settings.
#define ROS_DEBUG_NAMED(name,...)
bool handleShutdown(std_srvs::TriggerRequest &req, std_srvs::TriggerResponse &resp)
boost::recursive_mutex reconfigure_mutex_
void updateConfig(const robotiq_3f_gripper_control::Robotiq3FGripperConfig &config)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
#define ROS_DEBUG_STREAM(args)
Robotiq3FGripperROS(ros::NodeHandle &nh, boost::shared_ptr< robotiq_3f_gripper_control::Robotiq3FGripperAPI > driver, std::vector< std::string > joint_names, ros::Duration desired_update_freq)
boost::shared_ptr< ReconfigureServer > reconfigure_
void handleReconfigure(robotiq_3f_gripper_control::Robotiq3FGripperConfig &config, uint32_t level=0)
robotiq_3f_gripper_articulated_msgs::Robotiq3FGripperRobotInput input_status_msg_
robotiq_3f_gripper_control::Robotiq3FGripperConfig config_
bool handleEmergRelease(std_srvs::TriggerRequest &req, std_srvs::TriggerResponse &resp)
boost::shared_ptr< robotiq_3f_gripper_control::Robotiq3FGripperAPI > driver_
ros::Subscriber output_sub_
void getCurrentConfig(robotiq_3f_gripper_control::Robotiq3FGripperConfig &config)
ros::ServiceServer halt_srv_
ros::ServiceServer shutdown_srv_
bool handleReset(std_srvs::TriggerRequest &req, std_srvs::TriggerResponse &resp)
ros::ServiceServer reset_srv_
dynamic_reconfigure::Server< robotiq_3f_gripper_control::Robotiq3FGripperConfig > ReconfigureServer
Reconfigure.
bool handleInit(std_srvs::TriggerRequest &req, std_srvs::TriggerResponse &resp)