dstl / Stone-Soup

A software project to provide the target tracking community with a framework for the development and testing of tracking algorithms.
https://stonesoup.rtfd.io
MIT License
388 stars 128 forks source link

Progress Trackers Manually: Option A #742

Closed gawebb-dstl closed 7 months ago

gawebb-dstl commented 1 year ago

All current trackers require a detection feeder. It can be useful to progress a tracker manually without a detection feeder (see Multi-Sensor Fusion: Covariance Intersection Using Tracks as Measurements example).

All current trackers and start their __next__ function with:

time, detections = next(self.detector_iter)
# Some tracking logic

I've abstracted this line to the new TrackerWithDetector class and added an update_tracker function which takes the time and detections from the detection feeder as an input. With this being a separate function, you can access it directly and bypass the detection feeder which may be easier in instances

codecov[bot] commented 1 year ago

Codecov Report

Base: 94.81% // Head: 94.81% // Decreases project coverage by -0.00% :warning:

Coverage data is based on head (17c20dc) compared to base (f27eaeb). Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #742 +/- ## ========================================== - Coverage 94.81% 94.81% -0.01% ========================================== Files 169 169 Lines 8221 8220 -1 Branches 1216 1216 ========================================== - Hits 7795 7794 -1 Misses 316 316 Partials 110 110 ``` | Flag | Coverage Δ | | |---|---|---| | integration | `69.13% <100.00%> (+<0.01%)` | :arrow_up: | | unittests | `92.65% <100.00%> (-0.01%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dstl#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://codecov.io/gh/dstl/Stone-Soup/pull/742?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dstl) | Coverage Δ | | |---|---|---| | [stonesoup/tracker/base.py](https://codecov.io/gh/dstl/Stone-Soup/pull/742/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dstl#diff-c3RvbmVzb3VwL3RyYWNrZXIvYmFzZS5weQ==) | `100.00% <100.00%> (ø)` | | | [stonesoup/tracker/pointprocess.py](https://codecov.io/gh/dstl/Stone-Soup/pull/742/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dstl#diff-c3RvbmVzb3VwL3RyYWNrZXIvcG9pbnRwcm9jZXNzLnB5) | `93.22% <100.00%> (-0.33%)` | :arrow_down: | | [stonesoup/tracker/simple.py](https://codecov.io/gh/dstl/Stone-Soup/pull/742/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dstl#diff-c3RvbmVzb3VwL3RyYWNrZXIvc2ltcGxlLnB5) | `98.98% <100.00%> (-0.11%)` | :arrow_down: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dstl). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dstl)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

gawebb-dstl commented 1 year ago

See PR #779 for an alternative implementation