Class ResourceRetrieverService

Class Documentation

class ResourceRetrieverService

Implementation of the resource retriever service using an in memory map of meshes.

Public Types

using NodeType = rclcpp::node_interfaces::NodeInterfaces<rclcpp::node_interfaces::NodeBaseInterface, rclcpp::node_interfaces::NodeLoggingInterface, rclcpp::node_interfaces::NodeServicesInterface>

Public Functions

void ClearResourceData()
void SetResourceData(std::unordered_map<std::string, std::vector<uint8_t>> resource_data)
void UpdateResourceData(const std::string &resource_path, std::vector<uint8_t> resource_data)
std::optional<std::string> GetEtagForResourcePath(const std::string &resource_path) const

Public Static Functions

static std::unique_ptr<ResourceRetrieverService> Create(NodeType node, std::string_view service_name = kDefaultServiceName)

Public Static Attributes

static constexpr std::string_view kDefaultServiceName = "resource_provider"