Skip to content

Refactor aggregator#365

Open
kimichenn wants to merge 9 commits into
mainfrom
qol/aggregator
Open

Refactor aggregator#365
kimichenn wants to merge 9 commits into
mainfrom
qol/aggregator

Conversation

@kimichenn

@kimichenn kimichenn commented May 15, 2026

Copy link
Copy Markdown
Contributor

Closes #325 (sample n images)

Refactor the entire aggregator. Now it serves as an API (initialized upon mission prep), and it listens to the image folder and reads in the image diffs every 500ms (configurable). I also added sampling every n images to reduce bloat.

Tested on sitl and everything still works fine.

@kimichenn kimichenn requested review from AskewParity and miyatakazuya and removed request for AskewParity May 15, 2026 01:33

@AskewParity AskewParity left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not tested this yet. These are just some cosmetic changes I'd like to see. Overall, I think the architecture is good.

For this PR specifically, we should wait until both Kaz and I approve to merge.

Comment thread include/cv/aggregator.hpp Outdated
Comment thread src/camera/mock.cpp
Comment thread src/cv/aggregator.cpp
Comment thread src/cv/aggregator.cpp Outdated
Comment thread src/network/gcs_routes.cpp
Comment thread src/network/gcs_routes.cpp Outdated
@AskewParity

Copy link
Copy Markdown
Contributor

One more thing: targets matched should live in mission state instead of CVAggregator

kimichenn and others added 3 commits May 14, 2026 18:57
* feat: precompute all paths

* chore: add buffer between computed paths

* feat; consolidate waypoints into one mission

* deleted existence of next waypoint

* revert: revert past 2 commits

* fix: prevent duplicate path decrement

* feat: add clear mav mission

* fix: change mavlink mission upload scheme

* feat: unit tests + refactor code

* chore: lint

* chore: revert cout in gcs_routes

* chore: ensure mission starts

* chore: ensure that path has enough points before deleting

* chore: lint

* feat: assert existance of cartesean converter

* chore: pass cartesean converter by reference

* chore: create check for search path generation

---------

Co-authored-by: Braxten Nguyen <braxtennguyen556@gmail.com>
@kimichenn kimichenn requested a review from AskewParity May 19, 2026 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sample images for CV

2 participants