前言
由于之前装过Ubuntu16.04的ROS系统,所以对ros的安装还是有点熟悉,今天又装了18.04的,那就把装的过程记录以下,方便以后查看。
首先前面的步骤:1、设置软件源 ? 2、设置最新的密钥?? 3、安装
参考这篇博客:https://blog.csdn.net/qq_41450811/article/details/99079041?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522162717838816780264067205%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=162717838816780264067205&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-2-99079041.pc_search_result_before_js&utm_term=ubuntu18.04%E5%AE%89%E8%A3%85ros&spm=1018.2226.3001.4187
步骤4、初始化rosdep
1、sudo rosdep init
会有报错,我这边是python版本问题,一直用的是python3,所以会报错,安装ros要切换到python2版本,详情参考这篇博客:
https://blog.csdn.net/moX980/article/details/110316752?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522162718732616780265469930%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=162718732616780265469930&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~first_rank_v2~rank_v29-1-110316752.pc_search_result_before_js&utm_term=pkg_resources.DistributionNotFound%3A+The+%27rosdep%3D%3D0.21.0%27+distribution+was+not+found+and+is+required+by+the+application&spm=1018.2226.3001.4187
2、rosdep update
这一步会链接到墙外,有梯子的话可以成功,或者用Qv2ray,很多帖子说多试几次,或者切换手机热点,有线换成无线wifi(同门试了三天才解决这一步!!!)
步骤5、安装rosinstall(参考以上的第一篇博客)
步骤6、添加ros环境变量 (参考下面这篇博客)
https://blog.csdn.net/qq_44830040/article/details/106049992?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522162717838816780264067205%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=162717838816780264067205&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-106049992.pc_search_result_before_js&utm_term=ubuntu18.04%E5%AE%89%E8%A3%85ros&spm=1018.2226.3001.4187
步骤7、为了构建和管理开发者自己的ROS工作空间,还需安装rosinstall
https://blog.csdn.net/qq_44830040/article/details/106049992?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522162717838816780264067205%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=162717838816780264067205&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-106049992.pc_search_result_before_js&utm_term=ubuntu18.04%E5%AE%89%E8%A3%85ros&spm=1018.2226.3001.4187
启动运行小海龟例子
(网上有很多,详细的就罗列了)
|