【Error】[xxx.launch] is neither a launch file in package [xxxx] nor is [xxxx] a launch file name.

问题描述

今天在使用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

到这里问题就已经完美解决了!

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值