FuelModelDatabase Class Reference

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

#include <common/common.hh>

Inherits SingletonT< FuelModelDatabase >.

Public Member Functions

std::string CachedFilePath (const std::string &_uri)
 Get the full local path to a cached file based on its URI. More...
 
std::string ModelFile (const std::string &_uri)
 Get a model's SDF file based on a URI. More...
 
std::string ModelPath (const std::string &_uri, const bool _forceDownload=false)
 Get the local path to a model. More...
 
virtual void Models (const ignition::fuel_tools::ServerConfig &_server, std::function< void(const std::vector< ignition::fuel_tools::ModelIdentifier > &)> &_func)
 Get the list of all models via a callback. More...
 
virtual std::vector< ignition::fuel_tools::ModelIdentifier > Models (const ignition::fuel_tools::ServerConfig &_server) const
 Get the list of all models. More...
 
std::vector< ignition::fuel_tools::ServerConfig > Servers () const
 Get all the Ignition Fuel servers. More...
 

Static Public Member Functions

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

Detailed Description

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

Member Function Documentation

◆ Instance()

static FuelModelDatabase * Instance ( )
inlinestaticinherited

Get an instance of the singleton.


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