Functions to handle getting system paths, keeps track of:
More...
#include <common/common.hh>
Functions to handle getting system paths, keeps track of:
- SystemPaths::gazeboPaths - media paths containing worlds, models, sdf descriptions, material scripts, textures.
- SystemPaths::ogrePaths - ogre library paths. Should point to Ogre RenderSystem_GL.so et. al.
- SystemPaths::pluginPaths - plugin library paths for common::WorldPlugin
void gazebo::common::SystemPaths::AddGazeboPaths |
( |
const std::string & |
_path) | |
|
Add colon delimited paths to Gazebo install.
- Parameters
-
[in] | _path | the directory to add |
void gazebo::common::SystemPaths::AddModelPaths |
( |
const std::string & |
_path) | |
|
Add colon delimited paths to modelPaths.
- Parameters
-
[in] | _path | the directory to add |
void gazebo::common::SystemPaths::AddOgrePaths |
( |
const std::string & |
_path) | |
|
Add colon delimited paths to ogre install.
- Parameters
-
[in] | _path | the directory to add |
void gazebo::common::SystemPaths::AddPluginPaths |
( |
const std::string & |
_path) | |
|
Add colon delimited paths to plugins.
- Parameters
-
[in] | _path | the directory to add |
void gazebo::common::SystemPaths::AddSearchPathSuffix |
( |
const std::string & |
_suffix) | |
|
add _suffix to the list of path search suffixes
- Parameters
-
[in] | _suffix | The suffix to add |
void gazebo::common::SystemPaths::ClearGazeboPaths |
( |
) | |
|
clear out SystemPaths::gazeboPaths
void gazebo::common::SystemPaths::ClearModelPaths |
( |
) | |
|
clear out SystemPaths::modelPaths
void gazebo::common::SystemPaths::ClearOgrePaths |
( |
) | |
|
clear out SystemPaths::ogrePaths
void gazebo::common::SystemPaths::ClearPluginPaths |
( |
) | |
|
clear out SystemPaths::pluginPaths
std::string gazebo::common::SystemPaths::FindFile |
( |
const std::string & |
_filename, |
|
|
bool |
_searchLocalPath = true |
|
) |
| |
Find a file in the gazebo paths.
- Parameters
-
[in] | _filename | Name of the file to find. |
[in] | _searchLocalPath | True to search in the current working directory. |
- Returns
- Returns full path name to file
std::string gazebo::common::SystemPaths::FindFileURI |
( |
const std::string & |
_uri) | |
|
Find a file or path using a URI.
- Parameters
-
[in] | _uri | the uniform resource identifier |
- Returns
- Returns full path name to file
std::string gazebo::common::SystemPaths::GetDefaultTestPath |
( |
) | |
|
Returns the default temporary test path.
- Returns
- a full path name to directory. E.g.: /tmp/gazebo_test (Linux).
const std::list<std::string>& gazebo::common::SystemPaths::GetGazeboPaths |
( |
) | |
|
Get the gazebo install paths.
- Returns
- a list of paths
std::string gazebo::common::SystemPaths::GetLogPath |
( |
) | |
const |
Get the log path.
- Returns
- the path
const std::list<std::string>& gazebo::common::SystemPaths::GetModelPaths |
( |
) | |
|
Get the model paths.
- Returns
- a list of paths
const std::list<std::string>& gazebo::common::SystemPaths::GetOgrePaths |
( |
) | |
|
Get the ogre install paths.
- Returns
- a list of paths
const std::list<std::string>& gazebo::common::SystemPaths::GetPluginPaths |
( |
) | |
|
Get the plugin paths.
- Returns
- a list of paths
std::string gazebo::common::SystemPaths::GetTmpInstancePath |
( |
) | |
|
Returns a unique temporary file for this instance of SystemPath.
- Returns
- a full path name to directory. E.g.: /tmp/gazebo_234123 (Linux).
std::string gazebo::common::SystemPaths::GetTmpPath |
( |
) | |
|
Returns the default path suitable for temporary files.
- Returns
- a full path name to directory. E.g.: /tmp (Linux).
std::string gazebo::common::SystemPaths::GetWorldPathExtension |
( |
) | |
|
Returns the world path extension.
- Returns
- Right now, it just returns "/worlds"
bool gazebo::common::SystemPaths::gazeboPathsFromEnv |
bool gazebo::common::SystemPaths::modelPathsFromEnv |
bool gazebo::common::SystemPaths::ogrePathsFromEnv |
bool gazebo::common::SystemPaths::pluginPathsFromEnv |
The documentation for this class was generated from the following file: