@yamto2386

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

ROSのパッケージ作成で、作成したパッケージが使用できない。

Q&A

解決したいこと

エラー↓
image.png
ros_startにディレクトリを移動できるようにしたい。
なぜ、パッケージが見つからないのか知りたい。

たどり着くまでの作業

まず、ワークスペースの作成を行った。↓
image.png
ビルドを行った。↓
image.png
image.png

bashrcを書き換えた

1source /opt/ros/kinetic/setup.bash
から
1# source /opt/ros/kinetic/setup.bash
2source ~/catkin_ws/devel/setup.bash

その後の$ROS_PACKAGE_PATH 確認。↓
image.png

パッケージのひな形を作成した。↓
image.png

もう一度catkin_makeを行った。↓
image.png
image.png

そして、エラーにたどり着く。

0 likes

1Answer

source ~/catkin_ws/devel/setup.bash
じゃ無くて
source ~/catkin_ws0831/devel/setup.bash
を実行してみたらどうですか??

0Like

Your answer might help someone💌