26 #ifndef SCHUNK_CANOPEN_NODE_H_ 27 #define SCHUNK_CANOPEN_NODE_H_ 31 #include "control_msgs/FollowJointTrajectoryAction.h" 34 #include "std_srvs/Trigger.h" 35 #include "schunk_canopen_driver/HomeAll.h" 36 #include "schunk_canopen_driver/HomeWithIDs.h" 37 #include "schunk_canopen_driver/HomeWithJointNames.h" 45 using namespace canopen_schunk;
70 bool enableNodes(std_srvs::TriggerRequest& req, std_srvs::TriggerResponse& resp);
77 bool quickStopNodes(std_srvs::TriggerRequest& req, std_srvs::TriggerResponse& resp);
88 bool homeNodesCanIds(schunk_canopen_driver::HomeWithIDsRequest& req,
89 schunk_canopen_driver::HomeWithIDsResponse& resp);
100 bool homeNodesJointNames(schunk_canopen_driver::HomeWithJointNamesRequest& req,
101 schunk_canopen_driver::HomeWithJointNamesResponse& resp);
107 bool homeAllNodes(schunk_canopen_driver::HomeAllRequest& req,
108 schunk_canopen_driver::HomeAllResponse& resp);
117 bool closeBrakes (std_srvs::TriggerRequest& req, std_srvs::TriggerResponse& resp);
125 bool initDevicesCb (std_srvs::TriggerRequest& req, std_srvs::TriggerResponse& resp);
136 void rosControlLoop ();
Configuration parameters for a Profile_Position_Mode according to CiA DSP-402 V1.1 section 12...
CanOpenController::Ptr m_controller
ros::ServiceServer m_enable_service
actionlib::ActionServer< control_msgs::FollowJointTrajectoryAction > m_action_server
std::vector< DS402Group::Ptr > m_chain_handles
boost::shared_ptr< SchunkCanopenHardwareInterface > m_hardware_interface
boost::thread m_ros_control_thread
ros::ServiceServer m_quick_stop_service
ds402::ProfilePositionModeConfiguration m_ppm_config
ros::Publisher m_joint_pub
std::map< std::string, uint8_t > m_joint_name_mapping
ros::ServiceServer m_home_service_all
ros::ServiceServer m_init_service
ros::ServiceServer m_close_brakes_service
ros::ServiceServer m_home_service_canopen_ids
boost::shared_ptr< controller_manager::ControllerManager > m_controller_manager
ros::Publisher m_current_pub
std::string m_traj_controller_name
ros::ServiceServer m_home_service_joint_names
ros::NodeHandle m_priv_nh
boost::thread m_traj_thread