如何修复ros-indigo-ubuntu(14.04)中的编码错误?

时间:2017-01-24 20:17:43

标签: python ros catkin

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

1 个答案:

答案 0 :(得分:0)

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