|
else if (cm_update_rate % controller_update_rate != 0) |
If a user creates a controller with update rate equals to zero, the line above is undefined behavior according to the C++ docs. Modulo operator with 0 should not be used. Maybe there should be a check of the controller update rate before using it.
ros2_control/controller_manager/src/controller_manager.cpp
Line 1606 in bb07fdd
If a user creates a controller with update rate equals to zero, the line above is undefined behavior according to the C++ docs. Modulo operator with 0 should not be used. Maybe there should be a check of the controller update rate before using it.