[IGSTK-Users] Using Virtual ROM files with Aurora
Patrick Cheng
cheng at isis.georgetown.edu
Thu May 21 14:03:02 EDT 2009
Hi Jon Eubank,
Can you connect a logger to the serial communication class and turn on
the capture file, run your program again and send us the log and
captured files?
Some sample code for doing these:
typedef igstk::Object::LoggerType LoggerType;
typedef itk::StdStreamLogOutput LogOutputType;
typedef igstk::TransformObserver ObserverType;
std::string filename("TestLoggerOutput.txt");
std::ofstream loggerFile;
loggerFile.open( filename.c_str() );
LoggerType::Pointer logger = LoggerType::New();
LogOutputType::Pointer logOutput = LogOutputType::New();
logOutput->SetStream( loggerFile );
logger->AddLogOutput( logOutput );
logger->SetPriorityLevel( itk::Logger::DEBUG);
serialComm->SetLogger( logger );
serialComm->SetCaptureFileName( "RecordedStream.txt" );
serialComm->SetCapture( true );
Patrick
Jon Eubank wrote:
> Hi,
>
> I am trying to track a tool using the Aurora system without hardcoding a
> .rom file onto the tool's SROM chip. This seems to be a standard and
> well defined process that is handled when the tracker initializes. I
> have provided the tracker object the filename for the .rom I want to
> use, and this file is read from when LoadVirtualSROMs() is called during
> initialization. However, once the tracker is initialized and running
> the port/channel that the tool is attached to has not been enabled and
> the tool will not track. Is there a trick to doing this that I am missing?
>
> If anyone has experience tracking tools with the Aurora system using
> virtual ROMs not hardcoded onto the tool's SROM chip, any advice you can
> spare would be greatly appreciated. If you have any ideas I can provide
> more information about my the process I am using to help work out the
> solution.
>
> Thanks,
> Jon Eubank
> Working with Mike Daly and GTxEyes team at Princess Margaret Hospital in
> Toronto
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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