-
Notifications
You must be signed in to change notification settings - Fork 310
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
Moved TriggerType enum to dedicated file to avoid repetition in hardware component classes #1962
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1962 +/- ##
==========================================
- Coverage 88.11% 88.10% -0.01%
==========================================
Files 121 121
Lines 13174 13174
Branches 1187 1187
==========================================
- Hits 11608 11607 -1
Misses 1132 1132
- Partials 434 435 +1
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.
May be we can add it to the hardware_interface_return_values.hpp
along side
Lines 20 to 29 in 612b30b
namespace hardware_interface | |
{ | |
enum class return_type : std::uint8_t | |
{ | |
OK = 0, | |
ERROR = 1, | |
DEACTIVATE = 2, | |
}; | |
} // namespace hardware_interface |
WHat's your opinion on this @ros-controls/ros2-maintainers ?
Looks good to me. I'd simplify the file name to "trigger_type.hpp", the "hardware_interface" is already implied |
hardware_interface/include/hardware_interface/types/hardware_interface_trigger_type.hpp
Outdated
Show resolved
Hide resolved
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.
Thanks!
TriggerType
enum tohardware_interface_trigger_type.hpp
, to avoid repetition across hardware components classes.Fixes: #1958