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
384 stars 126 forks source link

Progress Trackers Manually: Option E #980

Closed gawebb-dstl closed 2 months ago

gawebb-dstl commented 2 months 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 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.

This also fixes issue #883

This is my fourth iteration of trying to get this right. See #742, #779 and #888 for previous implementations.

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.52%. Comparing base (8c8f9ee) to head (0f8d7d5).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #980 +/- ## ========================================== - Coverage 93.54% 93.52% -0.03% ========================================== Files 202 202 Lines 12930 12949 +19 Branches 2640 2644 +4 ========================================== + Hits 12096 12111 +15 - Misses 590 592 +2 - Partials 244 246 +2 ``` | [Flag](https://app.codecov.io/gh/dstl/Stone-Soup/pull/980/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dstl) | Coverage Δ | | |---|---|---| | [integration](https://app.codecov.io/gh/dstl/Stone-Soup/pull/980/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dstl) | `66.05% <85.00%> (+<0.01%)` | :arrow_up: | | [unittests](https://app.codecov.io/gh/dstl/Stone-Soup/pull/980/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dstl) | `89.19% <100.00%> (-0.02%)` | :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.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.