cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions
mtsOpenIGTLink.h File Reference

SAW component for establishing a network connection via OpenIGTLink protocol.The component may be configured as a server by providing a target hostname/IP and a port number (delimited by ":"), or as a client by simply omitting the host. More...

#include <cisstOSAbstraction/osaSocket.h>
#include <cisstOSAbstraction/osaSocketServer.h>
#include <cisstMultiTask/mtsTaskPeriodic.h>
#include <cisstParameterTypes/prmPositionCartesianGet.h>
#include <sawOpenIGTLink/sawOpenIGTLinkExport.h>

Go to the source code of this file.

Classes

class  mtsOpenIGTLink
 

Functions

 CMN_DECLARE_SERVICES_INSTANTIATION (mtsOpenIGTLink)
 

Detailed Description

SAW component for establishing a network connection via OpenIGTLink protocol.

The component may be configured as a server by providing a target hostname/IP and a port number (delimited by ":"), or as a client by simply omitting the host.

mtsOpenIGTLink server("trackerServer", 50.0 * cmn_ms);
server.Configure("18944");
mtsOpenIGTLink client("trackerClient", 50.0 * cmn_ms);
client.Configure("localhost:18944");

igtlutil library is required to compile and run the examples.

SVN repository of the source code: http://svn.na-mic.org/NAMICSandBox/trunk/OpenIGTLink

Build instructions for various platforms: http://www.na-mic.org/Wiki/index.php/OpenIGTLink/Library/Build

Bug:
Server is set up to handle a single client (osaSocketServer has support for multiple clients).
Todo:

Handle multiple connections by storing the returned socket pointer in an array.

Check for cyclic redundancy (CRC).

Handle message types besides TRANSFORM.

Function Documentation

CMN_DECLARE_SERVICES_INSTANTIATION ( mtsOpenIGTLink  )