8 bool getArmInfo(
const std::string &arm_name, ArmInfo &info)
20 if (!nh.
getParam(arm_name +
"/kdl_eef_frame", info.kdl_eef_frame))
22 ROS_ERROR(
"Missing kinematic chain eef (%s/kdl_eef_frame)",
27 if (!nh.
getParam(arm_name +
"/gripping_frame", info.gripping_frame))
29 ROS_ERROR(
"Missing kinematic gripping_frame (%s/gripping_frame)",
34 if (!nh.
getParam(arm_name +
"/has_ft_sensor", has_ft_sensor))
36 ROS_ERROR(
"Missing sensor info (%s/has_ft_sensor)", arm_name.c_str());
40 info.has_ft_sensor = has_ft_sensor;
44 if (!nh.
getParam(arm_name +
"/sensor_frame", info.sensor_frame))
46 ROS_ERROR(
"Missing sensor info (%s/sensor_frame)", arm_name.c_str());
50 if (!nh.
getParam(arm_name +
"/sensor_topic", info.sensor_topic))
52 ROS_ERROR(
"Missing sensor info (%s/sensor_topic)", arm_name.c_str());
bool getParam(const std::string &key, std::string &s) const