<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>ROS2 on BadproG</title>
    <link>https://www.badprog.com/ros2/</link>
    <description>Recent content in ROS2 on BadproG</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 28 May 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.badprog.com/ros2/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>ROS2 - Humble - Action in action with Python</title>
      <link>https://www.badprog.com/ros2-humble-action-in-action-with-python/</link>
      <pubDate>Thu, 28 May 2026 00:00:00 +0000</pubDate>
      <guid>https://www.badprog.com/ros2-humble-action-in-action-with-python/</guid>
      <description>&lt;p&gt;Ever wanted to control a satellite without leaving your comfortable Linux terminal?&lt;/p&gt;
&lt;p&gt;Today is your lucky day.&lt;/p&gt;
&lt;p&gt;Welcome to this cosmic guide where we are going to build a fully automated &lt;strong&gt;ROS2 Action&lt;/strong&gt; server and client in &lt;strong&gt;Python&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Grab your coffee, open your IDE, and let&amp;rsquo;s launch this code into the stratosphere.&lt;/p&gt;
&lt;h2 id=&#34;shopping-list&#34;&gt;Shopping list&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;The Github with the full code for this tutorial:
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/badprog/badprog-ros2-humble-action-in-action-with-python&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://github.com/badprog/badprog-ros2-humble-action-in-action-with-python&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;IDE:
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;VSCode&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Framework:
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Robot Operating System 2&lt;/strong&gt; (AKA &lt;strong&gt;ROS2&lt;/strong&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;lets-code-a-bit&#34;&gt;Let&amp;rsquo;s code a bit&lt;/h2&gt;
&lt;p&gt;To keep our codebase clean and modular, we split our system into 4 distinct files:&lt;/p&gt;</description>
    </item>
    <item>
      <title>ROS2 - Humble - Basics with Node, Topic and Service in Python</title>
      <link>https://www.badprog.com/ros2-humble-basics-with-node-topic-and-service-in-python/</link>
      <pubDate>Sun, 19 Apr 2026 00:00:00 +0000</pubDate>
      <guid>https://www.badprog.com/ros2-humble-basics-with-node-topic-and-service-in-python/</guid>
      <description>&lt;p&gt;We are going to walk through the essential building blocks of &lt;strong&gt;ROS2&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Rather than building a complex industrial system, we are using a battery simulator as a clear and practical example to master the three fundamental elements of robotic communication: &lt;strong&gt;Nodes&lt;/strong&gt;, &lt;strong&gt;Topics&lt;/strong&gt;, and &lt;strong&gt;Services&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Let&amp;rsquo;s get started.&lt;/p&gt;
&lt;h2 id=&#34;shopping-list&#34;&gt;Shopping list&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;The GitHub of this tutorial:
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/badprog/badprog-ros2-humble-basics-with-node-topic-and-service-in-python.git&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://github.com/badprog/badprog-ros2-humble-basics-with-node-topic-and-service-in-python.git&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;VSCode:
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://code.visualstudio.com/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://code.visualstudio.com/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;the-three-pillars-of-ros-2&#34;&gt;The Three Pillars of ROS 2&lt;/h2&gt;
&lt;p&gt;Before looking at the code, we must understand these three components, as they are the core of any &lt;strong&gt;ROS2&lt;/strong&gt; application:&lt;/p&gt;</description>
    </item>
    <item>
      <title>ROS2 - Humble - Starter kit</title>
      <link>https://www.badprog.com/ros2-humble-starter-kit/</link>
      <pubDate>Mon, 13 Apr 2026 00:00:00 +0000</pubDate>
      <guid>https://www.badprog.com/ros2-humble-starter-kit/</guid>
      <description>&lt;p&gt;Every project has to start from somewhere.&lt;/p&gt;
&lt;p&gt;In this tutorial, we are going to see the minimal template to start any &lt;strong&gt;ROS 2 Humble&lt;/strong&gt; projects with style and stability.&lt;/p&gt;
&lt;p&gt;For that goal we’re going to use &lt;strong&gt;GitHub Actions&lt;/strong&gt; to automatically stress-test the &lt;strong&gt;Dockerfile&lt;/strong&gt; and &lt;strong&gt;devcontainer.json&lt;/strong&gt; files.&lt;/p&gt;
&lt;p&gt;Basically, we’re making sure your dev environment is always ready to roll before you even type your first node.&lt;/p&gt;
&lt;h2 id=&#34;shopping-list&#34;&gt;Shopping list&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;Github&lt;/strong&gt; of this tutorial: &lt;a href=&#34;https://github.com/badprog/badprog-ros2-humble-starter-kit&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://github.com/badprog/badprog-ros2-humble-starter-kit&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;VSCode&lt;/strong&gt;: &lt;a href=&#34;https://code.visualstudio.com/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://code.visualstudio.com/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;1-the-dockerfile&#34;&gt;1. The Dockerfile&lt;/h2&gt;
&lt;p&gt;Think of your &lt;strong&gt;Dockerfile&lt;/strong&gt; as the DNA of your project.&lt;/p&gt;</description>
    </item>
    <item>
      <title>ROS2 - micro-ROS - Publisher, subscriber, node, topic with STM32 and Python</title>
      <link>https://www.badprog.com/ros2-micro-ros-publisher-subscriber-node-topic-with-stm32-and-python/</link>
      <pubDate>Wed, 01 Apr 2026 00:00:00 +0000</pubDate>
      <guid>https://www.badprog.com/ros2-micro-ros-publisher-subscriber-node-topic-with-stm32-and-python/</guid>
      <description>&lt;p&gt;While receiving data from your microcontroller is great, what about sending data in the opposite direction?&lt;/p&gt;
&lt;p&gt;First, we need to understand the difference between a &lt;strong&gt;publisher&lt;/strong&gt; and a &lt;strong&gt;subscriber&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;In order to achieve this goal, we&amp;rsquo;ll need to use &lt;strong&gt;ROS2 topics&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Each node has to send and receive data to and from a topic, that is publishing and subscribing to a topic.&lt;/p&gt;
&lt;h2 id=&#34;shopping-list&#34;&gt;Shopping list&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Github&lt;/strong&gt; for the tutorial:
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/badprog/badprog-ros2-micro-ros-publisher-subscriber-node-topic-with-stm32-and-python&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://github.com/badprog/badprog-ros2-micro-ros-publisher-subscriber-node-topic-with-stm32-and-python&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;STM32F3 Discovery&lt;/strong&gt; board &lt;strong&gt;STM32F303VC&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;microcontroller and &lt;strong&gt;Cortex M4&lt;/strong&gt; processor&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;Docker&lt;/strong&gt; container for the &lt;strong&gt;micro-ROS Agent&lt;/strong&gt; (&lt;strong&gt;Humble&lt;/strong&gt; version)
&lt;ul&gt;
&lt;li&gt;microros/micro-ros-agent:humble&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;Docker&lt;/strong&gt; container for &lt;strong&gt;ROS2&lt;/strong&gt; (&lt;strong&gt;Humble&lt;/strong&gt; version)
&lt;ul&gt;
&lt;li&gt;ros:humble-ros-base&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;VSCode&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;ROS2&lt;/strong&gt; will be installed inside a &lt;strong&gt;VSCode Dev Container&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;PIO&lt;/strong&gt; extension will be used and &lt;strong&gt;needs to know&lt;/strong&gt; where is the project directory:
&lt;ul&gt;
&lt;li&gt;From VSCode, select: File &amp;gt; Add Folder to Workspace&amp;hellip; &amp;gt; &lt;strong&gt;cpp_stm32_firmware&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;the-node&#34;&gt;The Node&lt;/h2&gt;
&lt;p&gt;In the &lt;strong&gt;ROS2&lt;/strong&gt; world, a node is a primary entry point (a program on a device) from which we can create other entities (in our tutorial it will be publishers, subscribers and topics).&lt;/p&gt;</description>
    </item>
    <item>
      <title>ROS2 - micro-ROS - Using STM32 USB serial port to communicate with a Linux host via WSL 2</title>
      <link>https://www.badprog.com/ros2-micro-ros-using-stm32-usb-serial-port-to-communicate-with-a-linux-host-via-wsl-2/</link>
      <pubDate>Wed, 18 Mar 2026 00:00:00 +0000</pubDate>
      <guid>https://www.badprog.com/ros2-micro-ros-using-stm32-usb-serial-port-to-communicate-with-a-linux-host-via-wsl-2/</guid>
      <description>&lt;p&gt;Connecting a microcontroller to a modern robotics ecosystem can be a daunting task, especially when working across different operating systems.&lt;/p&gt;
&lt;p&gt;In this tutorial, we will explore how to transform an &lt;strong&gt;STM32F3 Discovery&lt;/strong&gt; board into a fully functional &lt;strong&gt;ROS 2&lt;/strong&gt; node with the help of &lt;strong&gt;micro-ROS&lt;/strong&gt; library.&lt;/p&gt;
&lt;p&gt;More specifically, we’ll use the STM32 native USB serial port to establish real-time communication with a &lt;strong&gt;Linux&lt;/strong&gt; host running inside &lt;strong&gt;WSL 2&lt;/strong&gt;.&lt;/p&gt;
&lt;h2 id=&#34;shopping-list&#34;&gt;Shopping list&lt;/h2&gt;
&lt;p&gt;Github of this tutorial :&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
