Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rp::hal::Event::EVENT_TIMEOUT’ from ‘int’ to ‘long unsigned int’ #114

Open
cakarmustactalone opened this issue Oct 29, 2022 · 1 comment

Comments

@cakarmustactalone
Copy link

cakarmustactalone commented Oct 29, 2022

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:

/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!

@deyouslamtec
Copy link

Please use this repo:rplidar_ros

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants