Hello Alfred, Thanks very much for your reply. I have tried to implement a new function to realize hotplugging in MITK::NDITrackingDevice, but failed due to the tight cooperation between several related classes as you said. I will stop revising NDITrackingDevice and try the PLUS package for this feature.
For monitoring the connection state of sensors, there is indeed a flag provided in MITK, while I acctually expect a flag that can monitor the NDI port sate, i.e., the value of this flag is changed when a tool (sensor) is pluged or unpluged, according to your reply, this flag should not exit in current MITK::NDITrackingDevice, I think it is also the key to realize hotplugging in MITK. I will go on working on this problem, and let you know if it can work with PLUS. Thanks! Jingyi Alfred Franz <a.fr...@dkfz-heidelberg.de> 于2022年1月27日周四 00:05写道: > Dear Jingyi, > > Hotplugging of tools was so far not implemented in MITK. Maybe you can > check if other libraries that support OpenIGTLink implement this feature > (maybe PLUS, https://plustoolkit.github.io/, but I didn't check). You > can connect trackers via OpenIGTLink to MITK if this would help. > > Another possibility would be to add this functionality to the > NDITrackingDevice class. This would require adjusting the update loop in > the TrackToolsAndMarkers() method. However, I am unsure if this is > easily possible since the NDITrackingDevice class is tightly coupled > with the NDIProtocol class. If there is a possibility via OpenIGTLink I > would recommend to do this. > > Regarding the state of sensors, there already is the valid flag of the > tracking tools. Did you already try to check if a tool is valid to check > if the connection is fine? > > Best, > > Alfred > > > Am 24.01.2022 um 14:35 schrieb JY Bian: > > Dear All, > > > > I am trying to implement hotplugging of NDI tracking tools (i.e., NDI > > Aurora sensors can be feasibility plugged or unplugged without > > reconnecting NDI) in my own program based on MITK. > > > > I did not find the corresponding functions in mitk::TrackingDevice. > > > > Does MITK provide such kind of functions in other classes? > > > > If there is no such functions provided in MITK, how can I realize > > monitoring the connection state of tracking sensors in MITK? > > > > Any help is appreciated! > > > > Best, > > Jingyi > > > > > > _______________________________________________ > > mitk-users mailing list > > mitk-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/mitk-users > > -- > Prof. Dr. Alfred Franz > > Computer Assisted Medical Interventions / E130 > > German Cancer Research Center (DKFZ) > Im Neuenheimer Feld 280 > 69120 Heidelberg, Germany > a.fr...@dkfz.de > >
_______________________________________________ mitk-users mailing list mitk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mitk-users