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): define a new internal object class #9706

Conversation

technolojin
Copy link
Contributor

@technolojin technolojin commented Dec 20, 2024

Description

To enhance the tracking algorithm and make the process modular, a new object class DynamicObject is defined

  1. DynamicObject replaces message type (DetectedObject and TrackedObject) variables in the core algorithms.
  2. Object shape related functions are organized into shapes namespace. Functions of utils.hpp are moved into this.
  3. Unused variables and includes are removed.

This PR do not contain any logical change.

Related links

Parent Issue:

  • Link

How was this PR tested?

TIER IV INTERNAL

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@technolojin technolojin self-assigned this Dec 20, 2024
@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 20, 2024
Copy link

github-actions bot commented Dec 20, 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 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Dec 23, 2024
Copy link

codecov bot commented Dec 23, 2024

Codecov Report

Attention: Patch coverage is 0% with 214 lines in your changes missing coverage. Please review.

Project coverage is 29.70%. Comparing base (4045fb3) to head (2bceb0f).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...e_multi_object_tracker/lib/object_model/shapes.cpp 0.00% 72 Missing ⚠️
...re_multi_object_tracker/lib/object_model/types.cpp 0.00% 42 Missing ⚠️
...e_multi_object_tracker/src/processor/processor.cpp 0.00% 17 Missing ⚠️
...ject_tracker/lib/tracker/model/vehicle_tracker.cpp 0.00% 14 Missing ⚠️
...ject_tracker/lib/tracker/model/bicycle_tracker.cpp 0.00% 10 Missing ⚠️
...i_object_tracker/src/multi_object_tracker_node.cpp 0.00% 9 Missing ⚠️
...lti_object_tracker/src/processor/input_manager.cpp 0.00% 9 Missing ⚠️
...t_tracker/lib/tracker/model/pedestrian_tracker.cpp 0.00% 8 Missing ⚠️
...ject_tracker/lib/tracker/model/unknown_tracker.cpp 0.00% 7 Missing ⚠️
..._tracker/lib/uncertainty/uncertainty_processor.cpp 0.00% 7 Missing ⚠️
... and 7 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9706      +/-   ##
==========================================
- Coverage   29.75%   29.70%   -0.06%     
==========================================
  Files        1444     1447       +3     
  Lines      108722   108785      +63     
  Branches    42699    42670      -29     
==========================================
- Hits        32354    32315      -39     
- Misses      73185    73289     +104     
+ Partials     3183     3181       -2     
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 29.77% <ø> (+0.02%) ⬆️ Carriedforward from 9bc173c

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…ion.hpp and dynamic_object.hpp

Signed-off-by: Taekjin LEE <[email protected]>
…ion.hpp and dynamic_object.hpp

Signed-off-by: Taekjin LEE <[email protected]>
Signed-off-by: Taekjin LEE <[email protected]>
@technolojin technolojin force-pushed the feat/multi-obj-track/define-object-class branch from 95fe36b to 6619fc8 Compare December 23, 2024 04:11
@technolojin technolojin marked this pull request as ready for review December 23, 2024 05:31
Copy link
Contributor

@YoshiRi YoshiRi left a comment

Choose a reason for hiding this comment

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

LGTM

@technolojin technolojin enabled auto-merge (squash) December 23, 2024 23:39
@technolojin technolojin merged commit 308eefb into autowarefoundation:main Dec 23, 2024
35 checks passed
@technolojin technolojin deleted the feat/multi-obj-track/define-object-class branch December 24, 2024 00:13
kminoda pushed a commit to kminoda/autoware.universe that referenced this pull request Dec 25, 2024
… class (autowarefoundation#9706)

* feat: Add dynamic_object.hpp to object_model directory

Signed-off-by: Taekjin LEE <[email protected]>

* chore: Update autoware_perception_msgs include statements in association.hpp and dynamic_object.hpp

Signed-off-by: Taekjin LEE <[email protected]>

* fix: replace object message type to the DynamicObject type

Signed-off-by: Taekjin LEE <[email protected]>

* chore: Update autoware_perception_msgs include statements in association.hpp and dynamic_object.hpp

Signed-off-by: Taekjin LEE <[email protected]>

* chore: add channel index to the DynamicObjects

Signed-off-by: Taekjin LEE <[email protected]>

* Revert "chore: add channel index to the DynamicObjects"

This reverts commit c7e73f0.

Signed-off-by: Taekjin LEE <[email protected]>

* fix: replace trackedobject in the process

Signed-off-by: Taekjin LEE <[email protected]>

* fix: Replace transformObjects with shapes::transformObjects for object transformation

Signed-off-by: Taekjin LEE <[email protected]>

* chore: add channel index to the DynamicObjects

Signed-off-by: Taekjin LEE <[email protected]>

* feat: separate shape related functions

Signed-off-by: Taekjin LEE <[email protected]>

* chore: clean up utils.hpp

Signed-off-by: Taekjin LEE <[email protected]>

* chore: Update function signatures to use DynamicObjectList instead of DynamicObjects

Signed-off-by: Taekjin LEE <[email protected]>

* chore: Add channel index to DynamicObject and DynamicObjectList

Signed-off-by: Taekjin LEE <[email protected]>

* chore: Refactor processor and debugger classes to remove channel_index parameter

Signed-off-by: Taekjin LEE <[email protected]>

* chore: Refactor multiple_vehicle_tracker.cpp and debugger.cpp

Signed-off-by: Taekjin LEE <[email protected]>

* Refactor object tracker classes to remove self_transform parameter

Signed-off-by: Taekjin LEE <[email protected]>

* Refactor object tracker classes to use shapes namespace for shape-related functions

Signed-off-by: Taekjin LEE <[email protected]>

* Refactor object tracker classes to use types.hpp for object model types

Signed-off-by: Taekjin LEE <[email protected]>

* Refactor object tracker classes to remove unused utils.hpp

Signed-off-by: Taekjin LEE <[email protected]>

* Refactor object tracker classes to use types.hpp for object model types

Signed-off-by: Taekjin LEE <[email protected]>

* chore: rename to types.cpp

Signed-off-by: Taekjin LEE <[email protected]>

* rename getDynamicObject to toDynamicObject

Signed-off-by: Taekjin LEE <[email protected]>

* Update perception/autoware_multi_object_tracker/lib/object_model/shapes.cpp

Co-authored-by: Yukihiro Saito <[email protected]>

---------

Signed-off-by: Taekjin LEE <[email protected]>
Co-authored-by: Yukihiro Saito <[email protected]>
kyoichi-sugahara pushed a commit to kyoichi-sugahara/autoware.universe that referenced this pull request Dec 25, 2024
… class (autowarefoundation#9706)

* feat: Add dynamic_object.hpp to object_model directory

Signed-off-by: Taekjin LEE <[email protected]>

* chore: Update autoware_perception_msgs include statements in association.hpp and dynamic_object.hpp

Signed-off-by: Taekjin LEE <[email protected]>

* fix: replace object message type to the DynamicObject type

Signed-off-by: Taekjin LEE <[email protected]>

* chore: Update autoware_perception_msgs include statements in association.hpp and dynamic_object.hpp

Signed-off-by: Taekjin LEE <[email protected]>

* chore: add channel index to the DynamicObjects

Signed-off-by: Taekjin LEE <[email protected]>

* Revert "chore: add channel index to the DynamicObjects"

This reverts commit c7e73f0.

Signed-off-by: Taekjin LEE <[email protected]>

* fix: replace trackedobject in the process

Signed-off-by: Taekjin LEE <[email protected]>

* fix: Replace transformObjects with shapes::transformObjects for object transformation

Signed-off-by: Taekjin LEE <[email protected]>

* chore: add channel index to the DynamicObjects

Signed-off-by: Taekjin LEE <[email protected]>

* feat: separate shape related functions

Signed-off-by: Taekjin LEE <[email protected]>

* chore: clean up utils.hpp

Signed-off-by: Taekjin LEE <[email protected]>

* chore: Update function signatures to use DynamicObjectList instead of DynamicObjects

Signed-off-by: Taekjin LEE <[email protected]>

* chore: Add channel index to DynamicObject and DynamicObjectList

Signed-off-by: Taekjin LEE <[email protected]>

* chore: Refactor processor and debugger classes to remove channel_index parameter

Signed-off-by: Taekjin LEE <[email protected]>

* chore: Refactor multiple_vehicle_tracker.cpp and debugger.cpp

Signed-off-by: Taekjin LEE <[email protected]>

* Refactor object tracker classes to remove self_transform parameter

Signed-off-by: Taekjin LEE <[email protected]>

* Refactor object tracker classes to use shapes namespace for shape-related functions

Signed-off-by: Taekjin LEE <[email protected]>

* Refactor object tracker classes to use types.hpp for object model types

Signed-off-by: Taekjin LEE <[email protected]>

* Refactor object tracker classes to remove unused utils.hpp

Signed-off-by: Taekjin LEE <[email protected]>

* Refactor object tracker classes to use types.hpp for object model types

Signed-off-by: Taekjin LEE <[email protected]>

* chore: rename to types.cpp

Signed-off-by: Taekjin LEE <[email protected]>

* rename getDynamicObject to toDynamicObject

Signed-off-by: Taekjin LEE <[email protected]>

* Update perception/autoware_multi_object_tracker/lib/object_model/shapes.cpp

Co-authored-by: Yukihiro Saito <[email protected]>

---------

Signed-off-by: Taekjin LEE <[email protected]>
Co-authored-by: Yukihiro Saito <[email protected]>
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) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) tag:require-cuda-build-and-test
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants