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.
 
 ObjectLocalizerProcessorJob (ObjectLocalizerProcessor *processor)
 Init the job by providing the ObjectLocalizerProcessor that implements the required functionality.
 
void process ()
 Processing method.
 
void reset ()
 
void start (std::vector< std::string > objectClassNames)
 Start a localization job for the given objectClassName.
 
memoryx::ObjectLocalizationResultList waitForResult ()
 Wait for the localization result.
 

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)

Constructor & Destructor Documentation

◆ ObjectLocalizerProcessorJob()

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

Parameters
processorpointer to the processor. Called by ObjectLocalizerProcessor.

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.

◆ process()

void process ( )

Processing method.

Schedules initialization of the recognizer, object database and localization requests in a single thread. Called by ObjectLocalizerProcessor.

◆ reset()

void reset ( )

◆ start()

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

Start a localization job for the given objectClassName.

Parameters
objectClassNamename of the object class to localize

◆ waitForResult()

memoryx::ObjectLocalizationResultList waitForResult ( )

Wait for the localization result.

Will return an empty result on exit

Returns
Localization result list

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