34 #include <Image/ImageProcessor.h>
43 m_bIsProcessing =
false;
45 m_bReadyForLocalising =
false;
58 delete [] m_pSensorConfig;
59 delete [] m_pEstimatedConfig;
72 return m_bIsProcessing;
84 printf(
"HandLocalisationThread::GetResult\n");
90 pEstimatedConfig[i] = m_pEstimatedConfig[i];
92 dConfidenceRating = m_dConfidenceRating;
101 printf(
"HandLocalisationThread::Localise\n");
103 if (!m_bIsProcessing)
105 ImageProcessor::CopyImage(pNewCamImageLeft, m_pNewCamImageLeft);
106 ImageProcessor::CopyImage(pNewCamImageRight, m_pNewCamImageRight);
109 m_pSensorConfig[i] = pSensorConfig[i];
111 m_bIsProcessing =
true;
112 m_bReadyForLocalising =
true;
124 if (m_bReadyForLocalising)
126 printf(
"HandLocalisationThread: Starting localisation\n");
129 m_bIsProcessing =
false;
130 m_bReadyForLocalising =
false;
131 printf(
"HandLocThread: Confidence %f\n", m_dConfidenceRating);
132 printf(
"HandLocalisationThread: Localisation finished\n");
136 Threading::SleepThread(10);