28 void CHMTSLAM::thread_3D_viewer( )
43 while ( !
obj->m_terminateThreads )
50 time_t timCreat,timExit;
double timCPU=0;
52 obj->logFmt(mrpt::utils::LVL_DEBUG,
"[thread_3D_viewer] Thread finished. CPU time used:%.06f secs \n",timCPU);
53 obj->m_terminationFlag_3D_viewer =
true;
56 catch(std::exception &e)
58 obj->m_terminationFlag_3D_viewer =
true;
62 obj->logFmt(mrpt::utils::LVL_ERROR,
"%s", e.what() );
65 obj->m_terminateThreads =
true;
70 obj->m_terminationFlag_3D_viewer =
true;
72 obj->logFmt(mrpt::utils::LVL_ERROR,
73 "\n---------------------- EXCEPTION CAUGHT! ---------------------\n" 74 " In CHierarchicalMappingFramework::thread_3D_viewer. Unexpected runtime error!!\n");
77 obj->m_terminateThreads =
true;
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
unsigned long BASE_IMPEXP getCurrentThreadId() MRPT_NO_THROWS
Returns the ID of the current thread.
Classes related to the implementation of Hybrid Metric Topological (HMT) SLAM.
GLsizei GLsizei GLuint * obj
An implementation of Hybrid Metric Topological SLAM (HMT-SLAM).
void BASE_IMPEXP getCurrentThreadTimes(time_t &creationTime, time_t &exitTime, double &cpuTime)
Returns the creation and exit times of the current thread and its CPU time consumed.
void BASE_IMPEXP sleep(int time_ms) MRPT_NO_THROWS
An OS-independent method for sending the current thread to "sleep" for a given period of time...
This class implements a high-performance stopwatch.