下面的操作是基于galactic

代码下载

#安装git和编译工具
sudo apt-get install git python3-vcstool build-essential python3-colcon-common-extensions
mkdir -p turtlebot3_ws/src
cd turtlebot3_ws/#下载turtlebot3代码
git clone https://ghproxy.com/https://github.com/ROBOTIS-GIT/turtlebot3.git src/turtlebot3 -b galactic-devel
git clone https://ghproxy.com/https://github.com/ROBOTIS-GIT/turtlebot3_msgs.git src/turtlebot3_msgs -b galactic-devel
git clone https://ghproxy.com/https://github.com/ROBOTIS-GIT/turtlebot3_simulations.git src/turtlebot3_simulations -b galactic-devel#下载navigation2
git clone https://ghproxy.com/https://github.com/ros-planning/navigation2.git src/navigation2 -b galactic
git clone https://ghproxy.com/https://github.com/ros-planning/navigation2_tutorials.git src/navigation2_tutorials -b master#下载teb_local_planner
git clone https://ghproxy.com/https://github.com/rst-tu-dortmund/costmap_converter.git src/costmap_converter -b ros2
git clone https://ghproxy.com/https://github.com/rst-tu-dortmund/teb_local_planner.git src/teb_local_planner -b ros2-master

注意:链接中的https://ghproxy.com/ 为使用代理下载github代码。

可选使用vcs工具下载源码:

安装vcs

sudo apt-get install python3-vcstool

在turtlebot3_ws目录下新建tmp.repos 。复制下面的内容到该文件并保存。

repositories:costmap_converter:type: giturl: https://ghproxy.com/https://github.com/rst-tu-dortmund/costmap_converter.gitversion: ros2navigation2:type: giturl: https://ghproxy.com/https://github.com/ros-planning/navigation2.gitversion: galacticnavigation2_tutorials:type: giturl: https://ghproxy.com/https://github.com/ros-planning/navigation2_tutorials.gitversion: masterteb_local_planner:type: giturl: https://ghproxy.com/https://github.com/rst-tu-dortmund/teb_local_planner.gitversion: ros2-masterturtlebot3:type: giturl: https://ghproxy.com/https://github.com/ROBOTIS-GIT/turtlebot3.gitversion: galactic-develturtlebot3_msgs:type: giturl: https://ghproxy.com/https://github.com/ROBOTIS-GIT/turtlebot3_msgs.gitversion: galactic-develturtlebot3_simulations:type: giturl: https://ghproxy.com/https://github.com/ROBOTIS-GIT/turtlebot3_simulations.gitversion: galactic-devel

turtlebot3_ws目录下运行

vcs import src < tmp.repos

解决依赖

注意:rosdepc是通过小鱼的一键安装工具安装的。

rosdepc updaterosdep install --from-paths src --ignore-src --rosdistro galactic -yr

编译

在turtlebot3_ws目录下source编译好的程序

colcon build --symlink-install
source install/setup.bash

觉得有用就点赞吧!

我是首飞,一个帮大家填坑的机器人开发攻城狮。

另外在公众号《首飞》内回复“机器人”获取精心推荐的C/C++,Python,Docker,Qt,ROS1/2等机器人行业常用技术资料。

[ROS2]下载Navigation2源码来学习相关推荐

  1. Arndale Octa开发板下载android源码

    Arndale是由insignal公司开发制作的一款开发板,用了三星目前最先进的SoC Exynos5420,搭载了3GB的RAM,4G EMMC(这个有点坑),AX88796 10/100M网卡(略 ...

  2. java毕业生设计学习资源下载管理计算机源码+系统+mysql+调试部署+lw

    java毕业生设计学习资源下载管理计算机源码+系统+mysql+调试部署+lw java毕业生设计学习资源下载管理计算机源码+系统+mysql+调试部署+lw 本源码技术栈: 项目架构:B/S架构 开 ...

  3. 【Linux/Ubuntu学习6】unbuntu 下载android源码

    在Windows下安装Cygwin,通过Cygwin也可在Windows里通过本文的下载步骤下载Android源码. 以下为在Ubuntu下下载Google Android4.4源码的步骤: 1. 安 ...

  4. 什么是U-Boot以及如何下载U-Boot源码

    参考:什么是U-Boot以及如何下载U-Boot源码? 作者:一只青木呀 发布时间: 2020-10-20 11:05:59 网址:https://blog.csdn.net/weixin_45309 ...

  5. linux应用程序逆向,Linux下查看并下载命令源码包(根据命令/应用程序逆向获取并且安装其所属源码包)...

    使用linux的过程中,我们会熟悉各种命令,偶尔我们不禁会问,这些命令是怎么实现的,学习他们其实是学习linux高级系统编程很快捷的方法. 这些命令的源码肯定是存放在相应的包里面,但是是哪些包呢? 发 ...

  6. linux access源码,从零开始学习Linux:Day04 源码安装Nginx 。acess/status/referer

    从零开始学习Linux:Day04 源码安装Nginx .acess/status/referer 常见web服务器有IIS,apche,nginx,tomcat,tengine等等,现在nginx使 ...

  7. linux下下载openwrt源码,OpenWrt下载编译

    不想啰嗦直接肝,依次执行: git clone git://github.com/openwrt/openwrt.git cd openwrt ./scripts/feeds update -a ./ ...

  8. WeChat苹果多开系统官网下载页源码

    WeChat苹果多开系统官网下载页源码 学习资料文件:导航源.zip - 蓝奏云

  9. python爬虫05 - BeautifulSoup4的安装,下载,源码简介,使用。

    1. bs4简介 1.1 基本概念 Beautiful Soup 是一个可以从HTML或XML文件中提取数据的网页信息提取库 1.2 源码分析 • github下载源码 • 安装 • pip inst ...

最新文章

  1. [JAVA EE] 内联用法
  2. Emacs之slime环境配置
  3. 关于HashCode方法,可变对象和内存泄漏问题
  4. Spring Cloud【Finchley】-18 Zuul过滤器
  5. java中几种基本数据类型之间的转换
  6. linux wifi pro6818,GEC6818连接Ubuntu,下载程序至开发板
  7. 白领体检异常率连年走高,这5本书教你怎样科学养生
  8. matlab在电力系统潮流计算程序,大神们,求个电力系统潮流计算的matlab程序。
  9. 弹性地基梁板实用计算_桥梁工程基础处理、支架搭设、预压方案及计算书
  10. WebWorker和Server-Sent Events和HTML5 WebSocket
  11. 数据库上机练习-1-建表
  12. Linux中VI / VIM 常用操作练习
  13. 【Love2d从青铜到王者】第十二篇:Love2d之碰撞检测(Detecting collision)
  14. 第一章 核磁共振的物理学基础
  15. 互联网人年底加薪指南
  16. php唤起微信打开网址,点击链接打开微信再跳转到微信内部浏览器的解决方案
  17. 什么是Banner图?
  18. python批量下载txt图片批量导入到ppt
  19. 小米等手机企业不再搭载充电头,或许是看上了其中丰厚的利润
  20. 豆瓣网技术架构发展历程

热门文章

  1. 一千多的投影仪能用吗?哈趣、小明性价比超高的卧室投影仪
  2. 腾讯云微搭低代码餐饮小程序实例
  3. TI官网的WEBENCH的使用
  4. 在无边界时代,如何确保“网络边界”安全?
  5. OMAPL138EZWTA3E 德州仪器TI 数字信号处理器
  6. GoogleSEO工作基本原理是什么?
  7. 微信中下载APP,页面跳转提示信息的实现
  8. 劳务合同和劳务派遣合同有何区别
  9. 自增,自减,前加加和后加加的区别
  10. IDEA中pox.xml文件添加依赖爆红了