OpenIGTLink/Library2

From NAMIC Wiki
Revision as of 18:13, 16 August 2010 by Tokuda (talk | contribs)
Jump to: navigation, search
Home < OpenIGTLink < Library2

About OpenIGTLink Library version 2

The OpenIGTLink Library version 2 is being developed to support OpenIGTLink protocol version 2. To try the library version 2, please follow the instruction in the instruction to try version 2 protocol

Testing

The library version 2 will provide more comprehensive testing than version 1. Specifically, it will provide server-client communication tests, which are not available in version 1.

Strategy

Xenios Papademitris suggested:

  1. Setting a "server" program that gets initialized at the start of the ctest process that simply accepts messages and dumps them to a file (with predefined filenames). Then you can compare what you sent with what it received.
  2. Having a multithreaded test where the server is on one thread and the client on another ....

According to Andinet Enquobahrie,

  • OpenIGTLink relay in IGSTK uses threading for its test:
http://public.kitware.com/cgi-bin/viewcvs.cgi/Testing/igstkTrackerToolObserverToOpenIGTLinkRelayTest.cxx?revision=1.2&root=IGSTK&view=markup

static ITK_THREAD_RETURN_TYPE ReceiverThreadFunction(void* pInfoStruct);
static ITK_THREAD_RETURN_TYPE ObserverThreadFunction(void* pInfoStruct);
 
  • Tube TK uses spawnv

http://gitorious.org/tubetk/tubetk/blobs/master/Applications/CLI/ReceivePositionMessageUsingOpenIGTLink/Testing/SendAndReceivePositionMessageUsingOpenIGTLinkTest.cxx


Test programs