#include <ObjectDatabase.h>
Public Member Functions | |
ObjectDatabase (fs::path configurationFilePath) | |
bool | processObjectMetaDataRequest (ObjectMetaData::Request &req, ObjectMetaData::Response &res) |
bool | processObjectTypeGeneratorRequest (ObjectTypeGenerator::Request &req, ObjectTypeGenerator::Response &res) |
bool | processObjectTypeListRequest (ObjectTypeList::Request &req, ObjectTypeList::Response &res) |
bool | processRecognizerListMeshesRequest (RecognizerListMeshes::Request &req, RecognizerListMeshes::Response &res) |
bool | processRecognizerListRequest (RecognizerList::Request &req, RecognizerList::Response &res) |
void | readAllObjectDatabaseRecognizers () |
virtual | ~ObjectDatabase () |
Definition at line 42 of file ObjectDatabase.h.
object_database::ObjectDatabase::ObjectDatabase | ( | fs::path | configurationFilePath | ) |
ctor
configurationFilePath | path to config file. |
Definition at line 35 of file ObjectDatabase.cpp.
|
inlinevirtual |
dtor
Definition at line 93 of file ObjectDatabase.h.
bool object_database::ObjectDatabase::processObjectMetaDataRequest | ( | ObjectMetaData::Request & | req, |
ObjectMetaData::Response & | res | ||
) |
Process the request to get the path of the object
req | the request message |
res | the correlated response message. |
Definition at line 141 of file ObjectDatabase.cpp.
bool object_database::ObjectDatabase::processObjectTypeGeneratorRequest | ( | ObjectTypeGenerator::Request & | req, |
ObjectTypeGenerator::Response & | res | ||
) |
Processes the request to create a new object folder in textured objects
req | the request message contains the source path of the object file |
res | the response message will be empty |
Definition at line 225 of file ObjectDatabase.cpp.
bool object_database::ObjectDatabase::processObjectTypeListRequest | ( | ObjectTypeList::Request & | req, |
ObjectTypeList::Response & | res | ||
) |
Processes the request to get a list of entries in an arbitrary recognizer.
req | the request message |
res | the correlated response message. |
Definition at line 82 of file ObjectDatabase.cpp.
bool object_database::ObjectDatabase::processRecognizerListMeshesRequest | ( | RecognizerListMeshes::Request & | req, |
RecognizerListMeshes::Response & | res | ||
) |
Process the request to get all meshes of a recognizer
req | the request message |
res | the correlated response message. |
Definition at line 167 of file ObjectDatabase.cpp.
bool object_database::ObjectDatabase::processRecognizerListRequest | ( | RecognizerList::Request & | req, |
RecognizerList::Response & | res | ||
) |
Processes the request to get a list of recognizers.
req | the request message |
res | the correlated response message. |
Definition at line 66 of file ObjectDatabase.cpp.
void object_database::ObjectDatabase::readAllObjectDatabaseRecognizers | ( | ) |
Convenience function for calling readObjectType with all object types.
Definition at line 318 of file ObjectDatabase.cpp.
|
private |
the config file.
Definition at line 82 of file ObjectDatabase.h.
|
private |
The path to the configuration file.
Definition at line 77 of file ObjectDatabase.h.
|
private |
Global node handle.
Definition at line 47 of file ObjectDatabase.h.
|
private |
the object type service handle
Definition at line 67 of file ObjectDatabase.h.
|
private |
the object type generator service handle
Definition at line 72 of file ObjectDatabase.h.
|
private |
the object type list service handle
Definition at line 62 of file ObjectDatabase.h.
|
private |
the recognizer meshes list service handle
Definition at line 57 of file ObjectDatabase.h.
|
private |
the recognizer list service handle
Definition at line 52 of file ObjectDatabase.h.