24 #ifndef THORMANG3_OFFSET_TUNER_SERVER_H_ 25 #define THORMANG3_OFFSET_TUNER_SERVER_H_ 30 #include <yaml-cpp/yaml.h> 34 #include "thormang3_offset_tuner_msgs/JointOffsetData.h" 35 #include "thormang3_offset_tuner_msgs/JointTorqueOnOffArray.h" 36 #include "thormang3_offset_tuner_msgs/GetPresentJointOffsetData.h" 52 joint_offset_rad_ = 0;
53 joint_init_pos_rad_ = 0;
61 this->joint_offset_rad_ = joint_offset_rad;
62 this->joint_init_pos_rad_ = joint_init_pose_rad;
93 void setCtrlModule(std::string module);
100 void moveToInitPose();
101 void stringMsgsCallBack(
const std_msgs::String::ConstPtr& msg);
102 void commandCallback(
const std_msgs::String::ConstPtr& msg);
103 void jointOffsetDataCallback(
const thormang3_offset_tuner_msgs::JointOffsetData::ConstPtr &msg);
104 void jointTorqueOnOffCallback(
const thormang3_offset_tuner_msgs::JointTorqueOnOffArray::ConstPtr& msg);
105 bool getPresentJointOffsetDataServiceCallback(thormang3_offset_tuner_msgs::GetPresentJointOffsetData::Request &req,
106 thormang3_offset_tuner_msgs::GetPresentJointOffsetData::Response &res);
ros::Subscriber joint_torque_enable_sub_
ROSCONSOLE_DECL void initialize()
ros::Subscriber command_sub_
JointOffsetData(double joint_offset_rad, double joint_init_pose_rad)
ros::Subscriber send_tra_sub_
ros::Subscriber joint_offset_data_sub_
std::map< std::string, bool > robot_torque_enable_data_
double joint_init_pos_rad_
ros::ServiceServer offset_data_server_
robotis_framework::RobotisController * controller_
std::map< std::string, JointOffsetData * > robot_offset_data_