ros 错误集合

总结学习ros中遇到的一些错误

"cmake" failed

(1)cmake:11(message):
CMake Error at /opt/ros/kinetic/share/catkin/cmake/safe_execute_process.cmake:11 (message):
execute_process(/home/ccl/ros_ws/build/catkin_generated/env_cached.sh
“/usr/bin/python” “/opt/ros/kinetic/share/catkin/cmake/order_paths.py”
“/home/ccl/ros_ws/build/ROS-Academy-for-Beginners/navigation_sim_demo/catkin_generated/ordered_paths.cmake”
“–paths-to-order” “/opt/ros/kinetic/include” “/usr/include”
“/opt/ros/kinetic/share/xmlrpcpp/cmake/…/…/…/include/xmlrpcpp”
“–prefixes” “/home/ccl/ros_ws/devel” “/home/ccl/ros_ws/src”
“/home/ccl/ros_ws/devel” “/home/ccl/ros_ws/src” “/opt/ros/kinetic”)
returned error code 1

删除掉工作空间src里面的一个package后再catkin_make就出现这个错误
解决: pip install catkin_pkg.
You probably need to install other required Python packages like nose. Then remove the build folder, as the Python PATH seems to be cached there rm -rf ./build 再重新catkin_make c

(2) cmake:83(find package)
安装缺的包可以解决
rosdep install --from-paths src --ignore-src --rosdistro kinetic -y

serialConfig :sudo apt-get install ros-kinetic-serial

gazebo加载缓慢或不能加载

https://blog.csdn.net/qq_40213457/article/details/81021562
火狐浏览器安装百度云插件
https://addons.mozilla.org/zh-CN/firefox/addon/baidu-pan-exporter/
添加完插件后重启火狐浏览器,再百度网盘下载界面会出现导出下载,点击文本导出,复制文本框内的下载链接,打开一个终端,粘贴回车后(可能要安装aria2)开始下载。下载目录就在链接的开头部分。

sudo chmod 777 目录 可以修改只读文件夹的权限,之后就可以复制文件进去

rospack list | grep ros_ws 找不到包

得重新source ~/ros_ws/devel/setup.bash 后才能找到,尽管已经添加进.bashrc文件,这也可能是之前roscore,提示roscore未安装的原因, 得重新source /opt/ros/kinetic/setup.bash
https://www.jianshu.com/p/c4946024b946
ubuntu下 ~/.bash_profile 环境变量配置是 vim ~/.profile

执行.py 找不到文件

https://blog.csdn.net/AI_Fanatic/article/details/83904929

无法获得锁 /var/lib/apt/lists/lock - open

sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock

因为提示可以automove一些没用到的包,导致一些ros包被删了
cmake时报错
(1)
Could not find a package configuration file provided by “diagnostic_updater” with any of the following names:
diagnostic_updaterConfig.cmake
diagnostic_updater-config.cmake

sudo apt-get install ros-kinetic-diagnostics

(2)Could not find a package configuration file provided by "industrial_msgs"

sudo apt-get install ros-kinetic-industrial-core

(3)Could not find a package configuration file provided by "interactive_markers"

apt-get install ros-kinetic-interactive-markers

(4),居然rviz和moveit都被删了

sudo apt-get install rviz
sudo apt-get install ros-kinetic-moveit

ROS由于公钥更新导致用户apt-get update报错解决办法(下载软件仓库信息失败 检查您的网络连接)

https://blog.csdn.net/asdli/article/details/91978069

  • 3
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值