[IGSTK-Users] Problem in running IGSTKSandbox PolarisTracker example

Jake McIvor jdmcivor at interchange.ubc.ca
Wed May 25 14:27:38 EDT 2011


Hey Arefin,

I think the problem you are having is that the program is looking for
several command line arguments.  Even if you hardcode the values in,
there is still error checking at the beginning of the code that will
terminate it early. You need to tell the PolarisTrackerExample program
three things: Logger_Ouput_filename, Wireless_SROM_filename and
Port_Number.

The Wireless_SROM_filename should be the location of the tool
definition file for your tool (eg. C:\polaris\8700248.rom)

The Port_Number is the serial port that your Polaris is connected to,
minus 1 (e.g. "0" for COM1)
(I think this was reported as a bug - it may or may not have been changed)

Here are three ways to include command line arguments:

1) Build the file normally, but open it from a command window instead
of double-clicking.
You can open a command window but going START>Run and typing 'cmd'.
Navigate to the directory where the program is located (the command
'cd' can be used to change directories).  Run the file by typing
"PolarisTrackerExample logger_output.txt wireless_srom.rom 1".

3) Create a shortcut to the program file.  Open the shortcut
properties and add the three arguments to the end of the 'Target'
field.

2) In Visual Studio, you can define command arguments in the Project
Property Page
Open the Property Page of the PolarisTrackerExample project.  It may
differ in your version, but under the 'Debugging' tab, there is a
entry for 'Command Arguments'.  You want to enter the two filenames
and port number as above.


Hope that helps.

Jake

--
Jake McIvor
MASc Candidate, Biomedical Engineering
University o
On Wed, May 25, 2011 at 9:19 AM, Arefin Shamsil <marefin at uwo.ca> wrote:
>  Hi there,
>
> I have been trying to run the IGSTKSandbox PolarisTracker example for quite
> a while now without any success. Using this example, I need to connect to
> the Polaris tracker and obtain and record the marker position coordinates
> and orientation angles over a period of time.
>
> All my devices are connected and configured with proper driver. But when I
> run the PolarisTracker example, it builds successfully and runs and then
> terminates. I do not see the tracker data stream.
>
> Does anybody know what is the reason for it? Should I hard-code the SROM
> directory and the SROM filename in the source code? In fact I did that but
> still I get nothing. Please help me diagnose this issue.
>
> Thanks in advance
>
> Arefin
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users
>



More information about the IGSTK-Users mailing list