1.下载Ubuntu 时,去国内镜像源下载速度可提快
2.安装时,参考
https://blog.csdn.net/CH_monsy/article/details/107346203?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param
3.但是到第四步时可能报错:
sudo: rosdep:找不到命令
执行sudo apt install rospack-tools
再次执行
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.
报错原因是GitHub的raw.githubusercontent.com无法连接
需要解决GitHub的raw.githubusercontent.com无法连接问题
通过IPAddress.com首页,输入raw.githubusercontent.com查询到真实IP地址
修改hosts Ubuntu,
sudo gedit /etc/hosts (为什么不使用vi打开,vi打开进入编辑模式时,不能正确输入)
添加以下内容保存即可
199.232.28.133 raw.githubusercontent.com 然后保存,关闭文件
然后输入sudo rosdep init就可以了
4.使用roscore测试时,报错:
“Command ‘roscore‘ not found, but can be installed with: sudo apt install python-roslaunch“
执行sudo apt-get install ros-melodic-desktop
source ~/.bashrc
5.再次执行roscore
6.以下顺序按链接中的步骤执行