ROS安装问题总结

按照官网安装,遇到问题

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 也一样

  • 5
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 8
    评论
安装ROS之前,您需要根据您所使用的Ubuntu版本选择适当的ROS发行版。根据引用中的建议,如果您使用的是Ubuntu 16.04,建议安装ROS Kinetic Kame;如果您使用的是Ubuntu 18.04,建议安装ROS Melodic Morenia;如果您使用的是Ubuntu 20.04,建议安装ROS Noetic Ninjemys。请注意,不同的ROS版本适用于不同的Ubuntu版本。 在安装ROS之前,您还需要确保Debian包索引是最新的。可以使用以下命令更新Debian包索引: ``` $ sudo apt update ``` 然后,您可以按照引用中的建议,安装ROS桌面完整版。可以使用以下命令进行安装: ``` $ sudo apt install ros-<版本名称>-desktop-full ``` 请将"<版本名称>"替换为您选择的ROS版本的名称,例如"kinetic"、"melodic"或"noetic"。 另外,为了方便使用ROS,您可以安装一些常用的工具和依赖项。可以使用以下命令进行安装: ``` $ sudo apt install python-rosinstall python-rosinstall-generator python-wstool build-essential ``` 这将安装一些常用的Python工具和构建工具,以及用于管理ROS软件包的一些工具。 总结起来,安装Ubuntu上的ROS的基本步骤如下: 1. 更新Debian包索引:`$ sudo apt update` 2. 安装ROS桌面完整版:`$ sudo apt install ros-<版本名称>-desktop-full`(请将"<版本名称>"替换为您选择的ROS版本的名称) 3. 安装常用工具和依赖项:`$ sudo apt install python-rosinstall python-rosinstall-generator python-wstool build-essential` 请确保您按照上述步骤正确安装ROS,并根据您所使用的Ubuntu版本选择适当的ROS版本。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [ROS教程(一):Ubuntu ROS安装详细教程(全过程)+测试程序](https://blog.csdn.net/qq_41940277/article/details/122608977)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [Ubuntu系统安装ROS详细步骤](https://blog.csdn.net/qq_46127597/article/details/124859584)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值