Aikido
AssetDatabase.hpp
Go to the documentation of this file.
1 #ifndef AIKIDO_PERCEPTION_ASSET_DATABASE_HPP_
2 #define AIKIDO_PERCEPTION_ASSET_DATABASE_HPP_
3 
4 #include <stdexcept>
5 
6 #include <dart/common/LocalResourceRetriever.hpp>
7 #include <dart/dart.hpp>
8 
10 #include "aikido/io/yaml.hpp"
11 
12 namespace aikido {
13 namespace perception {
14 
17 
38 
40 {
41 public:
47  const dart::common::ResourceRetrieverPtr& resourceRetriever,
48  const dart::common::Uri& configDataURI);
49 
50  virtual ~AssetDatabase() = default;
51 
57  void getAssetByKey(
58  const std::string& assetKey,
59  dart::common::Uri& assetResource,
60  Eigen::Isometry3d& assetOffset) const;
61 
62 private:
64  YAML::Node mAssetData;
65 };
66 
67 } // namespace perception
68 } // namespace aikido
69 
70 #endif // AIKIDO_PERCEPTION_OBJECT_DATABASE_HPP_
aikido::perception::AssetDatabase::~AssetDatabase
virtual ~AssetDatabase()=default
aikido
Format of serialized trajectory in YAML.
Definition: algorithm.hpp:4
aikido::perception::AssetDatabase
Instantiation of AssetDatabase that reads of JSON file containing the information that maps object ke...
Definition: AssetDatabase.hpp:39
aikido::perception::AssetDatabase::mAssetData
YAML::Node mAssetData
The map of asset keys to object names and resources for models.
Definition: AssetDatabase.hpp:64
yaml.hpp
CatkinResourceRetriever.hpp
aikido::perception::AssetDatabase::getAssetByKey
void getAssetByKey(const std::string &assetKey, dart::common::Uri &assetResource, Eigen::Isometry3d &assetOffset) const
Get the object name, resource, and offset from database by objectKey.
aikido::perception::AssetDatabase::AssetDatabase
AssetDatabase(const dart::common::ResourceRetrieverPtr &resourceRetriever, const dart::common::Uri &configDataURI)
Construct a AssetDatabase that uses ResourceRetriever to load configuration data from a JSON file at ...