ROS初学者—自记
1.下载Ubuntu18.04镜像:(求解官方下载镜像时压缩包,如何解压找到镜像????)
2.安装VMware: 参照视频:https://www.bilibili.com/video/BV1ey4y1j7G3?spm_id_from=333.337.search-card.all.click
https://mp.weixin.qq.com/s?__biz=MzA4MjU4MTg2Ng==&mid=2247488108&idx=2&sn=cebe527c2c576f9f46d918a39f997a5d&chksm=9f82d269a8f55b7faecc917c8fc1cb5384d00b077684adb7122c847bad5843570f6ac39d7da8&scene=21#wechat_redirect
3.把虚拟机改成中文界面:把VMware虚拟机里的Ubuntu 18.04英文界面改成中文界面的方法_Linux教程_云网牛站 (ywnz.com)https://ywnz.com/linuxjc/3744.html—>重启完成配置
4.需要在输入几个命令:跟着视频 https://www.bilibili.com/video/BV1ey4y1j7G3?spm_id_from=333.337.search-card.all.click
5.修改配置问题 https://blog.csdn.net/weixin_43755762/article/details/97913103
6.修改时间 https://blog.csdn.net/David_jiahuan/article/details/103777951
7.ROS安装教程 http://www.autolabor.com.cn/book/ROSTutorials/
注意:
1.当执行到最后 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.
解决:出现报错时查询域名:raw.Githubusercontent.com ᐅ Learn more about Githubusercontent (ipaddress.com)
输入修改命令 $ sudo gedit /etc/hosts 将查询到的ip添加并保存退出
2.执行sudo update —》超时提醒
多次运行后报错 :ERROR: default sources list file already exists:
/etc/ros/rosdep/sources.list.d/20-default.list
Please delete if you wish to re-initialize
解决:参考视频: https://blog.csdn.net/ben_xiao_hai_123/article/details/122105403
8.ROS安装完成后右键没有新建文档的功能
解决:$ cd 模板
$ touch 空白文档
再回到桌面就显示出来了
9.【奥特学园】ROS机器人入门课程《ROS理论与实践》零基础教程_哔哩哔哩_bilibili
参照第十九节开始就ok
参照9教程安装python时运行报错:
解决:文档最前面添加 # coding=utf-8
10.打开gazebo时
报错1:
解决:https://blog.csdn.net/qqliuzhitong/article/details/119356982
报错2:
解决:https://blog.csdn.net/immortal508/article/details/121581633
11.Gazebo缺失模型库解决办法
$ cd ~/.gazebo/
$ mkdir -p models
$ cd ~/.gazebo/models/
$ wget http://file.ncnynl.com/ros/gazebo_models.txt
$ wget -i gazebo_models.txt
$ ls model.tar.g* | xargs -n1 tar xzvf
https://www.csdn.net/tags/NtjaUgwsMzYwMzMtYmxvZwO0O0OO0O0O.html
附件:Gazebo中运行ur5机械臂仿真没有机器人,无法学习机械臂?在Gazebo中进行进行UR机械臂仿真_哔哩哔哩_bilibili