Installing ROS 2 Humble on a Raspberry Pi 3 running Ubuntu 22.04 involves several steps, primarily through the use of apt package manager for binary installation.
1. Prepare your System:
- Install Ubuntu 22.04 (64-bit) on your Raspberry Pi 3. Ensure it's the 64-bit version for optimal ROS 2 support (Tier 1).
- Set your locale: Verify that your locale supports UTF-8. If not, set it using commands like:
Update and upgrade packages.
Install essential tools.
2. Add ROS 2 Repository:
Enable Ubuntu Universe repository.
Add the ROS 2 GPG key.
- Add the ROS 2 repository to your sources list:
3. Install ROS 2 Humble:
Update your package list again.
- Install ROS 2 Humble Desktop (recommended for GUI) or ROS-Base (bare bones):
4. Environment Setup:
- Source the ROS 2 setup script: To make ROS 2 commands available in your terminal, add this to your
~/.bashrcfile:
5. (Optional) Install additional packages:
Install colcon build tools and rosdep.
Install CycloneDDS (alternative RMW).
- Set default RMW (e.g., to CycloneDDS):
After these steps, you should have ROS 2 Humble installed and configured on your Raspberry Pi 3 running Ubuntu 22.04. You can then test it by running some basic ROS 2 commands, such as
ros2 topic list.
沒有留言:
張貼留言