Hello I am trying to install YDLidar ROS driver and when I input the command catkin_make It gets half way and fails due to a missing dependency "std_srvs/Empty.h" the terminal looks like this
ydlidar_ws $ sudo catkin_make
Base path: /home/jack/ydlidar_ws
Source space: /home/jack/ydlidar_ws/src
Build space: /home/jack/ydlidar_ws/build
Devel space: /home/jack/ydlidar_ws/devel
Install space: /home/jack/ydlidar_ws/install
Running command: "make cmake_check_build_system" in "/home/jack/ydlidar_ws/build"
Running command: "make -j4 -l4" in "/home/jack/ydlidar_ws/build"
[ 50%] Building CXX object ydlidar_ros_driver/CMakeFiles/ydlidar_ros_driver_node.dir/src/ydlidar_ros_driver.cpp.o
/home/jack/ydlidar_ws/src/ydlidar_ros_driver/src/ydlidar_ros_driver.cpp:29:10: fatal error: std_srvs/Empty.h: No such file or directory
29 | #include "std_srvs/Empty.h"
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [ydlidar_ros_driver/CMakeFiles/ydlidar_ros_driver_node.dir/build.make:82: ydlidar_ros_driver/CMakeFiles/ydlidar_ros_driver_node.dir/src/ydlidar_ros_driver.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:269: ydlidar_ros_driver/CMakeFiles/ydlidar_ros_driver_node.dir/all] Error 2
make: *** [Makefile:160: all] Error 2
Invoking "make -j4 -l4" failed
So from what I gather std_srvs/Empty.h does not exist and I'm not sure how to make it exist. Any help is welcome.
Hello I am trying to install YDLidar ROS driver and when I input the command catkin_make It gets half way and fails due to a missing dependency "std_srvs/Empty.h" the terminal looks like this
ydlidar_ws $ sudo catkin_make
Base path: /home/jack/ydlidar_ws
Source space: /home/jack/ydlidar_ws/src
Build space: /home/jack/ydlidar_ws/build
Devel space: /home/jack/ydlidar_ws/devel
Install space: /home/jack/ydlidar_ws/install
Running command: "make cmake_check_build_system" in "/home/jack/ydlidar_ws/build"
Running command: "make -j4 -l4" in "/home/jack/ydlidar_ws/build"
[ 50%] Building CXX object ydlidar_ros_driver/CMakeFiles/ydlidar_ros_driver_node.dir/src/ydlidar_ros_driver.cpp.o
/home/jack/ydlidar_ws/src/ydlidar_ros_driver/src/ydlidar_ros_driver.cpp:29:10: fatal error: std_srvs/Empty.h: No such file or directory
29 | #include "std_srvs/Empty.h"
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [ydlidar_ros_driver/CMakeFiles/ydlidar_ros_driver_node.dir/build.make:82: ydlidar_ros_driver/CMakeFiles/ydlidar_ros_driver_node.dir/src/ydlidar_ros_driver.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:269: ydlidar_ros_driver/CMakeFiles/ydlidar_ros_driver_node.dir/all] Error 2
make: *** [Makefile:160: all] Error 2
Invoking "make -j4 -l4" failed
So from what I gather std_srvs/Empty.h does not exist and I'm not sure how to make it exist. Any help is welcome.