ROS入门——解决RLException: Unable to launch [xxx-2]
出现问题的源博客: ROS入门(十)——两只小乌龟(乌龟跟随C++实现)
在运行 launch 文件的过程中,出现了这个报错。无法启动launch文件。
RLException: Unable to launch [turtle2-2].
If it is a script, you may be missing a '#!' declaration at the top.
The traceback for the exception was written to the log file# 匹配异常,无法运行 launch
# 如果是一个脚本,您可能缺少一个'#!'的声明。
一、我的问题
我出现这个原因其实是因为粗心,在 launch 文件中,启动小乌龟的 type 应设置为 t1_turtle2,但我却写成了 t1_turtle2.cpp ,导致无法正常找到这个文件
# 正确启动方式
<launch><!-- 启动乌龟GUI节点 --><node pkg="turtlesim" type="turtlesim_node" name="turtle1" output="screen"/><!-- 生成新乌龟的节点 --><node pkg="tf1_turtle" type="t1_turtle2" name="turtle2" output="screen"/>
</launch># 错误写法,除非对应c文件的名称为 t1_turtle2.cpp.cpp
# <node pkg="tf1_turtle" type="t1_turtle2.cpp" name="turtle2" output="screen"/>
重新编译并运行。发现不再报错
二、其他方案
(1)未进行source
- 方法一:终端运行
source ./devel/setup.bash
- 方法二:永久配置
参考链接Ubuntu、VSCODE小技巧的二、2.一次性 source
(2)检查 cpp 的脚本头
看是否少写了 " # " 或导入的包有问题
(3)检查文件名
检查是否正确调用文件或运行文件【例如我的错误】。
文件名是否统一
参考博客
ROS错误之RLException: Ubable to launch [xx-1]].
ROS入门——解决RLException: Unable to launch [xxx-2]相关推荐
- 转 ROS:解决Error:cannot launch node of type [map_server/map_server]: can't locate node [map_server]
ROS:解决Error:cannot launch node of type [map_server/map_server]: can't locate node [map_server] in- 因 ...
- ROS入门(一)——ROS安装(vmware16+ubuntu20.04+ROS-Noetic)
嵌套:ROS可以在Ubuntu上运行,Ubuntu在虚拟机Vmware中安装. 从 虚拟机vmware安装→ubuntu安装→ros安装,逐步介绍安装ROS环境的过程.整个过程是我一步步跟着各种博客安 ...
- ROS中的roslaunch命令和launch文件(ROS入门学习笔记四)
ROS中的基本对象和概念学习笔记(ROS入门学习笔记一) ROS中创建工作区和包(ROS入门学习笔记二) ROS功能包中CMakeLists.txt的说明(ROS入门学习笔记三) 1.roslaunc ...
- CC3200 Debug时报错:Unable to launch CCS debug-session based on current selection.的解决方法
错误:Unable to launch CCS debug-session based on current selection. 某文件路径/xxx.ccxml dose not exist in ...
- Sublime Text 解决 Unable to download XXX 问题
Sublime Text 解决 Unable to download XXX 问题 参考文章: (1)Sublime Text 解决 Unable to download XXX 问题 (2)http ...
- ASA用ASDM管理时报unable to launch device manager xxx.xxx.xxx.xxx
最近开始学习cisco的ASA看到用asdm尝试的时候出现了一些问题,首先就是报unable to launch device manager xxxx.xxx.xxx.xxx 这个错误 . 然后百 ...
- 使用git上传工程出现fatal:Unable to create ‘/xxx/xxx/xxx/.git/index.lock‘:File exists的解决办法
git上传工程出现fatal:Unable to create '/xxx/xxx/xxx/.git/index.lock':File exists的原因及解决方法 先说解决办法 再来说说原因 官方说 ...
- ERROR: Unable to launch the RTL Schematic process. The input NGR file, Can not fnd the module的解决方法
我今天的verilog程序语法检测已通过,在综合时先后如下错误提示: 错误1: "ERROR: Unable to launch the RTL Schematic process. The ...
- 古月居ROS入门21讲-launch文件
视频链接:bilibili 搜 古月居 源代码:关注古月居公众号,回复ROS入门21讲 文章目录 1 launch文件语法 2 launch 示例 launch文集:通过XML文件实现多个节点的配置和 ...
- Sublime Text提示Unable to download XXX. Please view the console for more details安装插件失败解决
安装插件时,弹出提示框: Package Control Unable to download XXX. Please view the console for more details. 一番搜索后 ...
最新文章
- 一个权限树的设计与实现
- java转换音频采样率_转换音频采样率
- mysql 不能添加外键 1215_MySQL错误1215:无法添加外键约束
- Pod在多可用区worker节点上的高可用部署 1
- rabbitmq添加自启动 centos7环境
- Centos6.x升级内核方法支持Docker
- 网页英文字体和中文字体应用
- 干货|一文看懂BLE低功耗技术-附主流BLE芯片厂商介绍
- 从零开始设计一款APP之如何做原型图
- python 动态执行 内存变化_深入理解python数组的动态扩容机制以及摊销分析
- 神武3很遗憾未能链接服务器,12月8日神武3维护解读 wuli滔滔进驻新服!
- hao123app_android,hao123手机浏览器
- Python 爬虫 面试题
- Google的一个代理网站: 仅限技术搜索
- 【汇编】32位操作系统进程为什么最大可以占用4G内存?
- 判断两个数运算是否越界
- C语言热电阻温度查表,PT100热电阻值与温度对照表
- 华为IoT生态品牌扩大朋友圈,方舟实验室首度亮相...
- Spark shuffle机制演进史及原理说明(sort-based/hash-based/bypassShuffleManager)
- 中科院计算所体系结构国家重点实验室招收实习生