旭日x3TogetherROS下colcon build出错

用户您好,请详细描述您所遇到的问题:

  1. 旭日x3派

  2. 安装hhp有错误

  3. root@ubuntu:/userdata/dev_ws# sudo apt install hhp

  4. Reading package lists… Done

  5. Building dependency tree

  6. Reading state information… Done

  7. The following NEW packages will be installed:

  8. hhp

  9. 0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.

  10. Need to get 0 B/696 MB of archives.

  11. After this operation, 512 MB of additional disk space will be used.

  12. (Reading database … 131869 files and directories currently installed.)

  13. Preparing to unpack …/archives/hhp_1.0.5_arm64.deb …

  14. Unpacking hhp (1.0.5) …

  15. dpkg: error processing archive /var/cache/apt/archives/hhp_1.0.5_arm64.deb (–unpack):

  16. trying to overwrite ‘/opt/tros/.colcon_install_layout’, which is also in package tros 1.1.3

  17. dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)

  18. Errors were encountered while processing:

  19. /var/cache/apt/archives/hhp_1.0.5_arm64.deb

  20. E: Sub-process /usr/bin/dpkg returned an error code (1)

  21. 旭日x3 按照教程安装TogetherROS后,在

  22. 创建工作空间时colcon build时出错

  23. Starting >>> cpp_dnn_demo

  24. Starting >>> hbmem_pubsub

  25. Starting >>> hobot_cv

  26. Starting >>> learning_action_cpp

  27. -– stderr: cpp_dnn_demo

  28. CMake Error at CMakeLists.txt:19 (find_package):

  29. By not providing “Findament_cmake.cmake” in CMAKE_MODULE_PATH this project

  30. has asked CMake to find a package configuration file provided by

  31. “ament_cmake”, but CMake did not find one.

  32. Could not find a package configuration file provided by “ament_cmake” with

  33. any of the following names:

  34. ament_cmakeConfig.cmake

  35. ament_cmake-config.cmake

  36. Add the installation prefix of “ament_cmake” to CMAKE_PREFIX_PATH or set

  37. “ament_cmake_DIR” to a directory containing one of the above files. If

  38. “ament_cmake” provides a separate development package or SDK, be sure it

  39. has been installed.

  40. -–

  41. Failed <<< cpp_dnn_demo [5.60s, exited with code 1]

  42. Aborted <<< hobot_cv [5.50s]

  43. Aborted <<< hbmem_pubsub [5.53s]

  44. Aborted <<< learning_action_cpp [5.46s]

  45. Summary: 0 packages finished [6.87s]

  46. 1 package failed: cpp_dnn_demo

  47. 3 packages aborted: hbmem_pubsub hobot_cv learning_action_cpp

  48. 4 packages had stderr output: cpp_dnn_demo hbmem_pubsub hobot_cv learning_action_cpp

  49. 2 packages not processed

-----------------------------------------

opt目录下都已安装好ros 和tros

root@ubuntu:/opt# ls

ros tros

root@ubuntu:/userdata/dev_ws# ls

build install log src

试过桌面版和服务版都是一样的问题,步骤都是按照教程一步一步来的

1、从1.1.0版本之后,安装命令已变更为apt install tros,注意tros版本号需要和系统版本号一致,详见手册

2、编译前需要source tros环境