按照官网安装,遇到问题

CMake Error at /opt/ros/kinetic/share/catkin/cmake/safe_execute_process.cmake:11 (message):
execute_process(/home/chenyr/anaconda3/bin/python
“/opt/ros/kinetic/share/catkin/cmake/parse_package_xml.py”
“/opt/ros/kinetic/share/catkin/cmake/…/package.xml”
“/home/chenyr/catkon_ws/build/catkin/catkin_generated/version/package.cmake”)
returned error code 1
Call Stack (most recent call first):
/opt/ros/kinetic/share/catkin/cmake/catkin_package_xml.cmake:74 (safe_execute_process)
/opt/ros/kinetic/share/catkin/cmake/all.cmake:163 (_catkin_package_xml)
/opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:20 (include)
CMakeLists.txt:52 (find_package)

– Configuring incomplete, errors occurred!
See also “/home/chenyr/catkon_ws/build/CMakeFiles/CMakeOutput.log”.
See also “/home/chenyr/catkon_ws/build/CMakeFiles/CMakeError.log”.
Invoking “cmake” failed

解决方法:
pip install -U rosdep rosinstall_generator wstool rosinstall six vcstools
参考:https://blog.csdn.net/yinhuan1649/article/details/82667535?utm_source=blogxgwz8

使用 rosdep install --from-paths src --ignore-src --rosdistro=kinetic -y 安装依赖包

出现错误:
ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies:
slam_sim_demo: No definition of [hector_mapping] for OS [debian]
navigation_sim_demo: No definition of [dwa_local_planner] for OS [debian]
robot_sim_demo: No definition of [yocs_cmd_vel_mux] for OS [debian]

解决方法:
更改命令为:
rosdep install --from-paths src --ignore-src --rosdistro=${ROS_DISTRO} -y --os=ubuntu:xenial

初始化 sudo rosdep init 报错:

ERROR: cannot download default sources list from:
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
Website may be down.

解决:开启代理
rosdep update 也一样

Logo

CSDN联合极客时间,共同打造面向开发者的精品内容学习社区,助力成长!

更多推荐