[ROS] Nav2 source code download, compile and run

[ROS] Guo Laoer’s blog post: ROS directory

1. Source code download

1.1 Source code address

https://github.com/ros-planning/navigation2

1.2 Create project directory

ROS2 uses directory results to manage projects, so you need to create a directory structure before downloading:

mkdir -p ~/git/nav2/src

1.3 Download

The default version in git is main. My development environment is Ubuntu 22.04.2 LTS, and the corresponding ROS2 version is humble. Therefore, when downloading the Nav2 source code, you must also download the corresponding version.

cd ~/git/nav2/src
git clone -b humble https://github.com/ros-planning/navigation2.git

1.4 Installation

Guess you like

Origin blog.csdn.net/u010168781/article/details/134408019