OpenIGTLink/TryVersion2

From NAMIC Wiki
Jump to: navigation, search
Home < OpenIGTLink < TryVersion2

How to Try Protocol Version 2 using OpenIGTLink Library

The OpenIGTLink Protocol Version 2 is still in a draft phase, but you can try some of newly introduced features using The OpenIGTLink Library. Here's some tips.

Build instruction

The OpenIGTLink library is available at NAMICSandBox (http://svn.na-mic.org/NAMICSandBox/trunk/OpenIGTLink). You can download using Subversion client. If you are using a terminal on Linux or Mac OS X, do:

svn co http://svn.na-mic.org/NAMICSandBox/trunk/OpenIGTLink OpenIGTLink

In the default setting, the message types defined in version 2 is deactivated. To use version 2 messages, OpenIGTLink_PROTOCOL_VERSION_2 option should be turned on when you configure the source code. If you are using cmake tool in a terminal, do:

mkdir OpenIGTLink-build
cd OpenIGTLink-build
cmake -DBUILD_EXAMPLE:BOOL=ON -DOpenIGTLink_PROTOCOL_VERSION_2:BOOL=ON ../OpenIGTLink