-
Notifications
You must be signed in to change notification settings - Fork 650
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(lidar_apollo_segmentation_tvm/_nodes): remove autoware_auto_common dependency #2234
Conversation
@yukke42 @yukkysaito |
@takayuki5168 I agree with the policy. There must be a reason why it was introduced and I would like to know. |
Codecov ReportBase: 12.29% // Head: 10.88% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #2234 +/- ##
==========================================
- Coverage 12.29% 10.88% -1.42%
==========================================
Files 1171 1179 +8
Lines 82644 84935 +2291
Branches 23314 20043 -3271
==========================================
- Hits 10162 9242 -920
- Misses 61711 65931 +4220
+ Partials 10771 9762 -1009
*This pull request uses carry forward flags. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Regarding this kind of code, let's refer to https://www.autosar.org/fileadmin/user_upload/standards/adaptive/21-11/AUTOSAR_RS_CPP14Guidelines.pdf and follow the latest recommendation. |
@kenji-miyake Could you give me more hint of how to refer to the guideline. (-> Explained in a chat.) FYI: There is no behavior change with this PR since bool8_t, float32_t, float64_t is defined as bool, float, double respectively here.
|
(Please ignore my review, it was a dummy test)
@takayuki5168 I've opened up the following discussion to talk about it: https://github.com/orgs/autowarefoundation/discussions/3016 |
I feel like this PR is a step backwards if long term we want to indeed have fixed-width types. In any case, those are not strongly held opinions and I don't oppose going ahead with the change. |
It's not because it is an Autoware.Auto package, it's because it's a dependency. In https://github.com/orgs/autowarefoundation/discussions/3016 we've discussed if we should create a similar package for types in Autoware Core.
As discussed in https://github.com/orgs/autowarefoundation/discussions/3016 , here are some conclusions:
As for
Since types are the most essential things, it needs to be included in every package. We will of course have these kind of things if they are necessary. But what we are discussing is about whether they are necessary or not for the current state of the Autoware, the users etc. Please add your inputs to the discussion as well. |
I may have misunderstood the meaning of the initial comment #2234 (comment). Alright then.
I had missed that the PR only replaced |
@@ -37,9 +36,8 @@ namespace perception | |||
{ | |||
namespace lidar_apollo_segmentation_tvm | |||
{ | |||
using autoware::common::types::bool8_t; | |||
|
|||
using autoware::common::types::char8_t; |
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.
Should be removed too as pointed out by @ambroise-arm in #2234 (comment)
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.
d7f9531
DONE
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.
using autoware::common::types::char8_t;
is the issue here, not the white line, as it is a autoware_auto_common
dependency
After removing this line, the char8_t
in the file should then be replaced by char
as mentioned in #2234 (comment)
@takayuki5168 Can you resolve some conflicts? |
…common dependency Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
5feb158
to
6b72319
Compare
@yukkysaito @xmfcx I resolved the conflicts. |
LGTM |
@@ -37,9 +36,8 @@ namespace perception | |||
{ | |||
namespace lidar_apollo_segmentation_tvm | |||
{ | |||
using autoware::common::types::bool8_t; | |||
|
|||
using autoware::common::types::char8_t; |
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.
using autoware::common::types::char8_t;
is the issue here, not the white line, as it is a autoware_auto_common
dependency
After removing this line, the char8_t
in the file should then be replaced by char
as mentioned in #2234 (comment)
Sorry for the slow response, my notifications were not working properly. The reason for these types is mostly MISRA, because the built-in types don't have a defined size across all platforms, so by defining these aliases we can see quickly what size they have. |
This pull request has been automatically marked as stale because it has not had recent activity. |
@takayuki5168 I've moved this branch to AWF organization to collaborate easier. And made some fixes. New PR: #3136 In order to build it, you need to run Without the |
@xmfcx Sorry about not handling this PR. I really appreciate your help. |
Signed-off-by: Takayuki Murooka takayuki5168@gmail.com
Description
related to #2229
remove autoware_auto_common from lidar_apollo_segmentation_tvm/_nodes
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.