ROS2 Publisher and Subscriber Nodes from Scratch in Python

Added:

Workspace Setup
Package Creation
Publisher Script
Package Config
Subscriber Script
Build & Run

Workspace Setup

2:01
Playing Section
  • 1

    Source ROS 2 environment to create underlay for workspace development.

  • 2

    Create workspace and source folders for organizing package files.

  • 3

    Run colcon build to generate build, install, and log folders.

Basic Python programming, including object-oriented programming (OOP) concepts like classes, inheritance, and imports.
Familiarity with the Linux terminal (Ubuntu) and basic command-line operations such as directory navigation, file editing, and sourcing scripts.
Fundamental ROS2 concepts, specifically the Colcon build system, workspace structure, and the role of packages.
Theoretical understanding of the Publish-Subscribe messaging paradigm, including the roles of publishers, subscribers, topics, and message types.
Designing and using custom ROS2 interfaces by defining custom message (.msg) and service (.srv) types.
Implementing ROS2 Services (Client/Service architecture) for request-response communication and Actions for long-running, feedback-enabled goals.
Writing Python-based ROS2 Launch files to configure, parameterize, and execute multiple nodes simultaneously.
Using ROS2 Parameters to dynamically configure node behavior at runtime and managing node lifecycles.
Integrating your custom publisher/subscriber nodes with visualization tools like RViz2 and robotics simulators like Gazebo.
6.8K views241likes26:15@aleksandarhaberOriginal Release: 2023-12-13

This tutorial demonstrates how to create ROS 2 publisher and subscriber nodes from scratch in Python on Ubuntu Linux, covering workspace creation, package development, node implementation using rclpy library, and proper execution of nodes through the ROS 2 command-line interface.