|
ObjectLocalizerProcessorJob encapsules the object localization job. More...
#include <VisionX/components/object_perception/ObjectLocalizerProcessorJob.h>
Public Member Functions | |
void | exit () |
Requests exit to the job. More... | |
ObjectLocalizerProcessorJob (ObjectLocalizerProcessor *processor) | |
Init the job by providing the ObjectLocalizerProcessor that implements the required functionality. More... | |
void | process () |
Processing method. More... | |
void | reset () |
void | start (std::vector< std::string > objectClassNames) |
Start a localization job for the given objectClassName. More... | |
memoryx::ObjectLocalizationResultList | waitForResult () |
Wait for the localization result. More... | |
ObjectLocalizerProcessorJob encapsules the object localization job.
This helper class is used internally by ObjectLocalizerProcessor in order to assure execution of all relevant interface methods in a single thread (as e.g. required for methods using OpenGL as SegmentableObjectRecognition)
Definition at line 43 of file ObjectLocalizerProcessorJob.h.
ObjectLocalizerProcessorJob | ( | ObjectLocalizerProcessor * | processor | ) |
Init the job by providing the ObjectLocalizerProcessor that implements the required functionality.
processor | pointer to the processor. Called by ObjectLocalizerProcessor. |
Definition at line 34 of file ObjectLocalizerProcessorJob.cpp.
void exit | ( | ) |
Requests exit to the job.
Assures the process method retruns as soon as possible. Non-blocking and called by ObjectLocalizerProcessor.
Definition at line 67 of file ObjectLocalizerProcessorJob.cpp.
void process | ( | ) |
Processing method.
Schedules initialization of the recognizer, object database and localization requests in a single thread. Called by ObjectLocalizerProcessor.
Definition at line 72 of file ObjectLocalizerProcessorJob.cpp.
void reset | ( | ) |
Definition at line 51 of file ObjectLocalizerProcessorJob.cpp.
void start | ( | std::vector< std::string > | objectClassNames | ) |
Start a localization job for the given objectClassName.
objectClassName | name of the object class to localize |
Definition at line 42 of file ObjectLocalizerProcessorJob.cpp.
memoryx::ObjectLocalizationResultList waitForResult | ( | ) |
Wait for the localization result.
Will return an empty result on exit
Definition at line 56 of file ObjectLocalizerProcessorJob.cpp.