I am using openigtif extenstion to get streaming data from my tracker. Is there a way to get a reference to the transforms created by openigtif extenstion before they are created?
I want a object to be set to a default position (identity) until the slicerIGTIF updates this transform.
I have tried creating a transform node with the same name as the transform coming in, but I just get duplicates instead.
I am thinking of going down the path of having an observer that watches the scene to see if a node with the correct name was added. Is this the best method?
OpenIGTlinkIF module looks up nodes by name (that matches the device name in OpenIGTLink message).
We usually create the node by the appropriate name before we establish the OpenIGTLink connection. This way OpenIGTLinkIF module finds that node and updates it in real-time.
If you prefer OpenIGTLinkIF to create the nodes for you then looking them up by name is correct, too. The only slight additional complexity is that you need to add the scene observers to detect when the nodes are added.
I assumed that the openigtlinkif module looked nodes up by name. And I created a node with the same name prior to creating the openigt link. However, I get another node with the same name when the connection is established rather than the node that I previously created being used.
Here is the screenshot. The first one in the list is the one I created. The second is the one that was added by openigtlinkif after establishing the connection.