57 std::optional<std::string>
operator()(
const std::string& dataset,
58 const std::string& className);
64 std::optional<std::string> load(
const std::string& dataset,
const std::string& className);
69 std::map<std::pair<std::string, std::string>, std::optional<std::string>> cache;
Used to find objects in the ArmarX objects repository [1] (formerly [2]).
ObjectSpokenNames()=default
std::optional< std::string > operator()(const std::string &dataset, const std::string &className)
The spoken name of an object class, or std::nullopt if it has none.
SpokenNameLookup asLookup()
This resolver as a SpokenNameLookup. Must not outlive this object.
std::function< std::optional< std::string >( const std::string &dataset, const std::string &className)> SpokenNameLookup
Resolves an object class to its natural-language ("spoken") name.