编译 ar_pose 时出现问题(openCV 致命错误)
我在 Ubuntu 20.04 下尝试编译 ar_pose(作为 ROS noetic 中 ar_tools 的一部分)时遇到错误。
运行catkin_make时:
In file included from /home/alveybj/catkin_ws/src/ar_tools/ar_pose/src/ar_multi.cpp:25:
/home/alveybj/catkin_ws/src/ar_tools/ar_pose/include/ar_pose/ar_multi.h:47:10: fatal error: opencv/cv.h: No such file or directory
47 | #include <opencv/cv.h>
我需要降级ROS吗?乌班图?以某种方式告诉 ROS 我的 openCV 库在哪里?感谢您的帮助!
更新:我能够使用带有 WSL2 的 Ubuntu 18.04 LTS 在 ROS melodic 中正确编译 ar_tools。不知道为什么这在 Noetic 中不起作用,也许 OpenCV 已经更新了?
I'm getting an error when trying to compile ar_pose, as part of ar_tools in ROS noetic under Ubuntu 20.04.
When running catkin_make:
In file included from /home/alveybj/catkin_ws/src/ar_tools/ar_pose/src/ar_multi.cpp:25:
/home/alveybj/catkin_ws/src/ar_tools/ar_pose/include/ar_pose/ar_multi.h:47:10: fatal error: opencv/cv.h: No such file or directory
47 | #include <opencv/cv.h>
Do I need to downgrade ROS? Ubuntu? Somehow tell ROS where my openCV libraries are? Thanks for any help!
Update: I was able to get ar_tools to compile correctly in ROS melodic using Ubuntu 18.04 LTS with WSL2. Not sure why this wasn't working in Noetic, maybe OpenCV has been updated?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论