Skip to content
forked from lassoan/pyigtl

Python implementation of OpenIGTLink

License

Notifications You must be signed in to change notification settings

keiranbarr/pyigtl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python package Upload Python Package PyPI version

pyigtl

Python implementation of OpenIGTLink, a lightweight real-time data transfer protocol developed for image-guided therapy applications (surgical navigation, image-guided surgery, ultrasound-guided interventions, etc.).

Tested with 3D Slicer, SlicerIGT and PLUS Toolkit.

Supports latest OpenIGTLink protocol (version 3) and message types: IMAGE, TRANSFORM, STRING, POINT.

Installation

Using pip:

pip install pyigtl

Example

Wait until a message is received from a device named ToolToReference and print the message content:

import pyigtl
client = pyigtl.OpenIGTLinkClient("127.0.0.1", 18944)
message = client.wait_for_message("ToolToReference", timeout=5)
print(message)

About

Python implementation of OpenIGTLink

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%