Go to the documentation of this file.
40 using path = std::filesystem::path;
52 ObjectInfo(
const std::string& packageName,
const path& absPackageDataDir,
54 ObjectInfo(
const std::string& packageName,
const path& packageDataDir,
55 const path& relObjectsPath,
68 [[deprecated(
"This function is deprecated. Use className() instead.")]]
76 std::string
idStr()
const;
79 PackageFileLocation file(
const std::string& extension,
const std::string& suffix =
"",
bool fixDataPath =
false)
const;
86 std::optional<PackageFileLocation>
getModel()
const;
108 std::optional<simox::AxisAlignedBoundingBox>
loadAABB()
const;
114 std::optional<simox::OrientedBox<float>>
loadOOBB()
const;
139 path objectDirectory(
bool fixDataPath)
const;
141 std::optional<std::vector<std::string>> loadNames(
const std::string& jsonKey)
const;
146 std::string _packageName;
147 path _absPackageDataDir;
148 path _relObjectsPath;
152 bool _logError =
true;
156 std::ostream&
operator<<(std::ostream& os,
const ObjectInfo& rhs);
161 return lhs.
id() == rhs.
id();
165 return lhs.
id() != rhs.
id();
169 return lhs.
id() < rhs.
id();
173 return lhs.
id() > rhs.
id();
177 return lhs.
id() <= rhs.
id();
181 return lhs.
id() >= rhs.
id();
PackageFileLocation articulatedSdf() const
A known object ID of the form "Dataset/ClassName" or "Dataset/ClassName/InstanceName".
bool operator!=(const RemoteHandle< PrxTA > &fst, const RemoteHandle< PrxTB > &snd)
PackageFileLocation articulatedSimoxXML() const
std::string className() const
ObjectInfo(const std::string &packageName, const path &absPackageDataDir, const path &relObjectsPath, const ObjectID &id)
ObjectInfo.
PackageFileLocation wavefrontObj() const
PackageFileLocation articulatedUrdf() const
std::string relativePath
Relative to the package's data directory.
virtual bool checkPaths() const
Checks the existence of expected files.
PackageFileLocation urdf() const
std::optional< std::vector< std::string > > loadRecognizedNames() const
Load names to use when matched when recognizing an object by name.
PackageFileLocation file(const std::string &extension, const std::string &suffix="", bool fixDataPath=false) const
::simox::arondto::AxisAlignedBoundingBox AxisAlignedBoundingBox
PackageFileLocation boundingBoxJson() const
std::filesystem::path path
PackageFileLocation sdf() const
bool operator>=(const RemoteHandle< PrxTA > &fst, const RemoteHandle< PrxTB > &snd)
std::string package() const
bool operator==(const RemoteHandle< PrxTA > &fst, const RemoteHandle< PrxTB > &snd)
std::optional< PackageFileLocation > getModel() const
Return the Simox XML, URDF or SDF, if one exists.
std::string idStr() const
PackageFileLocation simoxXML() const
std::string package
Name of the ArmarX package.
std::string dataset() const
std::optional< simox::OrientedBox< float > > loadOOBB() const
Load the OOBB (object-oriented bounding box) from the bounding box JSON file.
std::optional< simox::AxisAlignedBoundingBox > loadAABB() const
Load the AABB (axis-aligned bounding-box) from the bounding box JSON file.
std::filesystem::path absolutePath
The absolute path (in the host's file system).
bool operator<(const RemoteHandle< PrxTA > &fst, const RemoteHandle< PrxTB > &snd)
std::optional< std::vector< std::string > > loadSpokenNames() const
Load names to use when verbalizing an object name.
ObjectID id() const
Return "dataset/name".
std::ostream & operator<<(std::ostream &os, const PythonApplicationManager::Paths &paths)
PackageFileLocation meshWrl() const
bool operator<=(const RemoteHandle< PrxTA > &fst, const RemoteHandle< PrxTB > &snd)
virtual ~ObjectInfo()=default
void setLogError(bool enabled)
std::optional< PackageFileLocation > getArticulatedModel() const
Return the articulated Simox XML, URDF or SDF, if one exists.
This file offers overloads of toIce() and fromIce() functions for STL container types.
::simox::arondto::OrientedBox OrientedBox
PackageFileLocation namesJson() const
File containing recognized and spoken names of objects.
Accessor for the object files.
bool operator>(const RemoteHandle< PrxTA > &fst, const RemoteHandle< PrxTB > &snd)