pinocchio  2.5.6
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  const std::string & delimiter = ":");
27 
28 
36  PINOCCHIO_DLLAPI void
37  extractPathFromEnvVar(const std::string & env_var_name,
38  std::vector<std::string> & list_of_paths,
39  const std::string & delimiter = ":");
40 
41 
47  PINOCCHIO_DLLAPI std::vector<std::string> rosPaths();
48 
49 }
50 
51 #endif // __pinocchio_utils_file_explorer_hpp__
pinocchio::extractPathFromEnvVar
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.
Definition: file-explorer.cpp:11
pinocchio::rosPaths
std::vector< std::string > rosPaths()
Parse the environment variable ROS_PACKAGE_PATH and extract paths.
Definition: file-explorer.cpp:45
pinocchio
Main pinocchio namespace.
Definition: treeview.dox:24