RLException: [xx.launch] is neither a launch file in package [x] nor is [x] a launch file name的解决方法

这篇具有很好参考价值的文章主要介绍了RLException: [xx.launch] is neither a launch file in package [x] nor is [x] a launch file name的解决方法。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

ROS学习过程中,遇到问题:RLException: [xx.launch] is neither a launch file in package [x] nor is [x] a launch file name

出现的问题:

在ROS学习中,进行工作区下编译的时候,突然报错,出现的错误如下

RLException: [racecar.launch] is neither a launch file in package [racecar_gazebo] nor is [racecar_gazebo] a launch file name
The traceback for the exception was written to the log file

这种错误的出现,是因为坏境变量没有被添加!!!

解决方案

添加环境变量即可
添加环境变量的方法不唯一

这里介绍两种方法,两种方式各有优点

方法一

确保在建立工作空间的时候就已经执行catkin_make

直接在命令行,进入到工作空间,然后执行以下命令:

source ./devel/setup.bash

这种方式,可以直接在命令行中操作,短时间内是看着比较简单的。每次不确定的时候就可以直source一下。

方法二

直接对环境变量文件进行修改

  1. 在命令行打开文件./bashrc,命令如下:
sudo  gedit ~/.bashrc
  1. 在文件最后加入以下语句:
source ~/work_ws/devel/setup.bash
export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:~/work_ws/

注意: 值得注意的是:这里的work_ws是我的ROS工作的路径,也就是你的ros的工作空间

  1. 重启bashrc,直接执行以下语句
source ~/.bashrc
  1. 查看ROS路径是否添加上
echo $ROS_PACKAGE_PATH

设置成功的话,就会直接显示添加的路径。
RLException: [xx.launch] is neither a launch file in package [x] nor is [x] a launch file name的解决方法

OVER!!!文章来源地址https://www.toymoban.com/news/detail-457111.html

到了这里,关于RLException: [xx.launch] is neither a launch file in package [x] nor is [x] a launch file name的解决方法的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • Neither ‘setup.py‘ nor ‘pyproject.toml‘ found

    想用pip 安装包到虚拟环境下,而不是本机默认的Python 文件夹下,那么需要加上 --target= 文件的目录。注意拷贝过来的时候要换斜杠的方向。 没问题的: 我有一次可以这样安装: pip install --target=D:/University-of-London-2020/CM3035-Advanced-Web-Development/Week_15/topic8_files/env/Lib/site-packages

    2024年02月12日
    浏览(20)
  • java.io.IOException: Your InputStream was neither an OLE2 stream, nor an OOXML stream

    流读取文件时可能报以下错误: 此错误一般是文件上传时,用Workbook工厂或者实体类直接创建new HSSFWorkbook/XSSFWorkbook时出现。 解决方法很简单有两种: 1、在项目的pom.xml文件内新增或补足以下代码块 2、用更简单的cn.hutool.poi.excel.ExcelReader类,样例如下:

    2024年04月13日
    浏览(24)
  • Vue 报错: Already included file name ‘××ב differs from file name ‘××ב only in casing.但引入路径是正确的

    vue提示Already included file name \\\'.../components/TagsView.vue\\\' differs from file name 明明引入的文件名和地址都是正确的,但是还是报错误   解决方案一: 把文件名的后缀vue去掉   解决方案一: 把路径前面的点改成@

    2024年02月11日
    浏览(44)
  • Error creating bean with name ‘esUtils‘ defined in file

     报错异常:  背景: esUtils在common服务中、启动media服务时候、报这个异常、后排查esUtils在启动时候发生异常引起的、在相关bean中加入try{}catch{}即可解决问题

    2024年02月11日
    浏览(49)
  • .eslintrc.js is treated as an ES module file as it is a .js file whose nearest parent package.json c

    在给vue3项目添加eslint的时候,安装完依赖,并且在package.json中的scripts配置了eslint检测的命令之后执行检测命令,发生如下报错: 按照报错,打算把根目录下的.eslintrc.js改为.eslintrc.cjs,改完之后确实能够执行了,但是.eslintrc.cjs文件一直显示报错,官方有建议几种文件的格式

    2024年02月12日
    浏览(36)
  • Swift Package is built as a universal binary in main project

    Hi, Following line from Xcode build log shows that Xcode is building swift package dependencies as universal binaries CreateUniversalBinary .../UIComponents.o normal arm64 x86_64 (in target \\\'UIComponents\\\' from project \\\'PlatformPackages\\\') Also confirmed with lipo lipo -info UIComponents.o Architectures in the fat file: UIComponents.o are: x86_64 arm64 Is it

    2024年02月12日
    浏览(29)
  • uview-ui报错:Component is not found in path node-modules/uview-ui/components/xx/xx

    解决方法: 1、uview-ui如果是npm安装 需要在pages.json中添加easycom配置 2、配置了以上还报错的话可能是 tempalte样式最外层没用标签包括着(只允许有一层用 view/view 包裹最外层) 3、如果试过方法还没解决的话,可以试试彻底 关闭开发者工具关闭,重启 如你还有其他更好的解决

    2024年02月11日
    浏览(34)
  • 报错:java: 读取D:\XX\XXX.jar时出错; error in opening zip file[有效解决方案]

    一般是在idea构建项目时报的错误。 原因:1、在构建项目时中止构建,导致jar下载失败或者下载的jar包残缺无法打开使用。     2、构建好项目后,更换idea的maven版本,导致maven的本地仓库改变,无法加载之前构建好的环境,或者打不开之前下载的jar包     3、依赖的jar因为某

    2024年02月11日
    浏览(56)
  • Could not find a configuration file for package “OpenCV“ that is compatible with requested version “

    错误详情: 这个错误提示是在使用CMake构建项目时出现的,原因是CMake无法找到与所需OpenCV版本兼容的配置文件。 解决方法如下: 1. 确认OpenCV版本:首先需要确认所需的OpenCV版本是多少,然后检查系统中是否已经安装了该版本的OpenCV。 2. 指定OpenCV配置文件路径:如果系统中

    2024年02月07日
    浏览(33)
  • 解决Ubuntu中“is not in the sudoers file“问题

    在Ubuntu中,使用sudo命令可以以超级用户的权限执行特权操作。然而,有时在运行sudo命令时,可能会遇到类似于\\\"username is not in the sudoers file\\\"的错误消息,这意味着当前用户没有被授权执行sudo命令。 这个问题通常可以通过以下步骤解决: 步骤 1: 切换到具有管理员权限的用户

    2024年02月05日
    浏览(31)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包