gpt4 book ai didi

python - 如何解决ros-indigo-ubuntu (14.04) 中的 "rospkg.common.ResourceNotFound"?

转载 作者:行者123 更新时间:2023-12-05 07:45:16 25 4
gpt4 key购买 nike

我在用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

最佳答案

实际上您的系统中缺少 python 库,您可以先下载并安装它,然后您就可以运行您的脚本了。

关于python - 如何解决ros-indigo-ubuntu (14.04) 中的 "rospkg.common.ResourceNotFound"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41838219/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com