Skip to content

Commit db10bd6

Browse files
authored
Extend the reasoning for the capacity mismatch (#2723)
1 parent efa1dec commit db10bd6

File tree

1 file changed

+3
-1
lines changed
  • controller_interface/include/controller_interface

1 file changed

+3
-1
lines changed

controller_interface/include/controller_interface/helpers.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ bool get_ordered_interfaces(
5555
throw std::range_error(
5656
"Capacity of ordered_interfaces (" + std::to_string(ordered_interfaces.capacity()) +
5757
") has to be equal or higher as size of ordered_names (" +
58-
std::to_string(ordered_names.size()) + ") for realtime reasons.");
58+
std::to_string(ordered_names.size()) +
59+
") for realtime reasons. Please reserve sufficient space in the on_configure method to avoid "
60+
"allocating memory in real-time loop.");
5961
}
6062
for (const auto & name : ordered_names)
6163
{

0 commit comments

Comments
 (0)