Welcome to the ROS2 for Beginners Udemy course Git repository. This repository contains the packages and materials designed to help you learn essential ROS2 concepts and gain hands-on experience in both C++ and Python languages.
The repository contains the following packages:
ros2_essential_cpp
: Covers essential ROS2 concepts and examples using the C++ language.ros2_essential_python
: Explores essential ROS2 concepts and examples using the Python language.ros2_interfaces_cpp
: Provides tutorials on defining and using custom ROS2 interfaces with the C++ language.ros2_motion_cpp
: Offers tutorials on robot motion control using ROS2 and the C++ language.ros2_motion_python
: Presents tutorials on robot motion control using ROS2 and the Python language.ros2_laser_python
: Includes tutorials on working with laser scanners in ROS2 using Python.
Before using the packages provided in this repository, ensure that ROS2 is installed on your system. The ROS2 installation guide offers detailed instructions on how to install ROS2.
Follow these steps to clone the repository and set up the course packages on your local machine:
-
Open a terminal and navigate to the
src
directory of your ROS2 workspace:cd ~/ros2_ws/src
-
Clone this Git repository into the
src
directory:git clone https://github.com/riotu-lab/ros2_course_packages.git
After cloning the repository, you need to configure your workspace:
-
Move the content of the
ros2_course_packages
folder to thesrc
directory:cd ~/ros2_ws/ mv src/ros2_course_packages/* src/
-
Remove the now empty
ros2_course_packages
folder:rm -r src/ros2_course_packages
Your ROS2 workspace is now configured with the course packages.
With the packages set up in your ROS2 workspace, you can now build and run them. Refer to the specific package documentation for instructions on how to build and execute the provided examples.
Remember to source your ROS2 workspace before running any examples:
source ~/ros2_ws/install/setup.bash
To run the examples provided in each package, follow the steps below:
-
Build the packages by navigating to the root of your ROS2 workspace and running the
colcon build
command:cd ~/ros2_ws colcon build
-
Source the installed packages to make them available for use:
source install/setup.bash
-
Execute any example provided in the packages using the
ros2 run
command. For instance, to run thetalker
node from theros2_essential_cpp
package, use the following command:ros2 run ros2_essential_cpp talker
Refer to each package's documentation for specific instructions on how to run its examples.
This repository is maintained by Prof. Anis Koubaa. If you have any questions or suggestions, please feel free to contact us.
Contributions are welcome! If you find any issues with the packages or would like to contribute, please create a new issue or pull request on the GitHub repository.
This project is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
To enroll in the Udemy course, visit ROS2 For Beginners. For discount coupons, check https://www.riotu-lab.org/udemy.php.