ros中不能运行新节点, Error: package 'chapter2_tutorials' not found解决方法。

出现问题现象:运行刚创建的节点,出现找不到功能包



如何解决:

移动工作空间到创建节点的位置。

   $ rosrun chapter2_tutorials example1_a

   都会提示 Error: package 'chapter2_tutorials' not found

   此时执行下边三条命令之后就可以了!

   $ cd ~/dev/catkin_ws                 //移动到工作空间,你的可能不是这个目录名,根据自己的更改

   $ catkin_make  --pkg  chapter2_tutorials

   $ source devel/setup.bash

执行后成功解决:






猜你喜欢

转载自blog.csdn.net/shuipengpeng/article/details/80039934