pinocchio  2.6.3
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
file-explorer.hpp
1 //
2 // Copyright (c) 2016-2020 CNRS INRIA
3 //
4 
5 #ifndef __pinocchio_utils_file_explorer_hpp__
6 #define __pinocchio_utils_file_explorer_hpp__
7 
8 #include <string>
9 #include <vector>
10 
11 #include "pinocchio/config.hpp"
12 
13 namespace pinocchio
14 {
15 
24  PINOCCHIO_DLLAPI std::vector<std::string>
25  extractPathFromEnvVar(const std::string & env_var_name,
26 #ifdef _WIN32
27  const std::string & delimiter = ";"
28 #else
29  const std::string & delimiter = ":"
30 #endif
31  );
32 
33 
41  PINOCCHIO_DLLAPI void
42  extractPathFromEnvVar(const std::string & env_var_name,
43  std::vector<std::string> & list_of_paths,
44 #ifdef _WIN32
45  const std::string & delimiter = ";"
46 #else
47  const std::string & delimiter = ":"
48 #endif
49  );
50 
51 
57  PINOCCHIO_DLLAPI std::vector<std::string> rosPaths();
58 
59 }
60 
61 #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.
std::vector< std::string > rosPaths()
Parse the environment variables ROS_PACKAGE_PATH / AMENT_PREFIX_PATH and extract paths.
Main pinocchio namespace.
Definition: treeview.dox:24