You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using ROS-Noetic on my Arch-Linux , I followed the guide for building and visualization tutorial in this section https://github.com/robopeak/rplidar_ros/wiki but when I try to build it I got this warning:
/home/user/Projects/ROS/catkin_ws/src/rplidar_ros-master/sdk/src/arch/linux/net_socket.cpp: In member function ‘virtual u_result rp::net::SocketAddress::getAddressAsString(char*, size_t) const’:
/home/user/Projects/ROS/catkin_ws/src/rplidar_ros-master/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;
| ~~~^~~
/home/user/Projects/ROS/catkin_ws/src/rplidar_ros-master/sdk/src/rplidar_driver.cpp: In member function ‘virtual u_result rp::standalone::rplidar::RPlidarDriverImplCommon::grabScanData(rplidar_response_measurement_node_t*, size_t&, _u32)’:
/home/user/Projects/ROS/catkin_ws/src/rplidar_ros-master/sdk/src/rplidar_driver.cpp:1704:26: error: narrowing conversion of ‘rp::hal::Event::EVENT_TIMEOUT’ from ‘int’ to ‘long unsigned int’ [-Wnarrowing]
1704 | case rp::hal::Event::EVENT_TIMEOUT:
| ^~~~~~~~~~~~~
/home/user/Projects/ROS/catkin_ws/src/rplidar_ros-master/sdk/src/rplidar_driver.cpp: In member function ‘virtual u_result rp::standalone::rplidar::RPlidarDriverImplCommon::grabScanDataHq(rplidar_response_measurement_node_hq_t*, size_t&, _u32)’:
/home/user/Projects/ROS/catkin_ws/src/rplidar_ros-master/sdk/src/rplidar_driver.cpp:1733:26: error: narrowing conversion of ‘rp::hal::Event::EVENT_TIMEOUT’ from ‘int’ to ‘long unsigned int’ [-Wnarrowing]
1733 | case rp::hal::Event::EVENT_TIMEOUT:
| ^~~~~~~~~~~~~
make[2]: *** [rplidar_ros-master/CMakeFiles/rplidarNode.dir/build.make:104: rplidar_ros-master/CMakeFiles/rplidarNode.dir/sdk/src/arch/linux/net_socket.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [rplidar_ros-master/CMakeFiles/rplidarNode.dir/build.make:146: rplidar_ros-master/CMakeFiles/rplidarNode.dir/sdk/src/rplidar_driver.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1489: rplidar_ros-master/CMakeFiles/rplidarNode.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
Invoking "make -j8 -l8" failed
Any help ? thanks!
The text was updated successfully, but these errors were encountered:
Hi ,
I am using ROS-Noetic on my Arch-Linux , I followed the guide for building and visualization tutorial in this section https://github.com/robopeak/rplidar_ros/wiki but when I try to build it I got this warning:
Any help ? thanks!
The text was updated successfully, but these errors were encountered: