良心安装教程:ubuntu 16.04 安装ROS-Kinetic 及常见问题处理(详细)
ros官方教程中文:http://wiki.ros.org/cn/ROS/Tutorials
1、之前由于libpng包报错,给删掉了。结果今天学习“动态参数”使用cfg编译时报错:
/usr/bin/ld: warning: libpng16.so.16, needed by /home/xiaoxiong/anaconda3/lib/libfontconfig.so.1, not found
解决办法:用conda安装
conda install libpng
2、编译又报错
Could not find a package configuration file provided by
"interactive_markers" with any of the following names:
interactive_markersConfig.cmake
interactive_markers-config.cmake
解决办法:文件搜索若能搜索到,则修改依赖地址。如果搜索不到这个包,就安装
sudo apt-get install ros-kinetic-interactive-markers
3、 编译报错:
Could not find a package configuration file provided by "pcl_conversions"
with any of the following names:
解决办法:因为后续还会需要导航的功能,所以直接安装导航的所有包
sudo apt-get install ros-kinetic-navigation
4、编译报错:cfg/ chapter10.cfg no permission (类似的)
解决办法:因为文件将由ROS执行,所以需要改变文件的权限。使用chmod命令使文件可由任何用户执行和运行记得进入cfg所在文件夹下执行)
chmod a+x cfg/chapter10.cfg
E: Failed to fetch http://ppa.launchpad.net/v-launchpad-jochen-sprickerhof-de/pcl/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found [IP: 91.189.95.83 80]
E: Failed to fetch http://packages.ros.org/ros/ubuntu/dists/xenial/main/binary-amd64/Packages Connection failed [IP: 140.211.166.134 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
解决方法:把报错的源删掉
step1、打开软件更新
step 2、 其他软件中,把报错的源删掉
step 3、重新更新
sudo apt-get update
gpg: key AB17C654: "Open Robotics
gpg: Total number processed: 1
gpg: unchanged: 1
解决方法:换一个公钥
E: Unable to locate package ros-kinetic-desktop-full
解决方法:修改软件源为中国的源
step1:打开软件更新
step2:勾上前四个选项,修改源为中国的源(尽量选择离自己最近的机构的源,例如我在江苏选清华的源就不行,选中科大的源就可以)
step3: 更新,若出错参见第一条
sudo apt-get update
step4: 安装相应的版本
sudo apt-get install ros-kinetic-desktop-full
Skip end-of-life distro "groovy"
Skip end-of-life distro "hydro"
Skip end-of-life distro "indigo"
Skip end-of-life distro "jade"
Add distro "kinetic"
ERROR: error loading sources list:
('The read operation timed out',)
解决办法:由于无线网络不好,连接手机热点多试几次
解决办法:删除旧内核
坑一:https://cloud.tencent.com/developer/ask/128041
(注:我按照步骤搞完编译又出现了新的问题:AttributeError: module 'enum' has no attribute 'IntFlag',所以又删了加的那一行)
坑二:https://www.jianshu.com/p/3703725b9a76
(检查python 版本和catkin依赖的Python版本 ,确实不一样,但是它让我安装setuptools,又要安装好多东西!)
https://blog.csdn.net/weixin_42361804/article/details/104442227