All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
gazebo::common::ModelDatabase Class Reference

Connects to model database, and has utility functions to find models. More...

#include <common/common.hh>

Inheritance diagram for gazebo::common::ModelDatabase:
Inheritance graph
[legend]

Public Member Functions

void DownloadDependencies (const std::string &_path)
 Download all dependencies for a give model path.
 
std::string GetManifest (const std::string &_uri)
 Return the manifest.xml file as a string.
 
std::string GetModelFile (const std::string &_uri)
 Get a model's SDF file based on a URI.
 
std::string GetModelName (const std::string &_uri)
 Get the name of a model based on a URI.
 
std::string GetModelPath (const std::string &_uri)
 Get the local path to a model.
 
std::map< std::string,
std::string > 
GetModels ()
 Returns the dictionary of all the model names.
 
void GetModels (boost::function< void(const std::map< std::string, std::string > &)> _func)
 Get the dictionary of all model names via a callback.
 
std::string GetURI ()
 Returns the the global model database URI.
 
bool HasModel (const std::string &_modelName)
 Returns true if the model exists on the database.
 

Additional Inherited Members

- Static Public Member Functions inherited from SingletonT< T >
static T * Instance ()
 Get an instance of the singleton.
 
- Protected Member Functions inherited from SingletonT< T >
 SingletonT ()
 Constructor.
 
virtual ~SingletonT ()
 Destructor.
 

Detailed Description

Connects to model database, and has utility functions to find models.


The documentation for this class was generated from the following file: