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.
 
std::string ModelFile (const std::string &_uri)
 Get a model's SDF file based on a URI.
 
std::string ModelPath (const std::string &_uri, const bool _forceDownload=false)
 Get the local path to a model.
 
virtual std::vector< ignition::fuel_tools::ModelIdentifier > Models (const ignition::fuel_tools::ServerConfig &_server) const
 Get the list of all models.
 
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.
 
std::vector< ignition::fuel_tools::ServerConfig > Servers () const
 Get all the Ignition Fuel servers.
 

Static Public Member Functions

static FuelModelDatabase * Instance ()
 Get an instance of the singleton.
 

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: