Simox
2.3.74.0
|
This class can be used to start a path processing algorithm in a thread. More...
Public Member Functions | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | PathProcessingThread (PathProcessorPtr processor) |
constructor More... | |
virtual | ~PathProcessingThread () |
destructor More... | |
virtual void | start (int optimizeSteps) |
virtual void | interrupt (bool waitUntilStopped=false) |
void | stop () |
bool | isRunning () |
PathProcessorPtr | getPathProcessor () |
CSpacePathPtr | getProcessedPath () |
Returns the optimized path (when optimizer is finished) More... | |
Protected Member Functions | |
void | workingMethod () |
Protected Attributes | |
bool | threadStarted |
bool | processingFinished |
PathProcessorPtr | pathProcessor |
std::thread | processingThread |
std::mutex | mutex |
CSpacePathPtr | resultPath |
int | optimizeSteps |
This class can be used to start a path processing algorithm in a thread.
Saba::PathProcessingThread::PathProcessingThread | ( | PathProcessorPtr | processor | ) |
constructor
Constructor The thread is not started until you call start()
processor | An initialized path processor to be started. |
|
virtual |
destructor
PathProcessorPtr Saba::PathProcessingThread::getPathProcessor | ( | ) |
Saba::CSpacePathPtr Saba::PathProcessingThread::getProcessedPath | ( | ) |
Returns the optimized path (when optimizer is finished)
|
virtual |
Send an interrupt signal to thread.
waitUntilStopped | If false this method returns immediately. Otherwise we wait until the thread has been successfully interrupted. |
bool Saba::PathProcessingThread::isRunning | ( | ) |
|
virtual |
Start the path processing in an own thread.
void Saba::PathProcessingThread::stop | ( | ) |
Same as interrupt(true)
|
protected |
Here the post processing takes place.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |