如何解决 ros-indigo-ubuntu (14.04) 中的“rospkg.common.ResourceNotFound”?
Posted
技术标签:
【中文标题】如何解决 ros-indigo-ubuntu (14.04) 中的“rospkg.common.ResourceNotFound”?【英文标题】:How to solve "rospkg.common.ResourceNotFound" in ros-indigo-ubuntu (14.04)? 【发布时间】:2017-01-24 20:17:43 【问题描述】:我正在使用 ros 做人脸检测机器人。我在运行人脸检测节点时遇到问题,并收到以下错误:
arun@arun-Aspire-V5-121:~$ source /usr/share/setup.launch
arun@arun-Aspire-V5-121:~$ source ./ws1/devel/setup.bash
arun@arun-Aspire-V5-121:~$ rosrun exp2 face.py
Traceback (most recent call last):
File "/home/arun/ws1/src/exp2/scripts/face.py", line 4, in <module>
roslib.load_manifest('rosopencv')
File "/opt/ros/indigo/lib/python2.7/dist-packages/roslib/launcher.py", line 62, in load_manifest
sys.path = _generate_python_path(package_name, _rospack) + sys.path
File "/opt/ros/indigo/lib/python2.7/dist-packages/roslib/launcher.py", line 93, in _generate_python_path
m = rospack.get_manifest(pkg)
File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 164, in get_manifest
return self._load_manifest(name)
File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 208, in _load_manifest
retval = self._manifests[name] = parse_manifest_file(self.get_path(name), self._manifest_name, rospack=self)
File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 200, in get_path
raise ResourceNotFound(name, ros_paths=self._ros_paths)
rospkg.common.ResourceNotFound: rosopencv
ROS path [0]=/opt/ros/indigo/share/ros
ROS path [1]=/home/arun/ws1/src
ROS path [2]=/opt/ros/indigo/share
ROS path [3]=/opt/ros/indigo/stacks
【问题讨论】:
rospkg.common.ResourceNotFound: rosopencv
不言自明
【参考方案1】:
实际上,您的系统中缺少 python 库,您可以先下载并安装它,然后才能运行您的脚本。
【讨论】:
以上是关于如何解决 ros-indigo-ubuntu (14.04) 中的“rospkg.common.ResourceNotFound”?的主要内容,如果未能解决你的问题,请参考以下文章