久々にROS melodicでcatkin build
したらビルドエラー(Could not find a package configuration file provided by "tf" )
$ catkin build
...
CMake Error at /opt/ros/melodic/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
...
とにかく色々なパッケージを再インストールしていたら解決した。
いくつか更新パッケージがあったのでそれが効いたのかもしれない。。
sudo apt install \
ros-melodic-turtlebot3 ros-melodic-turtlebot3-msgs ros-melodic-turtlebot3-simulations \
ros-melodic-teleop-twist-keyboard ros-melodic-amcl ros-melodic-map-server \
ros-melodic-move-base ros-melodic-urdf ros-melodic-xacro \
ros-melodic-compressed-image-transport ros-melodic-rqt-image-view \
ros-melodic-gmapping ros-melodic-navigation ros-melodic-interactive-markers \
ros-melodic-hector-gazebo-plugins
追記
他にも色々動かなかったので更新
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "rviz" with any of
the following names:
rvizConfig.cmake
rviz-config.cmake
上記の対策
sudo apt-get install ros-melodic-rviz
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "costmap_converter"
with any of the following names:
costmap_converterConfig.cmake
costmap_converter-config.cmake
上記の対策
sudo apt-get install ros-melodic-costmap-converter
sudo apt-get install ros-melodic-mbf-costmap-core
ModuleNotFoundError: No module named 'yaml'
上記の対策
pip install pyyaml