Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion canopen_ros2_control/src/canopen_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,11 @@ hardware_interface::return_type CanopenSystem::read(
canopen_data.emcy_data.original_emcy.msef[0], canopen_data.emcy_data.original_emcy.msef[1],
canopen_data.emcy_data.original_emcy.msef[2], canopen_data.emcy_data.original_emcy.msef[3],
canopen_data.emcy_data.original_emcy.msef[4]);
return hardware_interface::return_type::ERROR;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make more sense to avoid returning ERROR in this case, and instead give the system a chance to recover rather than shutting it down?

}
}

return hardware_interface::return_type::ERROR;
return hardware_interface::return_type::OK;
}

hardware_interface::return_type CanopenSystem::write(
Expand Down