导航

    蓝鲸ROS机器人论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 热门
    1. 主页
    2. shlfan
    ROS交流群
    ROS Group
    产品服务
    Product Service
    开源代码库
    Github
    官网
    Official website
    技术交流
    Technological exchanges
    激光雷达
    LIDAR
    ROS教程
    ROS Tourials
    深度学习
    Deep Learning
    机器视觉
    Computer Vision
    • 资料
    • 关注 0
    • 粉丝 0
    • 主题 0
    • 帖子 2
    • 最佳 0
    • 群组 0

    shlfan

    @shlfan

    0
    声望
    1
    资料浏览
    2
    帖子
    0
    粉丝
    0
    关注
    注册时间 最后登录
    电子邮件 1908704221@qq.com

    shlfan 取消关注 关注

    shlfan 发布的最新帖子

    • RE: rk3588在ros中使用ros_rknn_yolo包

      @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
      
      
      
      发布在 技术交流
      shlfan
      shlfan
    • RE: rk3588在ros中使用ros_rknn_yolo包

      您好,我在运行到catkin_make时显示安装python依赖失败,查看CMakeError.log文件,显示如下图。通过测试,3588上有phtread。请问这是什么问题,该怎么解决?谢谢!

      Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
      Change Dir: /home/ema/rk3588_ros_ws/build/CMakeFiles/CMakeTmp
      
      Run Build Command(s):/usr/bin/make cmTC_48f6f/fast && /usr/bin/make -f CMakeFiles/cmTC_48f6f.dir/build.make CMakeFiles/cmTC_48f6f.dir/build
      make[1]: 进入目录“/home/ema/rk3588_ros_ws/build/CMakeFiles/CMakeTmp”
      Building C object CMakeFiles/cmTC_48f6f.dir/src.c.o
      /usr/bin/cc   -DCMAKE_HAVE_LIBC_PTHREAD   -o CMakeFiles/cmTC_48f6f.dir/src.c.o   -c /home/ema/rk3588_ros_ws/build/CMakeFiles/CMakeTmp/src.c
      Linking C executable cmTC_48f6f
      /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_48f6f.dir/link.txt --verbose=1
      /usr/bin/cc  -DCMAKE_HAVE_LIBC_PTHREAD    -rdynamic CMakeFiles/cmTC_48f6f.dir/src.c.o  -o cmTC_48f6f 
      /usr/bin/ld: CMakeFiles/cmTC_48f6f.dir/src.c.o: in function `main':
      src.c:(.text+0x48): undefined reference to `pthread_create'
      /usr/bin/ld: src.c:(.text+0x50): undefined reference to `pthread_detach'
      /usr/bin/ld: src.c:(.text+0x5c): undefined reference to `pthread_join'
      collect2: error: ld returned 1 exit status
      make[1]: *** [CMakeFiles/cmTC_48f6f.dir/build.make:87:cmTC_48f6f] 错误 1
      make[1]: 离开目录“/home/ema/rk3588_ros_ws/build/CMakeFiles/CMakeTmp”
      make: *** [Makefile:121:cmTC_48f6f/fast] 错误 2
      
      
      Source file was:
      #include <pthread.h>
      
      void* test_func(void* data)
      {
        return data;
      }
      
      int main(void)
      {
        pthread_t thread;
        pthread_create(&thread, NULL, test_func, NULL);
        pthread_detach(thread);
        pthread_join(thread, NULL);
        pthread_atfork(NULL, NULL, NULL);
        pthread_exit(NULL);
      
        return 0;
      }
      
      Determining if the function pthread_create exists in the pthreads failed with the following output:
      Change Dir: /home/ema/rk3588_ros_ws/build/CMakeFiles/CMakeTmp
      
      Run Build Command(s):/usr/bin/make cmTC_4bba2/fast && /usr/bin/make -f CMakeFiles/cmTC_4bba2.dir/build.make CMakeFiles/cmTC_4bba2.dir/build
      make[1]: 进入目录“/home/ema/rk3588_ros_ws/build/CMakeFiles/CMakeTmp”
      Building C object CMakeFiles/cmTC_4bba2.dir/CheckFunctionExists.c.o
      /usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_4bba2.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.16/Modules/CheckFunctionExists.c
      Linking C executable cmTC_4bba2
      /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4bba2.dir/link.txt --verbose=1
      /usr/bin/cc  -DCHECK_FUNCTION_EXISTS=pthread_create    -rdynamic CMakeFiles/cmTC_4bba2.dir/CheckFunctionExists.c.o  -o cmTC_4bba2  -lpthreads 
      /usr/bin/ld: 找不到 -lpthreads
      collect2: error: ld returned 1 exit status
      make[1]: *** [CMakeFiles/cmTC_4bba2.dir/build.make:87:cmTC_4bba2] 错误 1
      make[1]: 离开目录“/home/ema/rk3588_ros_ws/build/CMakeFiles/CMakeTmp”
      make: *** [Makefile:121:cmTC_4bba2/fast] 错误 2
      
      
      
      
      
      发布在 技术交流
      shlfan
      shlfan