-
Notifications
You must be signed in to change notification settings - Fork 682
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
feat(ground_segmentation): add time_keeper #8585
feat(ground_segmentation): add time_keeper #8585
Conversation
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
@a-maumau Thank you for your PR,
Could you tell me how did you extract these result? |
similar to #8597 (comment) |
@badai-nguyen Sorry for my poor explanations and making some confusions.
This meant "I remove some timekeeper from the code". The reason I removed the timekeeper from some methods is that its processing time is relatively small compared to the other parts. For example, following two images are output from debug tools.
In the second image, the processing time of Checking the
This result is not from the same point in the rosbag file, so it is hard compare the result, but the ratio of processing times of |
@technolojin It seems it is taking time for the for-loop which depends on the input point cloud number, and this might indicate the sample result of For example in the case of adding timekeeper only for few methods,
|
@a-maumau thank you for your clarification. |
I added more timekeepers to make the processing time clearer for Sample output:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reviewed focusing on the timekeeper implementation.
perception/autoware_ground_segmentation/src/scan_ground_filter/node.cpp
Outdated
Show resolved
Hide resolved
perception/autoware_ground_segmentation/src/scan_ground_filter/node.cpp
Outdated
Show resolved
Hide resolved
perception/autoware_ground_segmentation/src/scan_ground_filter/node.cpp
Outdated
Show resolved
Hide resolved
perception/autoware_ground_segmentation/src/scan_ground_filter/node.cpp
Outdated
Show resolved
Hide resolved
perception/autoware_ground_segmentation/src/scan_ground_filter/node.cpp
Outdated
Show resolved
Hide resolved
Output change at 45de8e7 :
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comments are more on details.
Other then those, LGTM.
perception/autoware_ground_segmentation/src/scan_ground_filter/node.cpp
Outdated
Show resolved
Hide resolved
perception/autoware_ground_segmentation/src/scan_ground_filter/node.cpp
Outdated
Show resolved
Hide resolved
perception/autoware_ground_segmentation/src/scan_ground_filter/node.cpp
Outdated
Show resolved
Hide resolved
perception/autoware_ground_segmentation/src/scan_ground_filter/node.cpp
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8585 +/- ##
==========================================
- Coverage 25.23% 25.23% -0.01%
==========================================
Files 1325 1328 +3
Lines 98572 98729 +157
Branches 38088 38163 +75
==========================================
+ Hits 24874 24910 +36
- Misses 71156 71227 +71
- Partials 2542 2592 +50
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@technolojin The reason for adding the new block (scope) in those lines might not be that clear. Would it be alright to remove that explanation? |
I do not think the new blocks are not clear. This process (separate a long code to blocks) is meaningful and useful to maintain a complex code readable and manageable. |
18e4ab2
to
2c68ffb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you resolve conflicts?
@Shin-kyoto I resolved the conflict. |
d8fd91a
to
a19b5e5
Compare
@Shin-kyoto can you review again please? |
* add time_keeper Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com> * add timekeeper option Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com> * add autoware_universe_utils Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com> * fix topic name Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com> * add scope and timekeeper Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com> * remove debug code Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com> * remove some timekeeper and mod block comment Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com> --------- Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com> Signed-off-by: emuemuJP <k.matsumoto.0807@gmail.com>
Description
This PR will add time keeper feature for
ground_segmentation
.The time tracking is set only for relatively long processing time functions/methods.
You need to modified the parameter file
ground_segmentation.param.yaml
inautoware_launch
to run in autoware.Sample output (updated from original comment)
Related links
Parent Issue:
How was this PR tested?
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.