ObjectLocalizerProcessorJob Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ObjectLocalizerProcessorJob()

Init the job by providing the ObjectLocalizerProcessor that implements the required functionality.

Parameters
processorpointer to the processor. Called by ObjectLocalizerProcessor.

Definition at line 34 of file ObjectLocalizerProcessorJob.cpp.

Member Function Documentation

◆ exit()

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.

+ Here is the caller graph for this function:

◆ process()

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.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ reset()

void reset ( )

Definition at line 51 of file ObjectLocalizerProcessorJob.cpp.

+ Here is the caller graph for this function:

◆ start()

void start ( std::vector< std::string >  objectClassNames)

Start a localization job for the given objectClassName.

Parameters
objectClassNamename of the object class to localize

Definition at line 42 of file ObjectLocalizerProcessorJob.cpp.

+ Here is the caller graph for this function:

◆ waitForResult()

memoryx::ObjectLocalizationResultList waitForResult ( )

Wait for the localization result.

Will return an empty result on exit

Returns
Localization result list

Definition at line 56 of file ObjectLocalizerProcessorJob.cpp.

+ Here is the caller graph for this function:

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