Go to the documentation of this file.
68 template <
class ResourceHandle>
79 std::vector<std::string> out;
83 out.push_back(resource_name_and_handle.first);
95 typename ResourceMap::iterator it =
resource_map_.find(handle.getName());
98 resource_map_.insert(std::make_pair(handle.getName(), handle));
102 ROS_WARN_STREAM(
"Replacing previously registered handle '" << handle.getName() <<
"' in '" +
115 typename ResourceMap::const_iterator it =
resource_map_.find(name);
119 throw std::logic_error(
"Could not find resource '" + name +
"' in '" +
137 for (
const auto& manager : managers) {
138 for (
const auto& handle_name : manager->getNames()) {
std::vector< std::string > getNames() const
std::map< std::string, ResourceHandle > ResourceMap
std::string demangledTypeName()
Convenience method for demangling type names.
#define ROS_WARN_STREAM(args)
Non-templated Base Class that contains a virtual destructor.
ResourceManager< ResourceHandle > ResourceManagerType
void registerHandle(const ResourceHandle &handle)
Register a new resource. If the resource name already exists, the previously stored resource value wi...
Class for handling named resources.
ResourceHandle getHandle(const std::string &name)
Get a resource handle by name.
virtual ~ResourceManagerBase()=default
static void concatManagers(std::vector< ResourceManagerType * > &managers, ResourceManagerType *result)
Combine a list of interfaces into one.
ResourceMap resource_map_
hardware_interface
Author(s): Wim Meeussen, Adolfo Rodriguez Tsouroukdissian
autogenerated on Tue Oct 15 2024 02:08:19