
In this lecture, I present an overview of the course and its objectives.
We would like to emphasize that this Udemy course on ROS2 has been continuously updated to keep up with the latest developments in the field. The course was initially developed for the early version of bouncy, making it the first ROS2 course on Udemy, and has since been updated to the latest stable ROS2 version, Humble.
Although we have kept some legacy lectures that are still relevant, we are constantly updating all course content to ensure it remains up-to-date. It is possible that some videos may refer to older versions of ROS2, but the content should still be applicable to the latest version being used in this course.
ROS2 is updated with new releases every six months, but we want to assure our students that our course content is always relevant and applicable to the latest stable release unless otherwise specified. We are committed to providing our students with the most current and valuable learning experience possible.
Join us on this exciting journey into the world of ROS2, and rest assured that our course content is always up-to-date and applicable to the latest stable release. Let's get started today!
Explore the fundamentals of ros2 foxy-humble for beginners, covering basics, motion concepts, and lasers in a clear section overview.
When you want to install ROS, you need to check two main things:
The supported platforms (machine/OS)
The latest releases
I will present the installation consideration in this lecture.
Learn to install ros2 humble on Ubuntu 22.04, create and configure a workspace, source the setup script, and troubleshoot common installation issues while exploring basic commands.
Install a virtual machine with Ubuntu 20.04 to run ROS2 Foxy. Allocate at least four CPUs and sufficient RAM, and download the desktop image via VMware Fusion.
Install ROS2 Foxy on Ubuntu 20.04 by configuring UTF-8 locale, adding the ROS repository and GPG key, then install the desktop and test with talker and listener nodes.
learn how to install the ros1_bridge to enable message exchange between ros1 and ros2, requiring both ros1 and ros2 on the same machine, with step-by-step commands and verification.
Trace the history of ROS2 from its 2014 ROSCon debut to the Bouncy release, highlighting its switch to data distribution service middleware and DDS security.
Explore ros2 design goals to address ros1 limits like single-robot use and real-time gaps. Highlight multi-robot support, fault tolerance, quality of service profiles, cross-platform compatibility, and rds for embedded systems.
Explore the data distribution service, a data-centric publish-subscribe standard enabling real-time, distributed machine-to-machine communication with quality of service, security, and interoperable discovery and transport.
Discover how ROS 2 adopts a DDS-based middleware and eliminates the ROS master. Compare ROS 1's centralized design with ROS 2's distributed architecture.
Compare ros1 and ros2 across platform support, languages, serialization, discovery, and build systems, highlighting c++11/14, python 3, deeds, and python-based launch.
Learn to create a ros2 overlay workspace with the Qualcomm build system, understand the install, build, and log directories, and configure setup and local setup scripts.
Create a ros2 c++ package within a workspace, specify build type, add dependencies like std_msgs, geometry_msgs, and rclcpp, and configure cmakelists.txt and package.xml for compilation and execution.
The creation of ROS2 package in python has changed in ROS2 Foxy and the next lecture will be updated soon.
With Bouncy the creation was done manual, and with Foxy it was automated.
Build a C++ ROS2 package containing a talker node, configure package.xml and CMakeLists.txt, install the executable, and run it with ros2 run.
Learn to run the turtle sim in ROS 2 Foxy, start the simulator, teleoperate with the turtle teleop key, and monitor velocity messages via topic echo turtle1/cmd.
Explore the ros2 computation graph in action, comparing ros1 and ros2 communication via topics, services, and actions, and observe the turtle sim node interactions, topics, services, and an action server.
Show how to inspect ros2 message contents using the rust two interface show command, revealing twist and vector three messages with linear and angular velocity fields.
Explore ROS 2 node information for turtlesim by listing nodes, inspecting the teleop and turtlesim nodes, and reviewing publishers, subscribers, and services.
Explore the RCT tool in ROS2 Foxy to spawn turtles in TurtleSim, call services, and modify pen color and thickness via set pen, with teleop control.
Explore ros2 topics and learn to publish and subscribe using python three and c plus plus 11 to build publishers and subscribers node.
Learn to create publishers and subscribers in ROS2 using C++ and Python, guided by sample code from the ROS2 git repository that demonstrates topics and services.
Explore the old school ros2 publisher in python, using rclpy, a timer to keep publishing messages. Compare node-based publishers with the ros1 style and understand deeds data distribution service.
Explore three ros 2 publisher approaches in python: a local function timer callback and an object oriented class, publishing hello world at 0.5 second intervals with node creation and shutdown.
Explore writing ros2 subscribers with python in three styles - old-school, object-oriented, and lambda - covering node initialization, topic subscription, and callback handling.
Learn to create a not composable ROS 2 C++ publisher, compare with ROS 1, using rclcpp and std_msgs/string to publish simple messages.
Learn to implement ROS2 publishers in C++ using object-oriented and lambda expression approaches, publishing a Hello world string with a timer to demonstrate composable nodes.
Explore ROS2 C++ subscribers through not composable, object-oriented, and lambda approaches, using topic names, callbacks, and create_subscription to handle messages.
publish and subscribe in ROS 2 by selecting a topic name and string messages, using a five-step workflow and a callback to process data in time on the chatter topic.
Learn to build a python ros2 publisher from scratch by creating a package, writing a talker node with rclpy, and publishing a string message on chatter at a defined rate.
Write a ROS2 Python subscriber from scratch, creating listener dot pi that subscribes to the chatter topic, defines listen_callback to print message data, and outlines dependencies.
Write a high-level guide to building a C++ publisher and subscriber in ROS2, configuring the package, dependencies, and CMakeLists, then run and debug topics.
Define a ros2 service file to specify the request and response formats. Create the service folder and rectangle area service, update build files, and verify with ros2 service commands.
Clone the ROS2 demos package from GitHub into your overlay workspace to explore C++ and Python services, including mono cpp and mono python, in Visual Studio Code.
Create a ros2 python service by building a server and client for the add_two service, using example interfaces and rclpy to return the sum of A and B.
Demonstrate the ros1 bridge linking ros2 and ros1 ecosystems with turtlesim, including sourcing setup.bash, running turtle sim, and teleop, showing bridging enables cross-ecosystem control.
Convert a talker node into a velocity publisher to move a turtle in ros2. Publish twist messages for linear x velocity and angular z velocity, with stop conditions.
Learn how to create a ROS 2 motion package in Python, publish twist messages to control linear and angular velocity, and implement a stopping condition to avoid endless movement.
Explore two stop conditions for ros2 motion: time-based (stop after five seconds) and distance-based (stop when traveled distance reaches a threshold), using velocity, elapsed time, and publishing a stop message.
Analyze and test the move forward method in ROS2, showing how publishing frequency affects travel distance and accuracy, and compare time-based versus position-based distance using Python and C++ examples.
Explore in-place rotation in ROS2 by using angular and linear velocity, signs, and stopping conditions to draw circles, then apply time- and angle-based controls with services.
UPDATE 14 APRIL 2023: ADDING LAUNCH FILES [PYTHON, XML, YAML] WITH ILLUSTRATIONS.
Announcing Major Upgrades to Our Mastering ROS2 Course ?
We are excited to announce that our Mastering ROS2 course has undergone extensive upgrades and has been extended to offer you an even better learning experience! Here's what's new:
Support for the latest ROS2 Humble version: Our course now supports and is fully compatible with the most recent release of ROS2, ensuring that you stay up-to-date with the latest features and improvements.
Detailed ROS2 motion section in Python and C++: We've added comprehensive content on motion control in ROS2, covering both Python and C++ programming languages to cater to various skill sets and preferences.
A Robot Cleaner application in Python: As a practical, hands-on project, you will have the opportunity to develop a robot cleaner application using Python, enabling you to apply the concepts you've learned throughout the course.
Laser Scanner in ROS2: We've introduced a complete section on laser scanners in ROS2, which covers the theory, drivers, recording and replaying data using ROSBAG, and programming in Python.
A GitHub repository with all code examples: To make your learning experience even smoother, we've created a GitHub repository containing all the code examples used in the course. Each example is well-documented and thoroughly explained, allowing you to follow along with ease.
We are confident that these upgrades and extensions will significantly enhance your learning experience and help you master ROS2 more effectively. If you're not enrolled yet, don't miss the chance to join our growing community of robotics enthusiasts!
WHAT IS IT ABOUT?
Attention ROS users! Are you curious about ROS2, the next generation of the popular ROS framework? Do you want to learn how ROS2 can improve and differentiate from ROS1 and whether it's time to migrate to ROS2?
Look no further! Our comprehensive Udemy course has everything you need to know about ROS2, from installation to creating workspaces, packages and writing programs with ROS. Our expert instructors will guide you through the process step-by-step, providing you with the skills and knowledge you need to master this exciting new framework.
Whether you're an experienced ROS user or just getting started in the field of robotics, our course is designed to help you get the most out of ROS2. Don't miss this opportunity to unlock the full potential of ROS2 and take your robotics career to the next level. Join us today!
Are you in the right place?
You are a ROS user, and you have heard about ROS2 as being the next generation ROS, but,
are you still unsure what ROS2 is?
How does it improve on and differ from ROS1?
Is it time to migrate to ROS2?
Is it easy to install ROS2 and get it up and running?
How to create a workspace, a package, and write programs with ROS?
How to make a robot move in space and control its distance?
This course is the right place to address all the questions about ROS2.
ROS2 is the next generation of Robot Operating System (ROS), and the community is migrating to this new framework.
Why do you need to take a ROS2 course now?
ROS1 has emerged since 2009 and has been evolving as the de facto standard Ecosystem for developing all kinds of robotics applications, including mobile robots, robotics arms, unmanned aerial systems and drones, self-driving cars, and much more. At ROSCon 2014 conference, the Open Source Robotics Foundations (OSRF) and the ROS community started to discuss and identify some gaps in ROS1, including (1) a single point of failure with the ROS Master Node, (2) nonsupport of multi-robots systems as ROS1 was designed for a single robot usage, (3) and no support of real-time guarantee or quality of service profiles, and thus its reliability was questionable.
The ROS community has formed several working groups to design and develop the next-generation version of ROS1, which is currently ROS2. Alpha and Beta versions started to show up from August 2015 until September 2017, and the first official ROS2 release, known as Ardent Apalone, was launched. On December 8th, 2017. Despite the release of ROS2, ROS1 was still being used more actively than ROS2 until 2022, and the main reason is that ROS2 has been under continuous development and did not reach the same level of maturity as ROS1. In fact, the ROS2 developers created the ROS1 Bridge package to be able to communicate between ROS1 and ROS2 when ROS1 is needed from missing functionalities in ROS2.
However, things have changed since 2021, when ROS2 has accomplished most of the missing functionalities, including navigation, transformations, and others. It is expected that ROS2 will completely dominate or at least start to dominate ROS1 in 2023. For this reason, learning about ROS2, even if you are an experienced ROS1 developer, is becoming more and more in need to cope with the future changes and transition from ROS1 and ROS2. As a matter of fact, the latest ROS1 version, ROS Noetic, released in May 2020, has an end of life in May 2025, while ROS2 will continue developing.
I provide this course to all ROS users with prior knowledge on ROS1 or even those entirely new to the ROS ecosystem to present the features of ROS2 and how it differs and compares with ROS1.
Course Objectives:
The objectives of this course are as follows:
Unveil the secrets of ROS2
Explain the concepts of ROS2 using a hands-on approach
Clarify the differences between ROS1 and ROS2
Provide comprehensive coverage of the ROS2 ecosystem
Demonstrate how to create a ROS2 workspace and packages using C++ and Python
Discuss in detail the implementation aspects of ROS2 topics, services, messages, and actions
Course Learning Outcomes
At the end of the course, you will be able to:
Install ROS2 on Ubuntu
Recognize the concepts of ROS2 and its ecosystem
Understand the difference between ROS1 and ROS2
Recognize the features of the Data Distribution Service (DDS) used in ROS2
Create ROS2 workspaces and packages
Develop programs with ROS2 (C++ and Python)
Execute applications using ROS2
Practice ROS2 Computation Graph Concepts using Hands-on with Turtlesim
Pre-Requisites
Familiarity or ROS1 basic concepts
Knowledge in C++ and/or Python programming languages
Basic understanding of Linux Ubuntu Operating System
Enroll now!
If you want to be one of the first ROS users to learn ROS2 and be up to date with the next-generation robot operating system framework, which sooner or later, will be fully replacing ROS2, as the ROS developer community is actively pushing towards ROS2, then, do not let time running out and enroll right away in this course to start your ROS2 experience.