-
Notifications
You must be signed in to change notification settings - Fork 683
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: create autoware_auto_msgs_adapter node #3876
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #3876 +/- ##
==========================================
+ Coverage 14.45% 14.48% +0.03%
==========================================
Files 1456 1461 +5
Lines 102537 102639 +102
Branches 29652 29704 +52
==========================================
+ Hits 14819 14870 +51
- Misses 71567 71568 +1
- Partials 16151 16201 +50
*This pull request uses carry forward flags. Click here to find out more.
☔ View full report in Codecov by Sentry. |
50f0284
to
fd9ec46
Compare
9c21566
to
7efe1ad
Compare
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
7efe1ad
to
14ab27b
Compare
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
@isamu-takagi I've created the first functioning prototype for this node. I have also added an integration test for this too. I'm open to any suggestions on this node. Could you please review? After your first review, I will also add documentation to show how it works too. I've made it to be extensible like we discussed. |
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
...tor/autoware_auto_msgs_adapter/include/autoware_auto_msgs_adapter/adapter_base_interface.hpp
Outdated
Show resolved
Hide resolved
simulator/autoware_auto_msgs_adapter/include/autoware_auto_msgs_adapter/adapter_base.hpp
Outdated
Show resolved
Hide resolved
simulator/autoware_auto_msgs_adapter/include/autoware_auto_msgs_adapter/adapter_base.hpp
Outdated
Show resolved
Hide resolved
simulator/autoware_auto_msgs_adapter/include/autoware_auto_msgs_adapter/adapter_base.hpp
Outdated
Show resolved
Hide resolved
simulator/autoware_auto_msgs_adapter/include/autoware_auto_msgs_adapter/adapter_base.hpp
Outdated
Show resolved
Hide resolved
{ | ||
public: | ||
using SharedPtrInterface = std::shared_ptr<AdapterBaseInterface>; | ||
using ConstSharedPtrInterface = const SharedPtrInterface; |
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 don't think Interface
is needed for a pointer name.
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 reason was to be able to differentiate with the shared pointer from the class and the base class.
This functionality is not used, so it makes sense to remove it for this case. (Done in: a4e98e0 )
But if it was used, would it makes sense to either:
- give it a different name like I did
- OR somehow cast it to the base or derived class' pointer in the places it is used?
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.
Oh, I didn't notice that. I'll look into type alias for derived classes.
...tor/autoware_auto_msgs_adapter/include/autoware_auto_msgs_adapter/adapter_base_interface.hpp
Outdated
Show resolved
Hide resolved
simulator/autoware_auto_msgs_adapter/src/autoware_auto_msgs_adapter_core.cpp
Outdated
Show resolved
Hide resolved
simulator/autoware_auto_msgs_adapter/include/autoware_auto_msgs_adapter/adapter_control.hpp
Outdated
Show resolved
Hide resolved
simulator/autoware_auto_msgs_adapter/src/autoware_auto_msgs_adapter_core.cpp
Outdated
Show resolved
Hide resolved
simulator/autoware_auto_msgs_adapter/config/autoware_auto_msgs_adapter.param.yaml
Outdated
Show resolved
Hide resolved
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
simulator/autoware_auto_msgs_adapter/include/autoware_auto_msgs_adapter/adapter_base.hpp
Outdated
Show resolved
Hide resolved
Thanks for the very good PR. When we move from autoware_auto_msgs to autoware_msgs, I think we will need this adaptor not only in simulation but also in real machine. So I think it would be better to put it in the control directory instead of the simulation directory. |
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai> Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
0142948
to
66edca2
Compare
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
@yukkysaito thanks! I moved it to system directory instead: 4ba25b3 Reason is, this is not related to control only, it will probably adapt more message types from other components too. I had 3 options:
What do you think? |
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
@xmfcx |
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
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.
Description
Closes: #3845
Tests performed
Fill here.
Effects on system behavior
It will do:
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.