Go to the documentation of this file.
15 template <
class FloatT>
39 using path = std::filesystem::path;
51 const path& absPackageDataDir,
52 const path& relObjectsPath,
55 const path& packageDataDir,
56 const path& relObjectsPath,
71 [[deprecated(
"This function is deprecated. Use className() instead.")]] std::string
79 std::string
idStr()
const;
83 const std::string& suffix =
"",
84 bool fixDataPath =
false)
const;
91 std::optional<PackageFileLocation>
getModel()
const;
113 std::optional<simox::AxisAlignedBoundingBox>
loadAABB()
const;
119 std::optional<simox::OrientedBox<float>>
loadOOBB()
const;
142 path objectDirectory(
bool fixDataPath)
const;
144 std::optional<std::vector<std::string>> loadNames(
const std::string& jsonKey)
const;
148 std::string _packageName;
149 path _absPackageDataDir;
150 path _relObjectsPath;
154 bool _logError =
true;
157 std::ostream&
operator<<(std::ostream& os,
const ObjectInfo& rhs);
162 return lhs.
id() == rhs.
id();
168 return lhs.
id() != rhs.
id();
174 return lhs.
id() < rhs.
id();
180 return lhs.
id() > rhs.
id();
186 return lhs.
id() <= rhs.
id();
192 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)