Custom Services in ROS2 – Step-by-Step Tutorial (C++ & Python)
🚀 Learn how to create and use custom services in ROS2 in this step-by-step tutorial using both Python 🐍 and C++ 💻!
In this tutorial, we’ll build a simple custom service called DivideIntegers, which divides two integers and returns: the result, a success flag and a descriptive message!
🧠 What you’ll learn
📌 Intro to Services in ROS2 – what they are and when to use them
📦 Create a custom .srv file – structure, fields, and syntax
🛠️ Configure build files – CMakeLists.txt and package.xml made simple
🤖 Python implementation – service server + async client with timer
🧾 C++ implementation – procedural style for beginners, clear and simple
🧪 Run & test everything – verify everything works with practical examples
💾 Source Code
You can find all the code used in this tutorial here:
📁 GitHub Repository → https://github.com/andreaeusebi/ros2_tutorials/tree/main/02_custom_srvs
❤️ Like this content?
If you found this video helpful, give it a 👍, share it with a fellow roboticist 🤖, and subscribe to stay updated with the latest ROS2 tutorials!
Have questions or want to show me your version of the project?
💬 Drop a comment below — I’d love to hear from you!
---
📚 Chapters
TODO
#ROS2 #custom #services #tutorial #c++ #python #robotics
Видео Custom Services in ROS2 – Step-by-Step Tutorial (C++ & Python) канала Robotics Unboxed
In this tutorial, we’ll build a simple custom service called DivideIntegers, which divides two integers and returns: the result, a success flag and a descriptive message!
🧠 What you’ll learn
📌 Intro to Services in ROS2 – what they are and when to use them
📦 Create a custom .srv file – structure, fields, and syntax
🛠️ Configure build files – CMakeLists.txt and package.xml made simple
🤖 Python implementation – service server + async client with timer
🧾 C++ implementation – procedural style for beginners, clear and simple
🧪 Run & test everything – verify everything works with practical examples
💾 Source Code
You can find all the code used in this tutorial here:
📁 GitHub Repository → https://github.com/andreaeusebi/ros2_tutorials/tree/main/02_custom_srvs
❤️ Like this content?
If you found this video helpful, give it a 👍, share it with a fellow roboticist 🤖, and subscribe to stay updated with the latest ROS2 tutorials!
Have questions or want to show me your version of the project?
💬 Drop a comment below — I’d love to hear from you!
---
📚 Chapters
TODO
#ROS2 #custom #services #tutorial #c++ #python #robotics
Видео Custom Services in ROS2 – Step-by-Step Tutorial (C++ & Python) канала Robotics Unboxed
Комментарии отсутствуют
Информация о видео
9 июня 2025 г. 20:00:40
00:14:53
Другие видео канала