[IGSTK-Users] SerialCommunicationSimulator
Patrick Cheng
cheng at isis.georgetown.edu
Wed May 23 15:41:47 EDT 2007
Hi Ryan,
There are some pre-recorded stream files in:
\IGSTK\Testing\Data\Input
directory, are those files what you are looking for? If not, I can help
you record some data files here.
Examples of using simulation files can be found in
igstkAuroraTrackerTest.cxx
Patrick
Ryan Smith wrote:
> Hi Patrick-
> Thanks for your response. I was wondering if you might have an example
> log file or know the format that the supported trackers use for the
> data. I am thinking that if I know this I can take the current tracked
> data I have and read it in using the Simulator. Obviously this won't be
> realtime, but it will give me a start for my application without having
> to write all the code for an unsupported tracking system. Thanks in
> advance for any help you can provide-
> -Ryan
>
> On 5/17/07, *Patrick Cheng* <cheng at isis.georgetown.edu
> <mailto:cheng at isis.georgetown.edu>> wrote:
>
> Hi Ryan,
>
> I am not sure if you could 'convert' your existing file to the
> igstk::SerialCommunicationSimulator file format or not, but the way we
> used to do this is using the igstk::SerialCommunication class
>
> /** Set the name of the file into which the data stream is
> recorded. */
> void SetCaptureFileName(const char* filename);
> /** Get the filename into which the data stream is recorded. */
> const char* GetCaptureFileName() const;
>
> /** Set whether to record the data. */
> igstkSetMacro( Capture, bool );
> /** Get whether the data is being recorded. */
> igstkGetMacro( Capture, bool );
>
> Since you are dealing with a not yet supported tracker, this might
> not work.
>
> The code writing the simulation file is in igstk::SerialCommunication
> class, around line 454. It's using a logger to direct the output to
> a file.
>
> Thank you,
>
> Patrick
>
> Ryan L. Smith wrote:
> > I am relatively new to IGSTK and I want to incorporate already
> acquired
> > data from a tracker that is not currently supported. I have
> looked at
> > the documentation for igstk::SerialCommunicationSimulator: and it
> seems
> > relatively straightforward. Can anyone point me toward an
> example file
> > or documentation on the file format that I would need to convert my
> > acquired data to in order for the simulator to read it? In addition,
> > starter code or additional documentation on this undoubtedly common
> > task would be appreciated. Thanks in advance-
> > -Ryan
> > _______________________________________________
> > IGSTK-Users mailing list
> > IGSTK-Users at public.kitware.com
> <mailto:IGSTK-Users at public.kitware.com>
> > http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users
> <http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users>
> >
> >
> >
> _______________________________________________
> IGSTK-Users mailing list
> IGSTK-Users at public.kitware.com <mailto:IGSTK-Users at public.kitware.com>
> http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users
>
>
More information about the IGSTK-Users
mailing list