赞
踩
| 报错信息 |
|---|
Could NOT find tf2_geometry_msgs(missing: tf2_geometry_msgs_DIR)
-- Could not find the required component 'tf2_geometry_msgs'.
The following CMake error indicates that you either need to
install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by
"tf2_geometry_msgs" with any of the following names:
tf2_geometry_msgsConfig.cmake
tf2_geometry_msgs-config.cmake
Add the installation prefix of "tf2_geometry_msgs" to CMAKE_PREFIX_PATH or
set "tf2_geometry_msgs_DIR" to a directory containing one of the above
files. If "tf2_geometry_msgs" provides a separate development package or
SDK, be sure it has been installed.

| 解决方案 |
|---|
sudo apt install ros-melodic-tf2-geometry-msgs
ps:如果是ros的其他版本,只需要将melodic换成你的版本即可,然后将后面替换成你缺少的包名,注意要把包名中的 _ 换成 -才可以。这句我全网只找到一篇,还是外网的一个问答。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。