[launch_name]is neither a launch file in package [package_name]nor is [launch] a launch file name

环境配置

如果每次打开一个新的终端时ROS环境变量都能够自动配置好(即添加到bash会话中),那将会方便很多:

1.永久使用

法一

sudo  gedit ~/.bashrc
echo "source  ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc

echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc
source ~/.bashrc

法二:

sudo  gedit ~/.bashrc

在最后一行添加下列一句话 保存

export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:    /你的路径

更新一下环境:

source ~/.bashrc 


查看目前ros的工作路径有哪些
 

echo $ROS_PACKAGE_PATH  


2.当前窗口使用临时使用法

source ~/your work-package/devel/setup.bash

 

你可能感兴趣的:(ROS)