配置环境:
- sudo apt update
- sudo apt-get install -y vim
- sudo apt-get install -y openssh-server
- sudo locale-gen en_US en_US.UTF-8
- sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
- export LANG=en_US.UTF-8
2 更新软件源:
7. sudo apt update && sudo apt install curl gnupg2 lsb-release
8. curl http://repo.ros2.org/repos.key | sudo apt-key add -
9. sudo sh -c ‘echo “deb http://packages.ros.org/ros2/ubuntu lsb_release -cs
main” > /etc/apt/sources.list.d/ros2-latest.list’
3 ROS2安装:
10. sudo apt update
11. sudo apt install -y ros-foxy-desktop
注:如果安装失败,可尝试切换阿里云或者清华源重试
4 安装必要的工具:
12. sudo apt install python3-argcomplete
-
sudo apt update && sudo apt install -y
build-essential
git
python3-colcon-common-extensions
python3-pip
python3-ro