@shlfan 在工作空间中只有这两个包,没有其他的包了,使用您给的代码最后得到的结果没有变化
ema@ema:~/rk3588_ros_ws$ catkin_make -DCATKIN_WHITELIST_PACKAGES="vison_msgs;ros_rknn_yolo"
Base path: /home/ema/rk3588_ros_ws
Source space: /home/ema/rk3588_ros_ws/src
Build space: /home/ema/rk3588_ros_ws/build
Devel space: /home/ema/rk3588_ros_ws/devel
Install space: /home/ema/rk3588_ros_ws/install
####
#### Running command: "cmake /home/ema/rk3588_ros_ws/src -DCATKIN_WHITELIST_PACKAGES=vison_msgs;ros_rknn_yolo -DCATKIN_DEVEL_PREFIX=/home/ema/rk3588_ros_ws/devel -DCMAKE_INSTALL_PREFIX=/home/ema/rk3588_ros_ws/install -G Unix Makefiles" in "/home/ema/rk3588_ros_ws/build"
####
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CATKIN_DEVEL_PREFIX: /home/ema/rk3588_ros_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/noetic
-- This workspace overlays: /opt/ros/noetic
-- Found PythonInterp: /home/ema/miniconda3/bin/python3 (found suitable version "3.8.18", minimum required is "3")
-- Using PYTHON_EXECUTABLE: /home/ema/miniconda3/bin/python3
-- Using Debian Python package layout
-- Found PY_em: /usr/lib/python3/dist-packages/em.py
-- Using empy: /usr/lib/python3/dist-packages/em.py
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/ema/rk3588_ros_ws/build/test_results
-- Forcing gtest/gmock from source, though one was otherwise available.
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
-- Found PythonInterp: /home/ema/miniconda3/bin/python3 (found version "3.8.18")
-- Found Threads: TRUE
-- Using Python nosetests: /usr/bin/nosetests3
-- catkin 0.8.10
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- Using CATKIN_WHITELIST_PACKAGES: vison_msgs;ros_rknn_yolo
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 1 packages in topological order:
-- ~~ - ros_rknn_yolo
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'ros_rknn_yolo'
-- ==> add_subdirectory(ros_rknn_yolo)
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Found OpenCV: /usr (found version "4.2.0")
CMake Error at /home/ema/rk3588_ros_ws/build/ros_rknn_yolo/cmake/ros_rknn_yolo-genmsg.cmake:3 (message):
Could not find messages which
'/home/ema/rk3588_ros_ws/src/ros_rknn_yolo/srv/DoYolo.srv' depends on. Did
you forget to specify generate_messages(DEPENDENCIES ...)?
Cannot locate message [YoloResult] in package [vision_msgs] with paths
[['/opt/ros/noetic/share/vision_msgs/cmake/../msg']]
Call Stack (most recent call first):
/opt/ros/noetic/share/genmsg/cmake/genmsg-extras.cmake:307 (include)
ros_rknn_yolo/CMakeLists.txt:33 (generate_messages)
-- Configuring incomplete, errors occurred!
See also "/home/ema/rk3588_ros_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/ema/rk3588_ros_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
ema@ema:~/rk3588_ros_ws$ catkin_make -DCATKIN_WHITELIST_PACKAGES="vision_msgs;ros_rknn_yolo"
Base path: /home/ema/rk3588_ros_ws
Source space: /home/ema/rk3588_ros_ws/src
Build space: /home/ema/rk3588_ros_ws/build
Devel space: /home/ema/rk3588_ros_ws/devel
Install space: /home/ema/rk3588_ros_ws/install
####
#### Running command: "cmake /home/ema/rk3588_ros_ws/src -DCATKIN_WHITELIST_PACKAGES=vision_msgs;ros_rknn_yolo -DCATKIN_DEVEL_PREFIX=/home/ema/rk3588_ros_ws/devel -DCMAKE_INSTALL_PREFIX=/home/ema/rk3588_ros_ws/install -G Unix Makefiles" in "/home/ema/rk3588_ros_ws/build"
####
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CATKIN_DEVEL_PREFIX: /home/ema/rk3588_ros_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/noetic
-- This workspace overlays: /opt/ros/noetic
-- Found PythonInterp: /home/ema/miniconda3/bin/python3 (found suitable version "3.8.18", minimum required is "3")
-- Using PYTHON_EXECUTABLE: /home/ema/miniconda3/bin/python3
-- Using Debian Python package layout
-- Found PY_em: /usr/lib/python3/dist-packages/em.py
-- Using empy: /usr/lib/python3/dist-packages/em.py
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/ema/rk3588_ros_ws/build/test_results
-- Forcing gtest/gmock from source, though one was otherwise available.
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
-- Found PythonInterp: /home/ema/miniconda3/bin/python3 (found version "3.8.18")
-- Found Threads: TRUE
-- Using Python nosetests: /usr/bin/nosetests3
-- catkin 0.8.10
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- Using CATKIN_WHITELIST_PACKAGES: vision_msgs;ros_rknn_yolo
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 2 packages in topological order:
-- ~~ - vision_msgs
-- ~~ - ros_rknn_yolo
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'vision_msgs'
-- ==> add_subdirectory(vision_msgs)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- vision_msgs: 14 messages, 0 services
-- +++ processing catkin package: 'ros_rknn_yolo'
-- ==> add_subdirectory(ros_rknn_yolo)
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Found OpenCV: /usr (found version "4.2.0")
-- ros_rknn_yolo: 0 messages, 1 services
git clone sahi success
created virtual environment CPython3.8.10.final.0-64 in 311ms
creator CPython3Posix(dest=/home/ema/rk3588_ros_ws/src/ros_rknn_yolo/venv, clear=False, global=True)
seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, pkg_resources=latest, via=copy, app_data_dir=/home/ema/.local/share/virtualenv/seed-app-data/v1.0.1.debian.1)
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
Installing python dependencies of ros_rknn_yolo
/home/ema/rk3588_ros_ws/src/ros_rknn_yolo/venv/bin/pip /home/ema/rk3588_ros_ws/src/ros_rknn_yolo/requirements.txt
CMake Error at ros_rknn_yolo/CMakeLists.txt:73 (message):
Install python dependencies failed
-- Configuring incomplete, errors occurred!
See also "/home/ema/rk3588_ros_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/ema/rk3588_ros_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed