5 #ifndef __pinocchio_utils_file_explorer_hpp__ 6 #define __pinocchio_utils_file_explorer_hpp__ 11 #include "pinocchio/config.hpp" 24 PINOCCHIO_DLLAPI std::vector<std::string>
27 const std::string & delimiter =
";" 29 const std::string & delimiter =
":" 41 const std::string & suffix);
52 std::vector<std::string> & list_of_paths,
54 const std::string & delimiter =
";" 56 const std::string & delimiter =
":" 66 PINOCCHIO_DLLAPI std::vector<std::string>
rosPaths();
70 #endif // __pinocchio_utils_file_explorer_hpp__ void extractPathFromEnvVar(const std::string &env_var_name, std::vector< std::string > &list_of_paths, const std::string &delimiter)
Parse an environment variable if exists and extract paths according to the delimiter.
void appendSuffixToPaths(std::vector< std::string > &list_of_paths, const std::string &suffix)
For a given vector of paths, add a suffix inplace to each path and return the vector inplace...
std::vector< std::string > rosPaths()
Parse the environment variables ROS_PACKAGE_PATH / AMENT_PREFIX_PATH and extract paths.
Main pinocchio namespace.