17 #ifndef _GAZEBO_SYSTEMPATHS_HH_
18 #define _GAZEBO_SYSTEMPATHS_HH_
25 #define GetCurrentDir _getcwd
28 #define GetCurrentDir getcwd
31 #include <boost/filesystem.hpp>
62 public: std::string GetLogPath()
const;
66 public:
const std::list<std::string> &GetGazeboPaths();
70 public:
const std::list<std::string> &GetOgrePaths();
74 public:
const std::list<std::string> &GetPluginPaths();
78 public:
const std::list<std::string> &GetModelPaths();
82 public: std::string GetWorldPathExtension();
87 public: std::string GetTmpPath();
92 public: std::string GetTmpInstancePath();
97 public: std::string GetDefaultTestPath();
102 public: std::string FindFileURI(
const std::string &_uri);
109 public: std::string FindFile(
const std::string &_filename,
110 bool _searchLocalPath =
true);
114 public:
void AddGazeboPaths(
const std::string &_path);
118 public:
void AddModelPaths(
const std::string &_path);
122 public:
void AddOgrePaths(
const std::string &_path);
126 public:
void AddPluginPaths(
const std::string &_path);
129 public:
void ClearGazeboPaths();
131 public:
void ClearModelPaths();
133 public:
void ClearOgrePaths();
135 public:
void ClearPluginPaths();
139 public:
void AddSearchPathSuffix(
const std::string &_suffix);
142 private:
void UpdateModelPaths();
144 private:
void UpdateGazeboPaths();
146 private:
void UpdatePluginPaths();
148 private:
void UpdateOgrePaths();
153 private:
void InsertUnique(
const std::string &_path,
154 std::list<std::string> &_list);
157 private: std::list<std::string> gazeboPaths;
160 private: std::list<std::string> ogrePaths;
163 private: std::list<std::string> pluginPaths;
165 private: std::list<std::string> suffixPaths;
167 private: std::list<std::string> modelPaths;
169 private: std::string logPath;
186 private: boost::filesystem::path tmpPath;
189 private: boost::filesystem::path tmpInstancePath;
bool modelPathsFromEnv
if true, call UpdateGazeboPaths() within GetGazeboPaths()
Definition: SystemPaths.hh:172
Singleton template class.
Definition: SingletonT.hh:33
bool gazeboPathsFromEnv
if true, call UpdateGazeboPaths() within GetGazeboPaths()
Definition: SystemPaths.hh:175
bool ogrePathsFromEnv
if true, call UpdateOgrePaths() within GetOgrePaths()
Definition: SystemPaths.hh:181
bool pluginPathsFromEnv
if true, call UpdatePluginPaths() within GetPluginPaths()
Definition: SystemPaths.hh:178
Functions to handle getting system paths, keeps track of:
Definition: SystemPaths.hh:55
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48