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

sunrise@ubuntu:~/Desktop/dev_ws$ source /opt/tros/local_setup.bash

sunrise@ubuntu:~/Desktop/dev_ws$ sudo colcon build

[sudo] password for sunrise:

Starting >>> cpp_dnn_demo

Starting >>> hbmem_pubsub

Starting >>> hobot_cv

Starting >>> learning_action_cpp

-– stderr: cpp_dnn_demo

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

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

has asked CMake to find a package configuration file provided by

“ament_cmake”, but CMake did not find one.

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

any of the following names:

ament_cmakeConfig.cmake

ament_cmake-config.cmake

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

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

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

has been installed.

-–

Failed <<< cpp_dnn_demo [0.61s, exited with code 1]

Aborted <<< learning_action_cpp [0.48s]

Aborted <<< hbmem_pubsub [0.56s]

Aborted <<< hobot_cv [0.52s]

Summary: 0 packages finished [1.80s]

1 package failed: cpp_dnn_demo

3 packages aborted: hbmem_pubsub hobot_cv learning_action_cpp

4 packages had stderr output: cpp_dnn_demo hbmem_pubsub hobot_cv learning_action_cpp

2 packages not processed

麻烦贴一下源码,包括CMakeLists.txt

您好,您的问题我们已收到,稍后会安排技术同事为您解答~

https://developer.horizon.ai/college/detail/id=97023452950640152 我就时按照 这视频讲解中的来进行的,下载了

sunrise@ubuntu:~/Desktop/dev_ws$ source /opt/tros/local_setup.bash

sunrise@ubuntu:~/Desktop/dev_ws$ sudo colcon build

在老师的讲解中说在编译是要增加 /Desktop/dev_ws$ source /opt/tros/local_setup.bash这条指令,我也增加了,但老师编译的能通过吗,我的就不行

这个操作要在同一个终端中,如果关闭了终端,下次还要source一下。 看报错像是没有source。

你好,请问你解决了吗,我也卡在这里

你好,请问有解决方法了吗,我已经source了,编译也不行