You Don’t Need a Robot to Learn ROS 2! (Python Nodes Guide)

Time to write our own ROS 2 code. Step by step, following the official ROS 2 Jazzy tutorials on Ubuntu 24.04, we create a workspace, build it with colcon, learn underlay vs overlay, create our first package, and then write a publisher and a subscriber in Python that talk to each other over a topic. No robot needed: everything runs on your laptop.

This is how real robots work too: the wheels, the camera, the arm, each one a small program (a node), all talking through ROS.

ROS 2 Jazzy for Beginners (full series):

– Part 1: ROS 2 for Beginners: What It Is + How to Install ROS 2 Jazzy on Ubuntu 24.04
https://youtu.be/n6nkMt5SonI

– Part 2: The ROS 2 CLI Tools You Need to Know, Getting Started with Turtlesim
https://youtu.be/7DX4m4e_y1c

– Part 3: ROS 2 Parameters, Actions, Launch Files & ros2 bag (CLI Tools Part 2)
https://youtu.be/qmjyuSbiBOw

– Part 4: You Don’t Need a Robot to Learn ROS 2! (Python Nodes Guide)
https://youtu.be/JvFMkYsMqTw

– Part 5: ROS 2 Services in Python: Write Your Own Service & Client
https://youtu.be/A49DuXyPP44

– Part 6: Create Your Own ROS 2 Messages and Services (.msg & .srv) in Python
https://youtu.be/r4u4YPQaeXE

– Part 7: Your First ROS 2 C++ Node: Define and Use a Custom Message in One Package
https://youtu.be/IBoK-aNdv4A

– Part 8: Don’t Hardcode Your Robot! A Guide to ROS 2 Parameters
https://youtu.be/kzMXHhter14

Want to see what you can build with this? Watch my autonomous Arduino Uno Q LiDAR SLAM robot here:
https://youtu.be/0l0LhDwqN9k

⏱️ Chapters
0: 00 Intro: your own nodes in Python
0: 23 What is a workspace?
0: 46 Underlay and overlay
1: 12 Prerequisites
1: 37 Source ROS 2 + create the workspace folder
2: 18 Clone a sample repo (ros_tutorials)
2: 45 Resolve dependencies with rosdep
3: 25 Build with colcon
4: 05 Source the overlay
4: 42 Modify the overlay (MyTurtleSim)
5: 20 What is a ROS 2 package?
6: 03 ros2 pkg create
6: 37 Build and run my_package
7: 07 Fill in package.xml
7: 34 The plan: talker and listener
7: 57 Create py_pubsub + download the publisher
8: 23 Reading the publisher code
9: 09 Dependencies + entry point (setup.py)
9: 49 The subscriber
10: 24 Build and run: two nodes talking
11: 07 Recap + what’s next

🔗 Official pages used in this video
Creating a workspace: https://docs.ros.org/en/jazzy/Tutorials/Beginner-Client-Libraries/Creating-A-Workspace/Creating-A-Workspace.html
Creating a package: https://docs.ros.org/en/jazzy/Tutorials/Beginner-Client-Libraries/Creating-Your-First-ROS2-Package.html
Writing a simple publisher and subscriber (Python): https://docs.ros.org/en/jazzy/Tutorials/Beginner-Client-Libraries/Writing-A-Simple-Py-Publisher-And-Subscriber.html

Previous video: ROS 2 CLI Tools Part 2, parameters, actions, launch files and ros2 bag.
https://youtu.be/qmjyuSbiBOw

Next video: ROS 2 Services in Python: Write Your Own Service & Client | ROS 2 Jazzy for Beginners
https://youtu.be/A49DuXyPP44

If you want more videos on robotics and IoT, subscribe to the channel so you don’t miss the next one. 🤖

#ROS2 #ROS #Robotics #Python #JazzyJalisco #RoboticsForBeginners #IoT