0
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ROSのcatkin buildが通らない時の対処法

Posted at

簡単な自分の覚書も兼ねて書いていきます。

環境

  • OS: Ubuntu16.04
  • ROS: kinetic

問題

Git HubからcloneしてきたROSパッケージを

$ catkin build

をしたときに、BuildしたいパッケージがFailedやAbandoned担ってしまう。

エラーの内容は、
Could not find a package configuration file provided by "-----" with any of the following names: ---

といったようなもの。

Git Hubのドキュメントを読んでいったら、

rosdep update
rosdep install --from-paths src -i

をしてと書いてあったので実行。
しかし、次のようなエラーが出てきて通らない…
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies (ROS distro is not set. Make sure ROS_DISTRO environment variable is set, or use --rosdistro option to specify the distro, e.g. --rosdistro indigo):

解決策

sudo rosdep install -r --from-paths src -i

として強制的に実行したところ通すことができた。

その後catkin buildも通すことができて一見落着でした。

0
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?