<div>Hello Patrick,</div>
<div> </div>
<div>Sorry for the klate response. I was yesterday at home as I got your last message. Now I tested the code once again. You are right. the call was missing. The program was actually working the day before yesterday, but later I rearranged many parts of the code to make it more neat. It seems that my vacuum cleaner swallowed the statement. The funny thing is: I really spent hours looking at the code, testing almost every line and did not recognize the mistake!</div>
<div> </div>
<div>Anyway, much thanks and appreciation for you contribution and support.</div>
<div> </div>
<div>Best,</div>
<div>zein <br><br></div>
<div class="gmail_quote">On Fri, Jan 7, 2011 at 8:29 PM, Patrick Cheng <span dir="ltr"><<a href="mailto:cheng@isis.georgetown.edu">cheng@isis.georgetown.edu</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Just a brief look at the code, did you call<br>tracker->RequestStartTracking() before requesting for transform?
<div class="im"><br><br><br>On 1/7/2011 2:18 PM, Zein Salah wrote:<br></div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">there you go..<br>thanks in advance,<br>Zein<br><br>On Fri, Jan 7, 2011 at 8:01 PM, Patrick Cheng <<a href="mailto:cheng@isis.georgetown.edu" target="_blank">cheng@isis.georgetown.edu</a><br></div>
<div>
<div></div>
<div class="h5"><mailto:<a href="mailto:cheng@isis.georgetown.edu" target="_blank">cheng@isis.georgetown.edu</a>>> wrote:<br><br> Can you send me your code spinet where you initialize your tracker<br> and where you request for the transform? Also it will be helpful if<br>
you could log the SerialCommunication class and send me the log file.<br><br> Patrick<br><br><br> On 1/7/2011 1:57 PM, Zein Salah wrote:<br><br> Actually yes. I checked this. I even tried to rename an SROM<br>
file and<br> see what the program does. The system does not complain or<br> generate an<br> error message. But in the log file, it was written that an<br> invalid SROM<br> file is provided.<br>
<br><br> On Fri, Jan 7, 2011 at 7:12 PM, Patrick Cheng<br> <<a href="mailto:cheng@isis.georgetown.edu" target="_blank">cheng@isis.georgetown.edu</a> <mailto:<a href="mailto:cheng@isis.georgetown.edu" target="_blank">cheng@isis.georgetown.edu</a>><br>
<mailto:<a href="mailto:cheng@isis.georgetown.edu" target="_blank">cheng@isis.georgetown.edu</a><br> <mailto:<a href="mailto:cheng@isis.georgetown.edu" target="_blank">cheng@isis.georgetown.edu</a>>>> wrote:<br>
<br> Hi Zein,<br><br> Did you supply the correct SROM file (use full path) that<br> matches<br> your wireless tool and position the tool in the working<br> volume of<br> Plaris Vicra while running the testing program?<br>
<br> Patrick<br><br><br> On 1/7/2011 12:11 PM, Zein Salah wrote:<br><br> Hello everybody,<br> I am sorry if I am annoying with my emails, but I spent the<br> whole day<br>
searching for a possible bug!<br> My program no longer wants to dealt with the NDI Vicra<br> camera :-(.<br> When I require the connection to the camera, it beeps as if<br>
everything<br> were ok, but tracking does not work. In other words, I<br> always get<br> position (0,0,0) for all tools. I debugged the code and<br> found<br> that IsValidNow()<br>
(see below) fails. Any idea what could be going wrong?!<br> I attached<br> the log file. Maybe you can deduce something from it.<br> Thanks,<br> Zein<br> coordSystemAObserver_0->Clear();<br>
trackerTool_0->RequestGetTransformToParent();<br> if (coordSystemAObserver_0->GotTransform()) {<br> transform = coordSystemAObserver_0->GetTransform();<br> if ( transform.IsValidNow() ) { // This test fails<br>
position = transform.GetTranslation();<br> ...<br> ...<br> }<br> }<br><br><br> On Fri, Jan 7, 2011 at 12:04 PM, Zein Salah<br>
<<a href="mailto:zeinsalah@gmail.com" target="_blank">zeinsalah@gmail.com</a> <mailto:<a href="mailto:zeinsalah@gmail.com" target="_blank">zeinsalah@gmail.com</a>><br> <mailto:<a href="mailto:zeinsalah@gmail.com" target="_blank">zeinsalah@gmail.com</a> <mailto:<a href="mailto:zeinsalah@gmail.com" target="_blank">zeinsalah@gmail.com</a>>><br>
<mailto:<a href="mailto:zeinsalah@gmail.com" target="_blank">zeinsalah@gmail.com</a> <mailto:<a href="mailto:zeinsalah@gmail.com" target="_blank">zeinsalah@gmail.com</a>><br> <mailto:<a href="mailto:zeinsalah@gmail.com" target="_blank">zeinsalah@gmail.com</a> <mailto:<a href="mailto:zeinsalah@gmail.com" target="_blank">zeinsalah@gmail.com</a>>>>> wrote:<br>
<br> Hello,<br> I managed to connect to the NDI Vicra camera, by<br> editing a<br> piece of<br> code from<br> PolarisTrackerTest, and could read tracking data.<br>
Now, I have a<br> problem which<br> I cannot define. When I require the connection to<br> the camera, it<br> beeps as if<br> everything were ok, but tracking does not work. In<br>
essence,<br> the test<br> "if (coordSystemAObserver_1->GotTransform())" fails.<br> How can I test if the connection has been<br> established and the<br> tracker is working?<br>
Much thanks,<br> Zein<br><br><br><br><br><br><br> _______________________________________________<br> IGSTK-Developers mailing list<br> <a href="mailto:IGSTK-Developers@public.kitware.com" target="_blank">IGSTK-Developers@public.kitware.com</a><br>
<mailto:<a href="mailto:IGSTK-Developers@public.kitware.com" target="_blank">IGSTK-Developers@public.kitware.com</a>><br> <mailto:<a href="mailto:IGSTK-Developers@public.kitware.com" target="_blank">IGSTK-Developers@public.kitware.com</a><br>
<mailto:<a href="mailto:IGSTK-Developers@public.kitware.com" target="_blank">IGSTK-Developers@public.kitware.com</a>>><br><br> <a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-developers" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-developers</a><br>
<br> _______________________________________________<br> IGSTK-Developers mailing list<br> <a href="mailto:IGSTK-Developers@public.kitware.com" target="_blank">IGSTK-Developers@public.kitware.com</a><br>
<mailto:<a href="mailto:IGSTK-Developers@public.kitware.com" target="_blank">IGSTK-Developers@public.kitware.com</a>><br> <mailto:<a href="mailto:IGSTK-Developers@public.kitware.com" target="_blank">IGSTK-Developers@public.kitware.com</a><br>
<mailto:<a href="mailto:IGSTK-Developers@public.kitware.com" target="_blank">IGSTK-Developers@public.kitware.com</a>>><br><br> <a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-developers" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-developers</a><br>
<br><br><br></div></div></blockquote></blockquote></div><br>