[IGSTK-Developers] Tracking with Polaris Vicra is not working :-(
Zein Salah
zeinsalah at gmail.com
Sat Jan 8 05:02:46 EST 2011
Hello Patrick,
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!
Anyway, much thanks and appreciation for you contribution and support.
Best,
zein
On Fri, Jan 7, 2011 at 8:29 PM, Patrick Cheng <cheng at isis.georgetown.edu>wrote:
> Just a brief look at the code, did you call
> tracker->RequestStartTracking() before requesting for transform?
>
>
>
> On 1/7/2011 2:18 PM, Zein Salah wrote:
>
>> there you go..
>> thanks in advance,
>> Zein
>>
>> On Fri, Jan 7, 2011 at 8:01 PM, Patrick Cheng <cheng at isis.georgetown.edu
>> <mailto:cheng at isis.georgetown.edu>> wrote:
>>
>> Can you send me your code spinet where you initialize your tracker
>> and where you request for the transform? Also it will be helpful if
>> you could log the SerialCommunication class and send me the log file.
>>
>> Patrick
>>
>>
>> On 1/7/2011 1:57 PM, Zein Salah wrote:
>>
>> Actually yes. I checked this. I even tried to rename an SROM
>> file and
>> see what the program does. The system does not complain or
>> generate an
>> error message. But in the log file, it was written that an
>> invalid SROM
>> file is provided.
>>
>>
>> On Fri, Jan 7, 2011 at 7:12 PM, Patrick Cheng
>> <cheng at isis.georgetown.edu <mailto:cheng at isis.georgetown.edu>
>> <mailto:cheng at isis.georgetown.edu
>> <mailto:cheng at isis.georgetown.edu>>> wrote:
>>
>> Hi Zein,
>>
>> Did you supply the correct SROM file (use full path) that
>> matches
>> your wireless tool and position the tool in the working
>> volume of
>> Plaris Vicra while running the testing program?
>>
>> Patrick
>>
>>
>> On 1/7/2011 12:11 PM, Zein Salah wrote:
>>
>> Hello everybody,
>> I am sorry if I am annoying with my emails, but I spent the
>> whole day
>> searching for a possible bug!
>> My program no longer wants to dealt with the NDI Vicra
>> camera :-(.
>> When I require the connection to the camera, it beeps as if
>> everything
>> were ok, but tracking does not work. In other words, I
>> always get
>> position (0,0,0) for all tools. I debugged the code and
>> found
>> that IsValidNow()
>> (see below) fails. Any idea what could be going wrong?!
>> I attached
>> the log file. Maybe you can deduce something from it.
>> Thanks,
>> Zein
>> coordSystemAObserver_0->Clear();
>> trackerTool_0->RequestGetTransformToParent();
>> if (coordSystemAObserver_0->GotTransform()) {
>> transform = coordSystemAObserver_0->GetTransform();
>> if ( transform.IsValidNow() ) { // This test fails
>> position = transform.GetTranslation();
>> ...
>> ...
>> }
>> }
>>
>>
>> On Fri, Jan 7, 2011 at 12:04 PM, Zein Salah
>> <zeinsalah at gmail.com <mailto:zeinsalah at gmail.com>
>> <mailto:zeinsalah at gmail.com <mailto:zeinsalah at gmail.com>>
>> <mailto:zeinsalah at gmail.com <mailto:zeinsalah at gmail.com>
>> <mailto:zeinsalah at gmail.com <mailto:zeinsalah at gmail.com>>>> wrote:
>>
>> Hello,
>> I managed to connect to the NDI Vicra camera, by
>> editing a
>> piece of
>> code from
>> PolarisTrackerTest, and could read tracking data.
>> Now, I have a
>> problem which
>> I cannot define. When I require the connection to
>> the camera, it
>> beeps as if
>> everything were ok, but tracking does not work. In
>> essence,
>> the test
>> "if (coordSystemAObserver_1->GotTransform())" fails.
>> How can I test if the connection has been
>> established and the
>> tracker is working?
>> Much thanks,
>> Zein
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> IGSTK-Developers mailing list
>> IGSTK-Developers at public.kitware.com
>> <mailto:IGSTK-Developers at public.kitware.com>
>> <mailto:IGSTK-Developers at public.kitware.com
>> <mailto:IGSTK-Developers at public.kitware.com>>
>>
>>
>> http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-developers
>>
>> _______________________________________________
>> IGSTK-Developers mailing list
>> IGSTK-Developers at public.kitware.com
>> <mailto:IGSTK-Developers at public.kitware.com>
>> <mailto:IGSTK-Developers at public.kitware.com
>> <mailto:IGSTK-Developers at public.kitware.com>>
>>
>>
>> http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-developers
>>
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/igstk-developers/attachments/20110108/b8507504/attachment.html>
More information about the IGSTK-Developers
mailing list