如果 roslaunch beginner_tutorials turtlemimic.launch 發(fā)現(xiàn)[turtlemimic.launch] is neither a launch file in package [beginner_tutorials] nor is [beginner_tutorials] a launch file nameThe traceback for the exception was written to the log file或者如果執(zhí)行$ roscd beginner_tutorials命令roscd說(shuō)類(lèi)似于:No such package/stack 'beginner_tutorials'你需要啟動(dòng)環(huán)境變量設(shè)置的文件,像你之前在create_a_workspace教程末尾中做的一樣。$ cd ~/catkin_ws$ source devel/setup.bash$ roscd beginner_tutorialshttp://m.blog.csdn.net/article/details?id=51220964至此、ROS的環(huán)境就已經(jīng)設(shè)置好了!但是,為了保證每次打開(kāi)bash的時(shí)候,保證workspace在環(huán)境中,我們還需要做一些工作:在用戶(hù)的主文件夾下找到”.bashrc”文件,然后在最后加上export ROS_PACKAGE_PATH=~/wenweiming/LearnRos/PRoject2:$ROS_PACKAGE_PATH如下圖所示這里寫(xiě)圖片描述這樣以后新建的工作空間都在bash中了。