ros2_controllers icon indicating copy to clipboard operation
ros2_controllers copied to clipboard

Avoid JointTrajectoryController (ros2_control_node) crashing when integer instead of double is set

Open destogl opened this issue 4 years ago • 0 comments

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?

destogl avatar Jan 04 '21 11:01 destogl