问题描述
今天在使用ROS编译的过程中碰到了一个错误:
[publish_dedcription_turtlebot2.launch] is neither a launch file in package [file_server] nor is [file_server] a launch file name The traceback for the exception was written to the log file
问题分析
这个错误的与原因就是没有把launch文件添加到路径中。
解决方法
1.重新打开一个终端
cd catkin_ws/
2.添加文件到路径中
source devel/setup.bash
3.重新编译
catkin_make
4.运行launch文件
roslaunch file_server publish_description_turtlebot2.launch
到这里问题就已经完美解决了!