I'm trying to parse yaml file using yaml-cpp but it needs full path of file.yaml . How should I get this path if it can be different depending on user setup. I'm assuming that this filename wont change
This is for ROS kinetic framework so it's running on linux. I've already tried to get this path using system() function but it's not returning string.
string yaml_directory = system("echo 'find -name \"file.yaml\"' ") ; // it's not working as expected
YAML::Node conf_file = YAML::LoadFile("/home/user/path/path/file.yaml"); //I want to change from that string to path found automatically