ROS2 Sensor Sim Fix

Job ID: 37719726

Budget: $10 – $30 CAD

I have x3 lidar (which is similar to x2) and I am using the ydlidar sdk on ubuntu 22 with ros2 humble implementation. Inside the ydlidar.yaml, whenever i set invalid_range_is_inf to false i get the error:
parameter 'invalid_range_is_inf' has invalid type: Wrong parameter type, parameter {invalid_range_is_inf} is of type {double}, setting it to {bool} is not allowed.

which indicates that the type is double.

But when i change it to 0.0 i get the error:
what(): parameter 'invalid_range_is_inf' has invalid type: expected [bool] got [double]

this is a paradox and i need help

I will pay the person who has a solution for this problem. Only bid if you think you know how to fix this small error