roslaunch报错

这篇博客主要讨论了在尝试运行ROS(Robot Operating System)程序时遇到的启动错误。问题源于CMakeList.txt和package.xml文件为空,导致roslaunch无法解析必要的资源路径,从而引发了Python解析XML时的错误。解决方法包括检查并确保这些配置文件含有正确的内容。
摘要由CSDN通过智能技术生成

Traceback (most recent call last):
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/__init__.py", line 227, in main
    args = rlutil.resolve_launch_arguments(args)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/rlutil.py", line 92, in resolve_launch_arguments
    resolved = roslib.packages.find_resource(args[0], args[1])
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslib/packages.py", line 499, in find_resource
    pkg_path = rospack.get_path(pkg)
  File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 205, in get_path
    self._update_location_cache()
  File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 188, in _update_location_cache
    list_by_path(self._manifest_name, path, cache)
  File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 71, in list_by_path
    root = ElementTree(None, os.path.join(d, PACKAGE_FILE))
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 611, in __init__
    self.parse(file)
  File "<string>", line 38, in parse
ParseError: no element found: line 1, column 0

原因:CMakeList.txt文件以及package文件为空

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值