CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "darknet_ros_msgs"
with any of the following names:
darknet_ros_msgsConfig.cmake
darknet_ros_msgs-config.cmake
Add the installation prefix of "darknet_ros_msgs" to CMAKE_PREFIX_PATH or
set "darknet_ros_msgs_DIR" to a directory containing one of the above
files. If "darknet_ros_msgs" provides a separate development package or
SDK, be sure it has been installed.
Call Stack (most recent call first):
darknet_ros/darknet_ros/CMakeLists.txt:51 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/nvidia/data/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/nvidia/data/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:544: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
nvidia@nvidia:~/data/catkin_ws$ rospack find darknet_ros_msgs
/home/nvidia/data/catkin_ws/src/darknet_ros/darknet_ros_msgs
nvidia@nvidia:~/data/catkin_ws$ catkin build darknet_ros -DCMAKE_BUILD_TYPE=Release
bash: catkin: command not found
新建一个工作空间
mkdir ~/catkin_wsa/src
cd ~/catkin_wsa/src
git clone --recursive https://github.com/leggedrobotics/darknet_ros
cd ..
catkin_make