ModelDatabase Class Reference

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

#include <common/common.hh>

Inherits SingletonT< ModelDatabase >.

Public Member Functions

void DownloadDependencies (const std::string &_path)
 Download all dependencies for a give model path. More...
 
void Fini ()
 Finalize the model database. More...
 
std::string GetDBConfig (const std::string &_uri)
 Return the database.config file as a string. More...
 
std::string GetModelConfig (const std::string &_uri)
 Return the model.config file as a string. More...
 
std::string GetModelFile (const std::string &_uri)
 Get a model's SDF file based on a URI. More...
 
std::string GetModelName (const std::string &_uri)
 Get the name of a model based on a URI. More...
 
std::string GetModelPath (const std::string &_uri, bool _forceDownload=false)
 Get the local path to a model. More...
 
std::map< std::string, std::string > GetModels ()
 Returns the dictionary of all the model names. More...
 
event::ConnectionPtr GetModels (boost::function< void(const std::map< std::string, std::string > &)> _func)
 Get the dictionary of all model names via a callback. More...
 
std::string GetURI ()
 Returns the the global model database URI. More...
 
bool HasModel (const std::string &_modelName)
 Returns true if the model exists on the database. More...
 
void Start (bool _fetchImmediately=false)
 Start the model database. More...
 

Static Public Member Functions

static ModelDatabaseInstance ()
 Get an instance of the singleton. More...
 

Detailed Description

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

Member Function Documentation

§ Instance()

static ModelDatabase * Instance ( )
inlinestaticinherited

Get an instance of the singleton.


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