解决‘.../rqt_virtual_joy/plugin.xml‘ has no Root Element问题
问题描述
在使用rqt组件时,在终端输入rqt,往往会报下面的错误
Skipped loading plugin with error: XML Document ‘/opt/ros/melodic/share/rqt_virtual_joy/plugin.xml’ has no Root Element. This likely means the XML is malformed or missing…
解决方案
先进入‘/opt/ros/melodic/share/rqt_virtual_joy/文件夹
cd /opt/ros/melodic/share/rqt_virtual_joy/
然后ls查看有没有plugin.xml文件,有的话直接打开,没有的话新建一个plugin.xml文件,复制下面代码
<library path="src"><class name="My Plugin" type="rqt_virtual_joy.virtual_joy_module.MyPlugin" base_class_type="rqt_gui_py::Plugin"><description>An example Python GUI plugin to create a great user interface.</description><qtgui><group><label>Robot Tools</label></group><!-- <group><label>Subgroup</label></group> --><label>Virtual Joystick</label><icon type="file">resource/input-gaming.png</icon><statustip>Great user interface to provide real value.</statustip></qtgui></class>
</library>
保存文件,退出,应该可以解决问题
可能遇到的新问题
在修改过plugin.xml文件后,可能遇到UserWarning: icon “/opt/ros/melodic/share/rqt_virtual_joy/resource/input-gaming.png” not found,错误截图如下
解决方案如下:
cd Downloads/
git clone https://github.com/aquahika/rqt_virtual_joystick.git
sudo cp -r ~/Downloads/rqt_virtual_joystick/resource /opt/ros/melodic/share/rqt_virtual_joy/
搞定这些,可以解决问题,亲测有效
参考博客:https://blog.csdn.net/weixin_46658421/article/details/117033344
解决‘.../rqt_virtual_joy/plugin.xml‘ has no Root Element问题相关推荐
- ROS 解决pr2_motor_diagnostic_tool/plugin.xml缺失报错
在终端输入rqt_graph报错. [ERROR] [1637216197.121052293]: Skipped loading plugin with error: XML Document '/ ...
- org.xml.sax.SAXParseException: The markup in the document following the root element must be well-fo
部署项目报错:org.xml.sax.SAXParseException: The markup in the document following the root element must be ...
- Vue在插槽slot时报错:Component template should contain exactly one root element. If you are using v-ifen
Component template should contain exactly one root element. If you are using v-if on multiple elemen ...
- v-for on stateful component root element because it renders multiple elements
v-for on stateful component root element because it renders multiple elements解决 不能直接在组件的根元素直接使用v-for ...
- -Cannot use v-for on stateful component root element because it renders multiple elements
错误信息:Cannot use v-for on stateful component root element because it renders multiple elements 原因:v-f ...
- Component template should contain exactly one root element
在vue中报错: Component template should contain exactly one root element. If you are using v-if on multip ...
- org.xml.sax.SAXException: Invalid element
今天开发项目遇到一个问题,简单记录下,希望能帮到遇到同样问题的同学 我使用Axis1.4开发webservice客户端,客户端代码如下: Service service = new Service() ...
- python 爬虫(七)lxml模块 + lxml数据提取(字符串的xml/html文件--转换--element对象--转换--字符串)调用XPath方法筛选数据 + 案例(扇贝 酷狗 网易云音乐)
爬虫小知识:爬取网站流程 确定网站哪个url是数据的来源. 简要分析一下网站结构,查看数据一般放在哪里. 查看是否有分页,解决分页的问题. 发送请求,查看response.text里面是否有我们想要的 ...
- 报错should contain exactly one root element. if you are using v-if on multiple elements
标题写不下了 报错内容是should contain exactly one root element. if you are using v-if on multiple elements, use ...
最新文章
- 刘道成mysql视频教程_燕十八刘道成Mysql 系列视频教程 Mysql视频教程打包下载
- 11.21 if条件语句 年月日执行判断
- 不同长度数据项的排序
- 投篮机投篮有技巧吗_卡梅伦·约翰逊:投篮高效,跑位积极,会是太阳队外线新答案吗?...
- linux账户管理代码和截图,linux 用户管理(示例代码)
- HTTP协议详细介绍~超详细
- 解决父类加载iframe,src参数过大导致加载失败
- 俄罗斯地名 中文 英文 俄文
- Redis6.2.6下载和安装
- wireshark读写pcap文件_使用wireshark分析tcpdump出来的pcap文件
- SiamRPN代码分析:test
- 最全的人力资源行业精美报表模板,免费下载啦
- Java文件导入 project .mpp文件解析导入 并通过父子级关系或WBS码构造层级关系
- EMCP 物联网云平台萤石云密钥功能使用手册
- Java的三大特性之封装、继承、多态-----最简理解
- 华为云快成长直播间大数据AI专场,加速经济物联网智能化提升
- 数字华容道有解的条件
- Ubuntu 各特色版已同意停止使用 Flatpak 作为其操作系统的默认打包系统
- 关于在电脑室腐败所作出的检讨
- Vue.js学习笔记—input-number:实战:开发一个数字输入框组件