-
Notifications
You must be signed in to change notification settings - Fork 301
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
Add key-value-storage to the InterfaceInfo #1421
Add key-value-storage to the InterfaceInfo #1421
Conversation
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.
This looks valuable and the implementation is straight forward, thanks!
Just one usual comment from my side, please add this to the docs:
- maybe here or create a new page.
- into the release notes. If it get not merged soon, just comment here and I'll add that later.
@mamueluth can you please rebase this on master to run the checks? (we can't do that because this PR comes from an organization) |
6b44a4d
to
ebe46cf
Compare
…ned per Command-/StateInterface
ebe46cf
to
d8b9eb7
Compare
@christophfroehlich I added a overview to the docs. There the key-value storage is described in a generic example. We could explain the other xml tags there as well. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1421 +/- ##
==========================================
+ Coverage 86.81% 86.82% +0.01%
==========================================
Files 116 116
Lines 10692 10688 -4
Branches 978 977 -1
==========================================
- Hits 9282 9280 -2
Misses 1059 1059
+ Partials 351 349 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Very nice, thanks!
Co-authored-by: Dr. Denis <[email protected]>
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.
Very nice!
Nice tests too!
Thanks for the nice work
hardware_interface/include/hardware_interface/hardware_info.hpp
Outdated
Show resolved
Hide resolved
Co-authored-by: Bence Magyar <[email protected]>
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.
A short note in the release notes would be great 😇
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.
(sorry for being late, we can add the release notes in a follow-up PR as well).
c78bac7
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.
A minor detail
Co-authored-by: Sai Kishor Kothakota <[email protected]>
This PR adds the possibility to define custom parameters (key-value-storage) per Interface (Commad-/StateInterface). This is useful to define a .ros2_control.xacro for a hardware driver that uses for example Modbus for communication. In this case, you want to be able to define e.g. which register is used to retrieve/write the data for each Command-/StateInteface Individually.
Has been tested and works. Test have been added.
The exception as been altered as I did some mistake while defining the URDF and the thrown exception "invalid URDF passed in to robot parser" is not very useful at all. I would prefer this to be merged as it now gives some useful hint what was gone wrong. If i should move the two lines of code to an other PR as its not really related please let me know.