17 #ifndef _GAZEBO_SYSTEMPATHS_HH_
18 #define _GAZEBO_SYSTEMPATHS_HH_
25 #define GetCurrentDir _getcwd
28 #define GetCurrentDir getcwd
31 #include <boost/filesystem.hpp>
63 public: std::string GetLogPath()
const;
67 public:
const std::list<std::string> &GetGazeboPaths();
71 public:
const std::list<std::string> &GetOgrePaths();
75 public:
const std::list<std::string> &GetPluginPaths();
79 public:
const std::list<std::string> &GetModelPaths();
83 public: std::string GetWorldPathExtension();
94 public:
const std::string &TmpPath()
const;
105 public:
const std::string &TmpInstancePath()
const;
116 public: std::string DefaultTestPath()
const;
121 public: std::string FindFileURI(
const std::string &_uri);
128 public: std::string FindFile(
const std::string &_filename,
129 bool _searchLocalPath =
true);
133 public:
void AddGazeboPaths(
const std::string &_path);
137 public:
void AddModelPaths(
const std::string &_path);
142 public:
void AddModelPathsUpdate(
const std::string &_path);
146 public:
void AddOgrePaths(
const std::string &_path);
150 public:
void AddPluginPaths(
const std::string &_path);
153 public:
void ClearGazeboPaths();
156 public:
void ClearModelPaths();
159 public:
void ClearOgrePaths();
162 public:
void ClearPluginPaths();
166 public:
void AddSearchPathSuffix(
const std::string &_suffix);
169 private:
void UpdateModelPaths();
172 private:
void UpdateGazeboPaths();
175 private:
void UpdatePluginPaths();
178 private:
void UpdateOgrePaths();
183 private:
void InsertUnique(
const std::string &_path,
184 std::list<std::string> &_list);
187 private: std::list<std::string> gazeboPaths;
190 private: std::list<std::string> ogrePaths;
193 private: std::list<std::string> pluginPaths;
195 private: std::list<std::string> suffixPaths;
197 private: std::list<std::string> modelPaths;
199 private: std::string logPath;
220 private: boost::filesystem::path tmpPath;
223 private: boost::filesystem::path tmpInstancePath;
Singleton template class.
Definition: SingletonT.hh:33
bool gazeboPathsFromEnv
if true, call UpdateGazeboPaths() within GetGazeboPaths()
Definition: SystemPaths.hh:209
bool pluginPathsFromEnv
if true, call UpdatePluginPaths() within GetPluginPaths()
Definition: SystemPaths.hh:212
event::EventT< void(std::string)> updateModelRequest
Event to notify InsertModelWidget that the model paths were changed.
Definition: SystemPaths.hh:203
bool modelPathsFromEnv
if true, call UpdateGazeboPaths() within GetGazeboPaths()
Definition: SystemPaths.hh:206
#define GAZEBO_DEPRECATED(version)
Definition: system.hh:302
Functions to handle getting system paths, keeps track of:
Definition: SystemPaths.hh:56
bool ogrePathsFromEnv
if true, call UpdateOgrePaths() within GetOgrePaths()
Definition: SystemPaths.hh:215