SciKit-Surgery / scikit-surgerynditracker

Easy communication with NDI trackers (Polaris Vicra, Spectra, Vega, and Aurora)
https://github.com/SciKit-Surgery
Other
42 stars 12 forks source link

Resolve "Return types for get_frame" - [merged] #20

Closed thompson318 closed 4 years ago

thompson318 commented 4 years ago

In GitLab by @StephenThompson on Mar 19, 2019, 11:53

Merges 8-frametype -> master

@MattClarkson @ThomasDowrick @GuofangXiao

Can one or more of you have a look at the following. I've made two significant changes to scikit-suregrynditracker 1: I've removed configure, which is now done when you initialise the NDITracker. 2: get frame now returns separate lists for each type of data: tool ID, timestamp, framenumber, tracking data, tracking quality = NDITracker.get_frame()

Does this make it easier to use?

thompson318 commented 4 years ago

In GitLab by @StephenThompson on Mar 19, 2019, 12:00

Forgot to mention, the tracking data is also returned as a 4x4 NumPy array by default. You can change it to quaternions via the configuration.

thompson318 commented 4 years ago

In GitLab by @MattClarkson on Mar 20, 2019, 10:43

Code Review Comments:

General questions:

Otherwise:

thompson318 commented 4 years ago

In GitLab by @StephenThompson on Mar 20, 2019, 12:28

added 4 commits

Compare with previous version

thompson318 commented 4 years ago

In GitLab by @StephenThompson on Mar 20, 2019, 12:35

Thanks for the comments, have fixed formatting. Except I can't work out what's wrong with NDITracker, as far I can understand it is is PEP8.

I don't think I can do much with coverage, unless we have trackers connected, or implemented fake trackers, which might be fun.

I've parked scikit-surgerytracker, I can't see the point of having a base class in python. But would suggest all data sources follow the same basic interface to make life easier. I have updated scikit-surgeryaruco tracker to have the same interface.

thompson318 commented 4 years ago

In GitLab by @StephenThompson on Mar 20, 2019, 15:50

mentioned in commit 85bd97f1f197a7cc52553c7fd6dc7aabe1dcd0d6

thompson318 commented 4 years ago

In GitLab by @StephenThompson on Mar 20, 2019, 15:50

merged