ROS2 的dashing版本
sudo apt update && sudo apt install curl gnupg lsb-release
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64,arm64] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" > /etc/apt/sources.list.d/ros2-latest.list'
sudo apt update
安装 ROS2 Dashing,以桌面完整版
sudo apt install ros-dashing-desktop
配置环境变量,执行
echo "source /opt/ros/dashing/setup.bash" >> ~/.bashrc
source ~/.bashrc
初始化 rosdep(用于安装依赖项)
sudo apt install python3-rosdep
sudo rosdep init
rosdep update