I don't know why I am getting this error :
terminate called after throwing an instance of 'YAML::TypedBadConversion<double>'
what(): yaml-cpp: error at line 0, column 0: bad conversion
Aborted (core dumped)
I reduced my constant.yaml file to :
MAX_FINGER_APERTURE: 0.120
And my code is as follows :
//Path to the constants yaml file
std::string pkg_path = ros::package::getPath("frasier_motion");
std::string constants_path = pkg_path + "/config/constant.yaml";
YAML::Node constants = YAML::LoadFile(constants_path);
double MAX_FINGER_APERTURE = constants["MAX_FINGER_APERTURE"].as<double>();
Do you have any idea where that comes from ?