|
|
Accessor for the object files. More...
#include <RobotAPI/libraries/ArmarXObjects/ObjectInfo.h>
Public Types | |
| using | path = std::filesystem::path |
Public Member Functions | |
| PackageFileLocation | articulatedSdf () const |
| PackageFileLocation | articulatedSimoxXML () const |
| PackageFileLocation | articulatedUrdf () const |
| PackageFileLocation | boundingBoxJson () const |
| virtual bool | checkPaths () const |
| Checks the existence of expected files. | |
| std::string | className () const |
| std::string | dataset () const |
| PackageFileLocation | file (const std::string &extension, const std::string &suffix="", bool fixDataPath=false) const |
| std::optional< PackageFileLocation > | getArticulatedModel () const |
| Return the articulated Simox XML, URDF or SDF, if one exists. | |
| std::optional< PackageFileLocation > | getModel () const |
| Return the Simox XML, URDF or SDF, if one exists. | |
| ObjectID | id () const |
| Return "dataset/name". | |
| std::string | idStr () const |
| std::optional< simox::AxisAlignedBoundingBox > | loadAABB () const |
| Load the AABB (axis-aligned bounding-box) from the bounding box JSON file. | |
| std::optional< simox::OrientedBox< float > > | loadOOBB () const |
| Load the OOBB (object-oriented bounding box) from the bounding box JSON file. | |
| std::optional< std::vector< std::string > > | loadRecognizedNames () const |
| Load names to use when matched when recognizing an object by name. | |
| std::optional< std::vector< std::string > > | loadSpokenNames () const |
| Load names to use when verbalizing an object name. | |
| PackageFileLocation | meshWrl () const |
| std::string | name () const |
| PackageFileLocation | namesJson () const |
| File containing recognized and spoken names of objects. | |
| ObjectInfo (const std::string &packageName, const path &absPackageDataDir, const path &relObjectsPath, const ObjectID &id) | |
| ObjectInfo. | |
| ObjectInfo (const std::string &packageName, const path &packageDataDir, const path &relObjectsPath, const std::string &dataset, const std::string &className) | |
| std::string | package () const |
| PackageFileLocation | sdf () const |
| void | setLogError (bool enabled) |
| PackageFileLocation | simoxXML () const |
| PackageFileLocation | urdf () const |
| PackageFileLocation | wavefrontObj () const |
| virtual | ~ObjectInfo ()=default |
Accessor for the object files.
Definition at line 36 of file ObjectInfo.h.
| using path = std::filesystem::path |
Definition at line 39 of file ObjectInfo.h.
| ObjectInfo | ( | const std::string & | packageName, |
| const path & | absPackageDataDir, | ||
| const path & | relObjectsPath, | ||
| const ObjectID & | id ) |
| packageName | The ArmarX package. |
| absPackageDataDir | Absolute path to the package's data directory. |
| localObjectsPath | The path where objects are stored in the data directory. |
| id | The object class ID (with dataset and class name). |
Definition at line 20 of file ObjectInfo.cpp.
Here is the call graph for this function:| ObjectInfo | ( | const std::string & | packageName, |
| const path & | packageDataDir, | ||
| const path & | relObjectsPath, | ||
| const std::string & | dataset, | ||
| const std::string & | className ) |
|
virtualdefault |
| PackageFileLocation articulatedSdf | ( | ) | const |
Definition at line 161 of file ObjectInfo.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| PackageFileLocation articulatedSimoxXML | ( | ) | const |
Definition at line 149 of file ObjectInfo.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| PackageFileLocation articulatedUrdf | ( | ) | const |
Definition at line 155 of file ObjectInfo.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| PackageFileLocation boundingBoxJson | ( | ) | const |
Definition at line 200 of file ObjectInfo.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Checks the existence of expected files.
If a file is does not exist, emits a warning returns false.
Definition at line 379 of file ObjectInfo.cpp.
Here is the call graph for this function:| std::string className | ( | ) | const |
| std::string dataset | ( | ) | const |
| PackageFileLocation file | ( | const std::string & | extension, |
| const std::string & | suffix = "", | ||
| bool | fixDataPath = false ) const |
| std::optional< PackageFileLocation > getArticulatedModel | ( | ) | const |
Return the articulated Simox XML, URDF or SDF, if one exists.
Definition at line 167 of file ObjectInfo.cpp.
Here is the call graph for this function:| std::optional< PackageFileLocation > getModel | ( | ) | const |
Return the Simox XML, URDF or SDF, if one exists.
Definition at line 128 of file ObjectInfo.cpp.
Here is the call graph for this function:| ObjectID id | ( | ) | const |
Return "dataset/name".
Definition at line 68 of file ObjectInfo.cpp.
Here is the caller graph for this function:| std::string idStr | ( | ) | const |
Definition at line 74 of file ObjectInfo.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::optional< simox::AxisAlignedBoundingBox > loadAABB | ( | ) | const |
Load the AABB (axis-aligned bounding-box) from the bounding box JSON file.
std::nullopt if file does not exist. Definition at line 212 of file ObjectInfo.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::optional< simox::OrientedBox< float > > loadOOBB | ( | ) | const |
Load the OOBB (object-oriented bounding box) from the bounding box JSON file.
The OOBB is defined the object's local frame.
std::nullopt if file does not exist. Definition at line 269 of file ObjectInfo.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::optional< std::vector< std::string > > loadRecognizedNames | ( | ) | const |
Load names to use when matched when recognizing an object by name.
namesJson() Definition at line 328 of file ObjectInfo.cpp.
Here is the caller graph for this function:| std::optional< std::vector< std::string > > loadSpokenNames | ( | ) | const |
Load names to use when verbalizing an object name.
namesJson() Definition at line 334 of file ObjectInfo.cpp.
Here is the caller graph for this function:| PackageFileLocation meshWrl | ( | ) | const |
Definition at line 188 of file ObjectInfo.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| PackageFileLocation namesJson | ( | ) | const |
File containing recognized and spoken names of objects.
Definition at line 206 of file ObjectInfo.cpp.
Here is the call graph for this function:| std::string package | ( | ) | const |
Definition at line 50 of file ObjectInfo.cpp.
| PackageFileLocation sdf | ( | ) | const |
Definition at line 122 of file ObjectInfo.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void setLogError | ( | bool | enabled | ) |
Definition at line 44 of file ObjectInfo.cpp.
| PackageFileLocation simoxXML | ( | ) | const |
Definition at line 110 of file ObjectInfo.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| PackageFileLocation urdf | ( | ) | const |
Definition at line 116 of file ObjectInfo.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| PackageFileLocation wavefrontObj | ( | ) | const |
Definition at line 194 of file ObjectInfo.cpp.
Here is the call graph for this function:
Here is the caller graph for this function: