出現問題現象:運行剛創建的節點,出現找不到功能包
如何解決:
移動工作空間到創建節點的位置。
$ rosrun chapter2_tutorials example1_a
都會提示 Error: package 'chapter2_tutorials' not found
此時執行下邊三條命令之後就可以了!
$ cd ~/dev/catkin_ws //移動到工作空間,你的可能不是這個目錄名,根據自己的更改
$ catkin_make --pkg chapter2_tutorials
$ source devel/setup.bash
執行後成功解決: