-
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
Handle hardware errors in Resource Manager #805
Handle hardware errors in Resource Manager #805
Conversation
|
hardware_interface/include/hardware_interface/resource_manager.hpp
Outdated
Show resolved
Hide resolved
for (const auto & interface : hardware_info_map_[hardware_name].command_interfaces) | ||
{ | ||
auto found_it = std::find( | ||
available_command_interfaces_.begin(), available_command_interfaces_.end(), interface); |
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 is a search in a for loop... could this be implemented somehow using a more flat mapping by any chance? please feel free to say that I'm asking for impossible or very tedious things
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 will check this after I address above two comments that could also influence this.
for (const auto & interface : hardware_info_map_[hardware_name].state_interfaces) | ||
{ | ||
auto found_it = std::find( | ||
available_state_interfaces_.begin(), available_state_interfaces_.end(), interface); |
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.
same search-in-a-for-loop situation
…o works but the tests are missing.
9781116
to
3a87e45
Compare
@Mergifyio backport humble |
✅ Backports have been created
|
* Add code for deactivating controller when hardware gets an error on read and write. (cherry picked from commit e748824)
* Add code for deactivating controller when hardware gets an error on read and write. (cherry picked from commit e748824)
* Add code for deactivating controller when hardware gets an error on read and write. (cherry picked from commit e748824)
Co-authored-by: Denis Štogl <[email protected]>
First part of the #742 with changes only in Resource Manager.