Slamtec / sllidar_ros2

BSD 2-Clause "Simplified" License
123 stars 84 forks source link

In ubuntu 22.04 ros2 humble rplidar s2 firmware build error #12

Closed debanik123 closed 1 year ago

debanik123 commented 2 years ago

In member function ‘virtual u_result rp::net::SocketAddress::getAddressAsString(char, size_t) const’: /home/dj/lidar_ws/src/sllidar_ros2/sdk/src/arch/linux/net_socket.cpp:170:15: error: ordered comparison of pointer with integer zero (‘const char’ and ‘int’) 170 | return ans<=0?RESULT_OPERATION_FAIL:RESULT_OK;

nbmi commented 1 year ago

Change the "<=" to "!=".

Note: Not successfully tested, I got stuck further downstream in the Humble node build process.

deyouslamtec commented 1 year ago

Fixed, please try the latest version