8 #ifndef __XARM_HARDWARE_INTERFACE_H__ 9 #define __XARM_HARDWARE_INTERFACE_H__ 19 #include <urdf_parser/urdf_parser.h> 27 #include <sensor_msgs/JointState.h> 104 void pos_fb_cb(
const sensor_msgs::JointState::ConstPtr& data);
105 void state_fb_cb(
const xarm_msgs::RobotMsg::ConstPtr& data);
std::vector< float > velocity_cmd_float_
hardware_interface::JointStateInterface js_interface_
std::vector< double > position_fdb_
hardware_interface::PositionJointInterface pj_interface_
urdf::ModelInterfaceSharedPtr model_ptr_
std::vector< double > velocity_fdb_
std::vector< double > velocity_cmd_
void get_status(int state_mode_err[3])
joint_limits_interface::PositionJointSoftLimitsInterface pj_limits_interface_
hardware_interface::EffortJointInterface ej_interface_
std::vector< float > position_cmd_float_
std::vector< double > effort_cmd_
std::vector< double > position_cmd_
hardware_interface::VelocityJointInterface vj_interface_
xarm_api::XArmROSClient xarm
joint_limits_interface::EffortJointSoftLimitsInterface ej_limits_interface_
virtual void read(const ros::Time &time, const ros::Duration &period)
void pos_fb_cb(const sensor_msgs::JointState::ConstPtr &data)
void state_fb_cb(const xarm_msgs::RobotMsg::ConstPtr &data)
std::vector< double > effort_fdb_
const std::string xarm_state_topic
std::vector< std::string > jnt_names_
joint_limits_interface::EffortJointSaturationInterface ej_sat_interface_
ros::Subscriber effort_sub_
void clientInit(const std::string &robot_ip, ros::NodeHandle &root_nh)
ControlMethod ctrl_method_
const std::string jnt_state_topic
void _register_joint_limits(ros::NodeHandle &root_nh, std::string joint_name, const ControlMethod ctrl_method)
ros::Subscriber state_sub_
joint_limits_interface::VelocityJointSaturationInterface vj_sat_interface_
joint_limits_interface::VelocityJointSoftLimitsInterface vj_limits_interface_
joint_limits_interface::PositionJointSaturationInterface pj_sat_interface_
virtual void write(const ros::Time &time, const ros::Duration &period)
void _enforce_limits(const ros::Duration &period)
virtual bool init(ros::NodeHandle &root_nh, ros::NodeHandle &robot_hw_nh)