- 问题描述
-- Could not find the required component 'tf'. 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/indigo/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "tf" with any of
the following names:
tfConfig.cmake
tf-config.cmake
Add the installation prefix of "tf" to CMAKE_PREFIX_PATH or set "tf_DIR" to
a directory containing one of the above files. If "tf" provides a separate
development package or SDK, be sure it has been installed.
- 解决办法
sudo apt-get install ros-indigo-tf2-sensor-msgs
或者
sudo apt-get install ros-indigo-tf2-*
最好的办法还是一次性安装好所有相关的模块
sudo apt-get install ros-indigo-*