33 template <
class IDType>
38 const std::filesystem::path& absPackageDataPath,
39 const std::filesystem::path&
42 packageName(packageName),
43 absPackageDataPath(absPackageDataPath),
44 relPathToId(relPathToId),
75 return absPackageDataPath;
78 virtual std::filesystem::path
82 return absPackageDataPath / packageName / relPathToId;
95 if (!std::filesystem::exists(absPackageDataPath))
97 ARMARX_ERROR <<
"Could not resolve absolute path for package '" << packageName
107 std::string packageName;
108 std::filesystem::path absPackageDataPath;
109 std::filesystem::path relPathToId;
117 template <
class IDType,
class DatasetType>
125 const std::string& packageName,
126 const std::filesystem::path& absPackageDataDir,
127 const std::filesystem::path&
129 const std::filesystem::path& relPath,
130 const DatasetType& dataset,
132 Base(packageName, absPackageDataDir, (relDatasetPath / relPath), id),
134 relDatasetPath(relDatasetPath)
150 std::filesystem::path relDatasetPath;