This is the code repository for ROS 2 from Scratch, published by Packt.
Get started with ROS 2 and create robotics applications with Python and C++
Learning Robot Operating System (ROS) can be hard as online resources for creating new software for robots are rare, not well organized, and not targeted toward beginners. This book teaches you all basics you need to create your own ROS 2 apps.
This book covers the following exciting features:
- Understand what ROS 2 is, when to use it, and how to use it
- Write ROS 2 programs using nodes, topics, services, actions, and custom interfaces
- Scale your application with parameters and launch files
- Get a complete overview of how TFs work for any ROS-powered robot
- Create a robot model (with URDF) and visualize TFs on RViz
- Adapt the URDF to spawn and control your robot in the Gazebo simulator
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, ch11.
The code will look like the following:
#!/usr/bin/env python3
import rclpy
from rclpy.node import Node
Following is what you need for this book: This book is for engineers, researchers, teachers, students, and hobbyists eager to learn ROS 2 from scratch and build real-world robotics applications efficiently. If you’re struggling to get started with ROS 2 or find existing tutorials overwhelming, then this book is for you. This book teaches you all the basics you need to create your own ROS 2 apps, without prior ROS knowledge. Basic Linux command line and Python programming skills (C++ optional for following the C++ code examples) are necessary.
With the following software and hardware list you can run all code files present in the book (Chapter 1-14).
Software required | OS required |
---|---|
ROS 2 Jazzy | Ubuntu 24.04 |
Gazebo Harmonic | Ubuntu 24.04 |
Edouard Renard is a software engineer, entrepreneur, and robotics teacher. In 2016, he cofounded a robotics start-up as CTO, developing and selling an educational 6-axis robotic arm based on Robot Operating System (ROS). Since 2019, he has been teaching robotics programming online. He is the best-selling instructor on Udemy for ROS 2 and has published many additional free tutorials on his website and YouTube channel (Robotics Back-End). He also leads offline workshops for professionals in Singapore and the US. His teaching philosophy is as follows: step by step, practical, and to the point.