ROS2 Humble Tutorial GitHub: Step-by-Step Guide

Logan Jul 13, 2026

Are you eager to dive into the world of Robot Operating System 2 (ROS2), specifically the Humble Hawksbill distribution, but struggling to find a comprehensive, user-friendly guide? Look no further! This tutorial leverages the power of GitHub to give you a clear, step-by-step journey into understanding and using ROS2 Humble. Let's get started!

Godot 4: Radial blur shader (tutorial)
Godot 4: Radial blur shader (tutorial)

Before we dive in, ensure you have a robust understanding of ROS1, as many concepts transcend into ROS2. Also, familiarize yourself with Linux, as ROS2 Humble operates predominantly on this platform. Let's proceed with setting up your development environment.

Guido Rosso (@guidorosso) on X
Guido Rosso (@guidorosso) on X

Setting Up Your Development Environment

The first step in any ROS2 journey is setting up your development environment. ROS2 Humble requires a 64-bit Ubuntu 20.04 or later version.

Pixel-burn Shader - Godot Shaders
Pixel-burn Shader - Godot Shaders

Once you have your Ubuntu system ready, follow these steps to install ROS2 Humble:

Installing ROS2 Humble via apt

GameHub is one of the best PC gaming apps, but it's now accused of copying
GameHub is one of the best PC gaming apps, but it's now accused of copying

Open a terminal and enter the following commands:

```bash sudo apt update && sudo apt install ros-humble-ros-base -y ```

This command will install ROS2 Humble. Now, initialize `rosdep`, a tool that installs systemdependencies for ROS packages:

Godot 4: Dot transition shader (tutorial)
Godot 4: Dot transition shader (tutorial)

Initialize rosdep

```bash sudo apt update && sudo apt install python3-rosdep -y ```

Finally, initialize and update `rosdep`:

Getting colorized output from Molecule and Ansible on GitHub Actions for CI
Getting colorized output from Molecule and Ansible on GitHub Actions for CI

```bash rosdep init rosdep update ```

Setting Up Your Workspace and Sourcing

Unity vs Unreal Engine 5 for 2D Games: Which Engine is Better for Beginners in 2025?
Unity vs Unreal Engine 5 for 2D Games: Which Engine is Better for Beginners in 2025?
Best GPUs For AI Training & Inference In 2026 - My Top List - Tech Tactician
Best GPUs For AI Training & Inference In 2026 - My Top List - Tech Tactician
the wordpress page with an arrow pointing up to it's image and then click button
the wordpress page with an arrow pointing up to it's image and then click button
The Great Yokai of the Haunted Halls MOD APK
The Great Yokai of the Haunted Halls MOD APK
Godot 4: Wildfire shader (tutorial)
Godot 4: Wildfire shader (tutorial)
32 Claude Code Hacks for Smarter Development : Stop Wasting Tokens
32 Claude Code Hacks for Smarter Development : Stop Wasting Tokens
Plan Your Next Path of Exile Build Using Path of Building (POB)
Plan Your Next Path of Exile Build Using Path of Building (POB)
Getting Started -- Godot 3 Tutorial Series
Getting Started -- Godot 3 Tutorial Series
Flappy Bird Clone Made With Unreal Engine 4
Flappy Bird Clone Made With Unreal Engine 4
Kohya LoRA Training Painfully Slow? - How To Make It Faster! - Tech Tactician
Kohya LoRA Training Painfully Slow? - How To Make It Faster! - Tech Tactician
Best Violence District Script Pack: Survival Auto Farm & Mpan HUB (Keyless) ⚡
Best Violence District Script Pack: Survival Auto Farm & Mpan HUB (Keyless) ⚡
How to fix Guild Wars 2: End of Dragons FPS issues
How to fix Guild Wars 2: End of Dragons FPS issues
I Started Customizing My Steam Deck Controls, and It Was a Literal Game Changer
I Started Customizing My Steam Deck Controls, and It Was a Literal Game Changer
Neverness to Everness: How to Check the Exploration Guide to Increase Hunter Level - Guide to Reaching Hunter Level 14
Neverness to Everness: How to Check the Exploration Guide to Increase Hunter Level - Guide to Reaching Hunter Level 14
She rode the bench [Mario Kart World] #MarioKartWorld #Switch2 #viral #fyp
She rode the bench [Mario Kart World] #MarioKartWorld #Switch2 #viral #fyp
How to turn on Arachnophobia Mode in Grounded?
How to turn on Arachnophobia Mode in Grounded?
an image of a computer screen with the text crazy at 25 / nextordd - bot template
an image of a computer screen with the text crazy at 25 / nextordd - bot template
Real Time AI Voice Changer Client - Free and Open Source Project - Tech Tactician
Real Time AI Voice Changer Client - Free and Open Source Project - Tech Tactician
We have GPTs
We have GPTs
Using Hypernetworks Tutorial Stable Diffusion WebUI - How To - Tech Tactician
Using Hypernetworks Tutorial Stable Diffusion WebUI - How To - Tech Tactician

Now that you've installed ROS2 Humble, let's set up your workspace and source your environment:

Creating a ROS2 Workspace

Navigate to your home directory and create a new workspace:

```bash cd ~ mkdir -p ~/ros2/humble/src ```

Let's source our environment:

Sourcing Your Workspace

```bash source /opt/ros/humble/setup.bash ```

Now, your ROS2 Humble workspace is set up, and you're ready to start developing!

Version Control with GitHub

-Georges, Pull, and Clone commands, oh my! GitHub is a vital tool for ROS2 developers. Let's explore how to use GitHub with ROS2.

.github** Initialization in your Workspace

Initialize Git in your workspace:

```bash cd ~/ros2/humble/src git init ```

Add, commit, and push your changes to your GitHub repository:

Pushing Changes to GitHub

```bash git add . git commit -m "Initial commit" git remote add origin git push -u origin main ```

Building and Sourcing Your Workspace

With your workspace now under version control, let's discuss how to build and source it:

Building Your Workspace

```bash colcon build --symlink-install ```

This command will build your workspace and install dependencies symmetrically.

Sourcing Your Workspace

```bash source install/setup.bash ```

Your workspace is now built, sourced, and ready for action!

Congratulations! You've successfully set up your ROS2 Humble development environment and linked it with GitHub. Happy coding, and may your ROS2 adventures be fruitful and enjoyable!