jhu-saw / sawNDITracker

cisst/SAW component for NDI trackers with Qt and ROS interfaces

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enable the Upload of Virtual SROMs on Aurora

ScottyChung opened this issue · comments

NDI systems (at least the Aurora) can have a tool definition file uploaded before port initialization. The system will use this uploaded tool definition over the programmed SROM. This is how passive tools work on Polaris systems, but works with active tools as well. The challenging part is knowing which port handles to use.

Our use case for this feature is being able to modify the definition file without having to solder in a new SROM and program it each time.

I have a quick fix for this in place on our setup, but for a more robust solution would look like the following.

  • NDI json config file would allow a virutal-definition argument term
  • The value for this term would need to identify the sensor id by the currently programmed SROM information.
  • A new function after initialization of ports would need to:
    • Iterate through tools with virtual-definition defined
    • match any tool ids with the ones defined
    • upload tool definition file
    • reinitialize the port handle (won't use uploaded definition file otherwise)

This feature might be niche to our use case, but I will submit a pull request if I find time to implement these other steps.

I'll be happy to review/test your PR if you ever get a chance to work on this.