Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(autoware_multi_object_tracker): add configurable tracker parameters #9621

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jakor97
Copy link

@jakor97 jakor97 commented Dec 11, 2024

Description

Extracted autoware_multi_object_tracker parameters from source code, refactored parameters declaration and enabled setting confident_count_threshold for each classification label separately.

Changes

  • Extracted tracker-specific parameters: tracker_lifetime, min_known_object_removal_iou, min_unknown_object_removal_iou, distance_threshold, and confident_count_threshold to the multi_object_tracker_node.param.yaml configuration file.
  • Introduced TrackerProcessorConfig struct to encapsulate tracker-related parameters and refactored the TrackerProcessor class to use this struct for initialization.
  • Updated the TrackerProcessor methods to use the new configuration struct, including createNewTracker, removeOldTracker, removeOverlappedTracker, and isConfidentTracker.

Related links

autowarefoundation/autoware_launch#1273 autoware_launch PR for according parameters.

How was this PR tested?

Build completed successfully.
Tested parameters changes in Carla environment.

Notes for reviewers

None.

ROS Parameter Changes

Extracted parameters from source code and renamed them according to their use:

Old New
max_elapsed_time_ tracker_lifetime
min_iou_ min_known_object_removal_iou
min_iou_for_unknown_object_ min_unknown_object_removal_iou
distance_threshold_ distance_threshold
confident_count_threshold_ confident_count_threshold for each label type

Additions and removals

Change type Parameter Name Type Default Value Description
Added tracker_lifetime float 1.0 How long will tracker last
Added min_known_object_removal_iou float 0.1 Minimal IoU between associated objects with known label to remove younger tracker
Added min_unknown_object_removal_iou float 0.001 Minimal IoU between associated objects with unknown label to remove unknown tracker
Added distance_threshold float 5.0 Distance threshold for removing overlapped trackers
Added confident_count_threshold std::map<std::string, LabelType> Label : 3 Number of measurements to consider tracker as confident. Separated for each label.

Effects on system behavior

None.

@github-actions github-actions bot added component:perception Advanced sensor data processing and environment understanding. (auto-assigned) tag:require-cuda-build-and-test labels Dec 11, 2024
Copy link

github-actions bot commented Dec 11, 2024

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@technolojin technolojin self-assigned this Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:perception Advanced sensor data processing and environment understanding. (auto-assigned) tag:require-cuda-build-and-test
Projects
Status: To Triage
Development

Successfully merging this pull request may close these issues.

2 participants