ros环境搭建
配置说明¶
硬件要求
- Intel i5 及以上 (i7最佳)
- 8GB 内存及以上 (内存越大越好)
- 60GB 硬盘存储及以上 (固态硬盘最佳)
操作系统要求
Ubuntu 20.04版本 操作系统
ROS版本要求
ROS Noetic版本
开发工具要求
clion
ROS Noetic安装¶
1. 设置镜像源
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
2. 设置keys
sudo apt install curl # if you haven't already installed curl
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
3. 安装Noetic
sudo apt update
sudo apt install ros-noetic-desktop-full
4. 配置环境
echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
5. 安装相关依赖包
sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential
6. 初始化rosdep
sudo rosdep init
rosdep update