Public Member Functions | Private Attributes | List of all members
object_database::ObjectDatabase Class Reference

#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 ()
 

Private Attributes

ObjectDatabaseConfig mConfig
 
fs::path mConfigurationFilePath
 
ros::NodeHandle mGlobalNodeHandle
 
ros::ServiceServer mObjectMetaDataServiceHandle
 
ros::ServiceServer mObjectTypeGeneratorServiceHandle
 
ros::ServiceServer mObjectTypeListServiceHandle
 
ros::ServiceServer mRecognizerListMeshesServiceHandle
 
ros::ServiceServer mRecognizerListServiceHandle
 

Detailed Description

Definition at line 42 of file ObjectDatabase.h.

Constructor & Destructor Documentation

◆ ObjectDatabase()

object_database::ObjectDatabase::ObjectDatabase ( fs::path  configurationFilePath)

ctor

Parameters
configurationFilePathpath to config file.

Definition at line 35 of file ObjectDatabase.cpp.

◆ ~ObjectDatabase()

virtual object_database::ObjectDatabase::~ObjectDatabase ( )
inlinevirtual

dtor

Definition at line 93 of file ObjectDatabase.h.

Member Function Documentation

◆ processObjectMetaDataRequest()

bool object_database::ObjectDatabase::processObjectMetaDataRequest ( ObjectMetaData::Request &  req,
ObjectMetaData::Response &  res 
)

Process the request to get the path of the object

Parameters
reqthe request message
resthe correlated response message.

Definition at line 141 of file ObjectDatabase.cpp.

◆ processObjectTypeGeneratorRequest()

bool object_database::ObjectDatabase::processObjectTypeGeneratorRequest ( ObjectTypeGenerator::Request &  req,
ObjectTypeGenerator::Response &  res 
)

Processes the request to create a new object folder in textured objects

Parameters
reqthe request message contains the source path of the object file
resthe response message will be empty
Returns

Definition at line 225 of file ObjectDatabase.cpp.

◆ processObjectTypeListRequest()

bool object_database::ObjectDatabase::processObjectTypeListRequest ( ObjectTypeList::Request &  req,
ObjectTypeList::Response &  res 
)

Processes the request to get a list of entries in an arbitrary recognizer.

Parameters
reqthe request message
resthe correlated response message.

Definition at line 82 of file ObjectDatabase.cpp.

◆ processRecognizerListMeshesRequest()

bool object_database::ObjectDatabase::processRecognizerListMeshesRequest ( RecognizerListMeshes::Request &  req,
RecognizerListMeshes::Response &  res 
)

Process the request to get all meshes of a recognizer

Parameters
reqthe request message
resthe correlated response message.

Definition at line 167 of file ObjectDatabase.cpp.

◆ processRecognizerListRequest()

bool object_database::ObjectDatabase::processRecognizerListRequest ( RecognizerList::Request &  req,
RecognizerList::Response &  res 
)

Processes the request to get a list of recognizers.

Parameters
reqthe request message
resthe correlated response message.

Definition at line 66 of file ObjectDatabase.cpp.

◆ readAllObjectDatabaseRecognizers()

void object_database::ObjectDatabase::readAllObjectDatabaseRecognizers ( )

Convenience function for calling readObjectType with all object types.

See also
RecognitionManager::readObjectType

Definition at line 318 of file ObjectDatabase.cpp.

Member Data Documentation

◆ mConfig

ObjectDatabaseConfig object_database::ObjectDatabase::mConfig
private

the config file.

Definition at line 82 of file ObjectDatabase.h.

◆ mConfigurationFilePath

fs::path object_database::ObjectDatabase::mConfigurationFilePath
private

The path to the configuration file.

Definition at line 77 of file ObjectDatabase.h.

◆ mGlobalNodeHandle

ros::NodeHandle object_database::ObjectDatabase::mGlobalNodeHandle
private

Global node handle.

Definition at line 47 of file ObjectDatabase.h.

◆ mObjectMetaDataServiceHandle

ros::ServiceServer object_database::ObjectDatabase::mObjectMetaDataServiceHandle
private

the object type service handle

Definition at line 67 of file ObjectDatabase.h.

◆ mObjectTypeGeneratorServiceHandle

ros::ServiceServer object_database::ObjectDatabase::mObjectTypeGeneratorServiceHandle
private

the object type generator service handle

Definition at line 72 of file ObjectDatabase.h.

◆ mObjectTypeListServiceHandle

ros::ServiceServer object_database::ObjectDatabase::mObjectTypeListServiceHandle
private

the object type list service handle

Definition at line 62 of file ObjectDatabase.h.

◆ mRecognizerListMeshesServiceHandle

ros::ServiceServer object_database::ObjectDatabase::mRecognizerListMeshesServiceHandle
private

the recognizer meshes list service handle

Definition at line 57 of file ObjectDatabase.h.

◆ mRecognizerListServiceHandle

ros::ServiceServer object_database::ObjectDatabase::mRecognizerListServiceHandle
private

the recognizer list service handle

Definition at line 52 of file ObjectDatabase.h.


The documentation for this class was generated from the following files:


asr_object_database
Author(s): Allgeyer Tobias, Aumann Florian, Borella Jocelyn, Braun Kai, Heizmann Heinrich, Heller Florian, Kasper Alexander, Marek Felix, Mehlhaus Jonas, Meißner Pascal, Schleicher Ralf, Stöckle Patrick, Walter Milena
autogenerated on Mon Feb 28 2022 21:49:21