ros2_controllers
ros2_controllers copied to clipboard
Avoid JointTrajectoryController (ros2_control_node) crashing when integer instead of double is set
If yaml file defines:
state_publish_rate: 50
action_monitor_rate: 20
The parameter is set as Integer and the controller crashes with the error:
[ros2_control_node-1] terminate called after throwing an instance of 'rclcpp::exceptions::InvalidParameterTypeException'
[ros2_control_node-1] what(): parameter 'state_publish_rate' has invalid type: expected [double] got [integer]
The code can be found here
This really shouldn't happen... Is auto-casing from Integer to double sensible strategy?