17 #ifndef _GAZEBO_SYSTEMPATHS_HH_ 18 #define _GAZEBO_SYSTEMPATHS_HH_ 25 #define GetCurrentDir _getcwd 28 #define GetCurrentDir getcwd 31 #ifndef Q_MOC_RUN // See: https://bugreports.qt-project.org/browse/QTBUG-22829 32 #include <boost/filesystem.hpp> 65 public: std::string GetLogPath()
const;
69 public:
const std::list<std::string> &GetGazeboPaths();
73 public:
const std::list<std::string> &GetOgrePaths();
77 public:
const std::list<std::string> &GetPluginPaths();
81 public:
const std::list<std::string> &GetModelPaths();
85 public: std::string GetWorldPathExtension();
90 public: std::string GetTmpPath();
95 public: std::string GetTmpInstancePath();
100 public: std::string GetDefaultTestPath();
105 public: std::string FindFileURI(
const std::string &_uri);
112 public: std::string FindFile(
const std::string &_filename,
113 bool _searchLocalPath =
true);
117 public:
void AddGazeboPaths(
const std::string &_path);
121 public:
void AddModelPaths(
const std::string &_path);
126 public:
void AddModelPathsUpdate(
const std::string &_path);
130 public:
void AddOgrePaths(
const std::string &_path);
134 public:
void AddPluginPaths(
const std::string &_path);
137 public:
void ClearGazeboPaths();
140 public:
void ClearModelPaths();
143 public:
void ClearOgrePaths();
146 public:
void ClearPluginPaths();
150 public:
void AddSearchPathSuffix(
const std::string &_suffix);
153 private:
void UpdateModelPaths();
156 private:
void UpdateGazeboPaths();
159 private:
void UpdatePluginPaths();
162 private:
void UpdateOgrePaths();
167 private:
void InsertUnique(
const std::string &_path,
168 std::list<std::string> &_list);
171 private: std::list<std::string> gazeboPaths;
174 private: std::list<std::string> ogrePaths;
177 private: std::list<std::string> pluginPaths;
179 private: std::list<std::string> suffixPaths;
181 private: std::list<std::string> modelPaths;
183 private: std::string logPath;
204 private: boost::filesystem::path tmpPath;
207 private: boost::filesystem::path tmpInstancePath;
Forward declarations for the common classes.
Definition: Animation.hh:33
Singleton template class.
Definition: SingletonT.hh:33
bool gazeboPathsFromEnv
if true, call UpdateGazeboPaths() within GetGazeboPaths()
Definition: SystemPaths.hh:193
bool pluginPathsFromEnv
if true, call UpdatePluginPaths() within GetPluginPaths()
Definition: SystemPaths.hh:196
event::EventT< void(std::string)> updateModelRequest
Event to notify InsertModelWidget that the model paths were changed.
Definition: SystemPaths.hh:187
bool modelPathsFromEnv
if true, call UpdateGazeboPaths() within GetGazeboPaths()
Definition: SystemPaths.hh:190
Functions to handle getting system paths, keeps track of:
Definition: SystemPaths.hh:58
bool ogrePathsFromEnv
if true, call UpdateOgrePaths() within GetOgrePaths()
Definition: SystemPaths.hh:199