YDLIDAR / ydlidar_ros2_driver

ydlidar driver package under ros2
Other
62 stars 110 forks source link

Wrong parameter type, parameter {invalid_range_is_inf} is of type {double}, setting it to {bool} is not allowed. #42

Closed TheMasterProgrammer closed 5 months ago

TheMasterProgrammer commented 10 months ago

hello 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 thanks

shreyavsanoj7 commented 5 months ago

did u get a soln? Im kinda facing the same issue.. thanx

TheMasterProgrammer commented 5 months ago

@shreyavsanoj7 I did. i had to modify the cpp source code of the ydlidar and i removed the part of the code that referenced invalid_range_is_inf