Tesseract
Motion Planning Environment
|
A general resource loaders using environment variable. More...
#include <resource_locator.h>
Public Types | |
using | Ptr = std::shared_ptr< GeneralResourceLocator > |
using | ConstPtr = std::shared_ptr< const GeneralResourceLocator > |
Public Types inherited from tesseract_common::ResourceLocator | |
using | Ptr = std::shared_ptr< ResourceLocator > |
using | ConstPtr = std::shared_ptr< const ResourceLocator > |
Public Member Functions | |
GeneralResourceLocator () | |
GeneralResourceLocator (const GeneralResourceLocator &)=default | |
GeneralResourceLocator & | operator= (const GeneralResourceLocator &)=default |
GeneralResourceLocator (GeneralResourceLocator &&)=default | |
GeneralResourceLocator & | operator= (GeneralResourceLocator &&)=default |
~GeneralResourceLocator () override=default | |
std::shared_ptr< Resource > | locateResource (const std::string &url) const override |
Locate a resource based on a URL. More... | |
bool | operator== (const GeneralResourceLocator &rhs) const |
bool | operator!= (const GeneralResourceLocator &rhs) const |
Public Member Functions inherited from tesseract_common::ResourceLocator | |
virtual | ~ResourceLocator ()=default |
virtual std::shared_ptr< Resource > | locateResource (const std::string &url) const =0 |
Locate a resource based on a URL. More... | |
bool | operator== (const ResourceLocator &rhs) const |
bool | operator!= (const ResourceLocator &rhs) const |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
std::unordered_map< std::string, std::string > | package_paths_ |
Friends | |
class | boost::serialization::access |
A general resource loaders using environment variable.
Also can set this environment variable TESSERACT_RESOURCE_PATH with ':' separated directories and then use the directires as package names
using tesseract_common::GeneralResourceLocator::ConstPtr = std::shared_ptr<const GeneralResourceLocator> |
using tesseract_common::GeneralResourceLocator::Ptr = std::shared_ptr<GeneralResourceLocator> |
tesseract_common::GeneralResourceLocator::GeneralResourceLocator | ( | ) |
|
default |
|
default |
|
overridedefault |
|
overridevirtual |
Locate a resource based on a URL.
url | The URL of the resource |
Implements tesseract_common::ResourceLocator.
bool tesseract_common::GeneralResourceLocator::operator!= | ( | const GeneralResourceLocator & | rhs | ) | const |
|
default |
|
default |
bool tesseract_common::GeneralResourceLocator::operator== | ( | const GeneralResourceLocator & | rhs | ) | const |
|
private |
|
friend |
|
private |