Accessor for human profile files.
More...
#include <VisionX/libraries/armem_human/Info.h>
|
| using | path = std::filesystem::path |
| |
| using | Person = armarx::human::arondto::Person |
| |
Accessor for human profile files.
◆ path
| using path = std::filesystem::path |
◆ Person
| using Person = armarx::human::arondto::Person |
◆ Info() [1/2]
| Info |
( |
const std::string & | packageName, |
|
|
const path & | absPackageDataDir, |
|
|
const path & | relativePath, |
|
|
const std::string & | id ) |
Info.
- Parameters
-
| packageName | The ArmarX package. |
| absPackageDataDir | Absolute path to the package's data directory. |
| relativePath | The path where human profiles are stored in the data directory. |
| id | The human profile ID. |
◆ Info() [2/2]
| Info |
( |
const path & | absoluteDirectory, |
|
|
const std::string & | id ) |
A profile outside an ArmarX package.
Its files have no package path, so the face images of the loaded profile have no filepath.
- Parameters
-
| absoluteDirectory | The directory containing the profile directories. |
| id | The human profile ID (the name of its directory). |
◆ ~Info()
◆ checkPaths()
| bool checkPaths |
( |
| ) |
const |
|
virtual |
Checks the existence of expected files.
If a file is does not exist, emits a warning returns false.
- Returns
- True if all existing files are found, false otherwise.
◆ faceImageDir()
◆ faceImagePaths()
| std::vector< Info::path > faceImagePaths |
( |
const std::vector< std::string > & | extensions = {".png", ".jpg"} | ) |
const |
◆ faceImages()
| std::vector< PackagePath > faceImages |
( |
const std::vector< std::string > & | extensions = {".png", ".jpg"} | ) |
const |
◆ file()
| PackagePath file |
( |
const std::string & | extension, |
|
|
const std::string & | suffix = "" ) const |
◆ hasPackage()
| bool hasPackage |
( |
| ) |
const |
◆ id()
◆ loadProfile()
| std::optional< Info::Person > loadProfile |
( |
const bool | loadFaceImages = true | ) |
const |
◆ package()
| std::string package |
( |
| ) |
const |
Empty for a profile outside a package.
◆ profileDirectory()
The directory of this profile (containing profile.json).
◆ profileJson()
◆ profileJsonPath()
◆ setLogError()
| void setLogError |
( |
bool | enabled | ) |
|
◆ sub_directory()
| PackagePath sub_directory |
( |
const std::string & | suffix | ) |
const |
The documentation for this class was generated from the following files:
- VisionX/libraries/armem_human/Info.h
- VisionX/libraries/armem_human/Info.cpp