<div dir="ltr">Hi all.<div><br></div><div>Im trying to ise the igstk::PivotCalibration class. Im using the igstkPivotCalibratioFLTKWidget class as a guideline.</div><div><br></div><div>The problem I have is that I do not receive some calibration events. I get the following events:</div>
<div><br></div><div>igstk::PivotCalibration::InitializationFailureEvent()</div><div>igstk::PivotCalibration::InitializationSuccessEvent()<br></div><div>igstk::PivotCalibration::DataAcquisitionStartEvent()<br></div><div><br>
</div><div><br></div><div>After the InitializationSuccessEvent I use</div><div><br></div><div>                       <font size="1">pivotCalibration->RequestComputeCalibration();</font></div><div><br></div><div>and receive a  DataAcquisitionStartEvent, but after that I do not get any event. I do not receive a DataAcquisitionEvent, DataAcquisitionEndEvent, CalibrationSuccessEvent or CalibrationFailureEvent.</div>
<div><br></div><div style>This is my callback function for events</div><div style><br></div><div style><div><font size="1">void NeedleCalibration::OnCalibrationEvent( itk::Object * caller, const itk::EventObject & event )</font></div>
<div><font size="1">{</font></div><div><font size="1"><br></font></div><div><font size="1"><span class="" style="white-space:pre">    </span>std::cout<<"OnCalibrationEvent"<<std::endl;</font></div><div>
<font size="1"><br></font></div><div><font size="1"><span class="" style="white-space:pre">   </span>if(dynamic_cast< const </font></div><div><font size="1"><span class="" style="white-space:pre">             </span>    igstk::PivotCalibration::DataAcquisitionStartEvent * > (&event) )</font></div>
<div><font size="1"><span class="" style="white-space:pre">     </span>{</font></div><div><font size="1"><span class="" style="white-space:pre">              </span>std::cout<<"Data Acquisition Started"<<std::endl;</font></div>
<div><font size="1"><span class="" style="white-space:pre">     </span>}</font></div><div><font size="1"><span class="" style="white-space:pre">      </span>else if(dynamic_cast< const </font></div><div><font size="1"><span class="" style="white-space:pre">                </span>    igstk::PivotCalibration::DataAcquisitionEvent * > (&event) )</font></div>
<div><font size="1">       {</font></div><div style><font size="1">                std::cout<<"Data Acquisition"<<std::endl;</font></div><div><font size="1">       }</font></div><div><font size="1"><span class="" style="white-space:pre">       </span>else if( dynamic_cast< </font></div>
<div><font size="1"><span class="" style="white-space:pre">     </span>  const igstk::PivotCalibration::DataAcquisitionEndEvent * > (&event) )</font></div><div><font size="1">       { </font></div><div><font size="1"><span class="" style="white-space:pre">             </span>std::cout<<"Data Acquisition Ended"<<std::endl;</font></div>
<div><font size="1">       }</font></div><div><font size="1"><span style="white-space:pre">       </span>else if(dynamic_cast< </font></div><div><font size="1"><span class="" style="white-space:pre">                            </span>const igstk::PivotCalibration::CalibrationFailureEvent * > (&event) )</font></div>
<div><font size="1">       {</font></div><div><font size="1"><span class="" style="white-space:pre">          </span>std::cout<<"Calibration failed"<<std::endl;</font></div><div><font size="1"><span style="white-space:pre">       </span>}</font></div>
<div><font size="1"><span class="" style="white-space:pre">     </span>else if( dynamic_cast< </font></div><div><font size="1"><span class="" style="white-space:pre">     </span>  const igstk::PivotCalibration::CalibrationSuccessEvent * > (&event) )</font></div>
<div><font size="1">      {</font></div><div><font size="1"><span class="" style="white-space:pre">           </span>std::cout<<"Calibration Succed"<<std::endl;</font></div><div><font size="1">   </font></div>
<div><font size="1">      }</font></div><div><font size="1">}</font></div></div><div><div><br></div><div style>And this are my observers</div><div style><br></div><div style><font size="1">typedef itk::MemberCommand<NeedleCalibration>   CalibrationObserverType;</font><br>
</div><div style><div><font size="1">this->m_CalibrationObserver = CalibrationObserverType::New();</font></div><div><font size="1">this->m_CalibrationObserver->SetCallbackFunction(this, &NeedleCalibration::OnCalibrationEvent );</font></div>
<div><font size="1">pivotCalibration->AddObserver(igstk::PivotCalibration::DataAcquisitionStartEvent(), this->m_CalibrationObserver );</font></div><div><font size="1">pivotCalibration->AddObserver(igstk::PivotCalibration::DataAcquisitionEvent(), this->m_CalibrationObserver );</font></div>
<div><font size="1">pivotCalibration->AddObserver(igstk::PivotCalibration::DataAcquisitionEndEvent(),this->m_CalibrationObserver );</font></div><div><font size="1">pivotCalibration->AddObserver(igstk::PivotCalibration::CalibrationSuccessEvent(),this->m_CalibrationObserver );</font></div>
<div><font size="1">pivotCalibration->AddObserver(igstk::PivotCalibration::CalibrationFailureEvent(),this->m_CalibrationObserver );</font></div></div><div><br></div><div style>My tracker is in tracking state</div><div style>
<br></div><div style>Can anyone help me with this problem</div><div style>Thanks for your time</div>-- <br>Fabián Torres Robles<br>Maestria en Ciencias en Ingeniería Electrónica<br>Ingeniería en Sistemas Electrónicos<br>tel. 58081280, 0445534661338<br>
e-mail <a href="mailto:fabian.trobles@gmail.com" target="_blank">fabian.trobles@gmail.com</a>, <a href="mailto:dae.wong@gmail.com" target="_blank">dae.wong@gmail.com</a>  <div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%">
</div><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div>
</div></div>