Gazebo 仿真环境搭建指南(Ubuntu 22.04)
这里以 Ubuntu 22.04 和 ROS 2 Humble Hawksbill 为例。注意,Ubuntu 22.04 通常推荐使用 ROS 2 Humble。
完整 ROS 2 Humble 安装流程
# 1. 确保系统最新
sudo apt update && sudo apt upgrade -y
apt install software-properties-common curl gnupg lsb-release
add-apt-repository universe
curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key | /usr/share/keyrings/ros-archive-keyring.gpg > /dev/null
| /etc/apt/sources.list.d/ros2.list
apt update
apt install ros-humble-desktop -y
apt install python3-colcon-common-extensions python3-rosdep -y
rosdep init
rosdep update
>> ~/.bashrc
~/.bashrc

