Reading a Linear Transform using scripting while openigtl server keeps sending transform messages

Hi,
I have a linear transform that I receive from a OpenIGTL Server. I am using the openigtlinkIF module to receive this transform in 3d slicer. I want to read the transform message and place a fiducial by extracting the RAS coordinates from the linear message. Can someone please help me with the script to perform the reading of the transform and placement of the fiducial while I’m receiving the transforms in realt time ?

This feature is already implemented in several modules. For example:

  • there is a C++ module in SlicerIGT extension - Collect Points - that does exactly what you describe: record transforms into fiducials
  • if you want to reconstruct catheter paths from tracking sensors then you can use PathReconstruction extension
  • if you want to record and analyze hand and tool motion, you can use Perk Tutor extension
  • if you just need a simple example of how to collect points and display the results in real-time then you can have a look at TrackingErrorMapping module in TrackingErrorInspector extension
1 Like

Thank you, Andras… to that… if I want to extend the functionality to view these markup fiducials in slice views in real time, how should I go about it ?

As you can see from these many examples, everything is very flexible, customizable, extensible. What functionality would you like to add?