<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://myzhar.tech/feed.xml" rel="self" type="application/atom+xml" /><link href="https://myzhar.tech/" rel="alternate" type="text/html" /><updated>2026-09-18T14:56:43+02:00</updated><id>https://myzhar.tech/feed.xml</id><title type="html">Myzhar &amp;amp; MyzharBot - Robotics, Vision &amp;amp; AI</title><subtitle>Insights, projects, and stories about seeing, thinking, and moving machines.</subtitle><author><name>Walter Lucetti</name></author><entry><title type="html">NVIDIA® Announces Jetson™ Orin Nano 2 for Entry-Level Edge AI</title><link href="https://myzhar.tech/posts/jetson_orin_nano_2_announced/" rel="alternate" type="text/html" title="NVIDIA® Announces Jetson™ Orin Nano 2 for Entry-Level Edge AI" /><published>2026-08-27T23:00:00+02:00</published><updated>2026-08-27T23:00:00+02:00</updated><id>https://myzhar.tech/posts/jetson_orin_nano_2_announced</id><content type="html" xml:base="https://myzhar.tech/posts/jetson_orin_nano_2_announced/"><![CDATA[<p>NVIDIA® just announced the <strong>Jetson™ Orin Nano 2</strong>, a new robotics computer aimed at entry-level edge AI. It’s worth noting right away: this is a different product from the older <strong>Jetson™ Orin Nano 2GB</strong>, a low-cost developer kit variant released a couple of years ago; the naming is close enough to cause confusion, but the “2” here refers to a second-generation Orin Nano, not a memory configuration.</p>

<h2 id="whats-new">What’s new</h2>

<p>According to the <a href="https://nvidianews.nvidia.com/news/nvidia-announces-jetson-orin-nano-2-robotics-computer-to-redefine-entry-level-edge-ai" target="_blank">official press release</a>, the Jetson™ Orin Nano 2 packs:</p>

<ul>
  <li><strong>78 trillion operations per second (TOPS)</strong> of AI compute</li>
  <li><strong>8GB</strong> of memory</li>
  <li>An <strong>8-core Arm CPU</strong></li>
  <li>The <strong>same compact form factor</strong> as its predecessor, the <a href="https://www.nvidia.com/en-us/autonomous-machines/embedded-systems/jetson-orin/nano-super-developer-kit/" target="_blank">Jetson™ Orin Nano Super</a></li>
</ul>

<p>NVIDIA® claims <strong>2x the inference performance</strong> of the Orin Nano Super, thanks to improved Tensor Cores and higher memory bandwidth, and in 15-watt mode it delivers the same performance as the previous generation while consuming <strong>40% less power</strong>. That power efficiency angle seems to be the real headline for anyone building battery-constrained platforms like drones or mobile robots, rather than the raw TOPS number.</p>

<p>On the software side, it runs on NVIDIA®’s open <a href="https://developer.nvidia.com/embedded/jetpack" target="_blank">Jetson™ software stack</a> and is positioned to run memory-efficient edge inference for LLMs and VLMs, including NVIDIA® <a href="https://www.nvidia.com/en-us/ai/cosmos/" target="_blank">Cosmos</a> and <a href="https://www.nvidia.com/en-us/ai-data-science/foundation-models/nemotron/" target="_blank">Nemotron</a>, along with <a href="https://blog.google/innovation-and-ai/technology/developers-tools/gemma-4/" target="_blank">Gemma 4</a> and <a href="https://github.com/QwenLM/Qwen3" target="_blank">Qwen 3</a>.</p>

<h2 id="early-adopters-and-ecosystem">Early adopters and ecosystem</h2>

<p>NVIDIA® says more than <strong>3 million developers</strong> are already building on its robotics stack. Among the first to explore the Orin Nano 2 are:</p>

<ul>
  <li><strong><a href="https://www.cognex.com/" target="_blank">Cognex</a></strong></li>
  <li><strong><a href="https://www.doosanbobcat.com/en/" target="_blank">Doosan Bobcat</a></strong></li>
  <li><strong><a href="https://maticrobots.com/" target="_blank">Matic Robots</a></strong>, which is adopting it for its home cleaning robots (conversational AI, gesture detection, precision mapping)</li>
  <li><strong><a href="https://wing.com/" target="_blank">Wing</a></strong> (Alphabet’s drone delivery subsidiary), which currently runs Orin Nano Super and is evaluating the Orin Nano 2 for real-time perception and reasoning in its delivery drones</li>
</ul>

<p>Partners across the ecosystem, including <a href="https://www.aaeon.com/en" target="_blank">AAEON</a>, <a href="https://www.adlinktech.com/" target="_blank">ADLINK</a>, <a href="https://www.advantech.com/en-us" target="_blank">Advantech</a>, <a href="https://connecttech.com/" target="_blank">Connect Tech</a>, <a href="https://www.ridgerun.com/" target="_blank">RidgeRun</a>, <a href="https://www.seeedstudio.com/" target="_blank">Seeed Studio</a> and others, are already building carrier boards and reference designs around the module.</p>

<h2 id="availability">Availability</h2>

<p>This is the part that stands out most: the module and developer kit are <strong>not expected until the first half of 2027</strong>, with no pricing disclosed yet. That’s a meaningful gap between announcement and shipping product, so treat the performance claims as forward-looking until independent benchmarks are available.</p>

<h2 id="my-take---honest-personal-opinions">My take - <em>honest personal opinions</em></h2>

<p>I’ve been working with NVIDIA® Jetson™ boards since the first “TK1” development kit (see <a href="/projects/myzharbot/myzharbot-v3/">MyzharBot v3</a>), and I’ve been part of the <a href="https://developer.nvidia.com/embedded/community/jetson-champions" target="_blank">Jetson Champion program</a> since 2015. I’ve used every Jetson™ module for both hobby and professional work, right up to the latest monster, “Thor”, so I’m genuinely curious to get my hands on this new one as soon as it ships.</p>

<p>That history is exactly why this generation excites me. Doubling inference performance while cutting power draw by 40% at the same performance level is a genuine generational leap, not an incremental bump, and it’s the combination of the two that stands out: most of the edge robotics projects I’ve worked on are thermally or power constrained long before they’re compute constrained, so getting more performance per watt and higher raw throughput at once is exactly what unlocks new form factors, like smaller drones, battery-powered inspection robots, and always-on home robots, rather than just making existing designs marginally faster.</p>

<p>I’m also genuinely impressed by the “frontier-class generative AI at the edge” framing, even if I’d temper the marketing language a bit. Running a capable VLM at low latency on 8GB, fast enough for real-time perception and reasoning, would have sounded like science fiction on the Jetson™ boards I was using a few years ago. Watching small and medium models catch up to what used to require a full frontier model in the cloud, and then seeing that capability land on a compact, power-sipping module, is exactly the kind of progress that makes edge robotics more accessible for everyone, not just teams with big power and thermal budgets.</p>

<p>The H1 2027 availability window is the detail I’d flag to anyone planning a design around this: that’s a long lead time for a product announced today, and it leaves plenty of room for the roadmap to shift. I’ll be keeping an eye on developer kit pricing once it’s announced, since that (along with the Jetson™ Orin Nano Super’s current $249 price point) has historically been what actually drives adoption in the maker and small robotics community.</p>

<p>What I’m most curious about, though, is the final specifications that NVIDIA® hasn’t detailed yet: the hardware video encoders and decoders, camera connectivity, and the hardware ISP. The original Jetson™ Orin Nano shipped without a hardware encoder, and that was a real limitation for anyone streaming video off a robot; you either burned precious compute cycles on software encoding or had to work around it entirely. If the Jetson™ Orin Nano 2 brings back proper hardware encode/decode alongside solid camera and ISP support, that would matter just as much to real deployments as the headline TOPS and power numbers.</p>

<p>Stay tuned for more details as NVIDIA® reveals additional information ahead of the planned Q1 2027 launch.</p>

<hr />

<p>Sources: <a href="https://nvidianews.nvidia.com/news/nvidia-announces-jetson-orin-nano-2-robotics-computer-to-redefine-entry-level-edge-ai" target="_blank">NVIDIA® Newsroom</a>, <a href="https://investor.nvidia.com/news/press-release-details/2026/NVIDIA-Announces-Jetson-Orin-Nano-2-Robotics-Computer-to-Redefine-Entry-Level-Edge-AI/default.aspx" target="_blank">NVIDIA® Investor Relations</a>, <a href="https://www.unite.ai/nvidia-unveils-jetson-orin-nano-2-to-redefine-entry-level-edge-ai/" target="_blank">Unite.AI</a></p>]]></content><author><name>Walter Lucetti</name></author><category term="news" /><category term="NVIDIA®" /><category term="Jetson™" /><category term="Jetson™ Orin Nano" /><category term="edge AI" /><category term="robotics" /><category term="embedded" /><summary type="html"><![CDATA[NVIDIA® has unveiled the Jetson™ Orin Nano 2, a new entry-level robotics computer promising 2x the inference performance of the Orin Nano Super at 40% lower power, though it won't ship until H1 2027.]]></summary></entry><entry><title type="html">Two New OpenCV Tutorials: Building OpenCV 5 with CUDA, and Running YOLO with It</title><link href="https://myzhar.tech/posts/two-new-opencv-tutorials/" rel="alternate" type="text/html" title="Two New OpenCV Tutorials: Building OpenCV 5 with CUDA, and Running YOLO with It" /><published>2026-08-25T21:00:00+02:00</published><updated>2026-08-25T21:00:00+02:00</updated><id>https://myzhar.tech/posts/two-new-opencv-tutorials</id><content type="html" xml:base="https://myzhar.tech/posts/two-new-opencv-tutorials/"><![CDATA[<p>When I wrote about the <a href="/posts/opencv5-released/">OpenCV 5 release</a> back in June, I ended the post with the usual promise to follow up with something practical. That follow-up is now online, and it turned out to be two tutorials rather than one, because the honest answer to <em>“how do I run a neural network on my GPU with OpenCV?”</em> has two halves that are very hard to explain at the same time.</p>

<p>The website now has a dedicated <a href="/tutorials/opencv/"><strong>OpenCV Tutorials</strong></a> section, alongside the existing CUDA™, ROS 2 and electronics ones, and it opens with those two guides.</p>

<h2 id="building-the-opencv-you-actually-wanted">Building the OpenCV you actually wanted</h2>

<p>The first tutorial, <a href="/tutorials/opencv/installing-opencv5-cuda-ubuntu/"><strong>Installing OpenCV 5 with CUDA and DNN Support on Ubuntu 24.04</strong></a>, is about the part everybody underestimates.</p>

<p>Installing OpenCV is a one-liner. Installing the OpenCV you actually wanted is an afternoon. <code class="language-plaintext highlighter-rouge">pip install opencv-python</code> gives you a perfectly good library that will never touch your GPU; <code class="language-plaintext highlighter-rouge">sudo apt install libopencv-dev</code> gives you OpenCV 4.6.0 on Ubuntu 24.04, which is four years old and will also never touch your GPU. Neither is built with <code class="language-plaintext highlighter-rouge">OPENCV_DNN_CUDA</code>, and no runtime flag can change that, because the code simply is not in the binary.</p>

<p>So the tutorial walks the whole chain, in order: the NVIDIA® driver, choosing between a CUDA™ 12.x and a 13.x toolkit (which matters more than it sounds if your GPU is Pascal or Volta), cuDNN, the build dependencies, the source trees, and every CMake flag that decides whether GPU inference will work. It also covers a few things I have not seen written down clearly anywhere else:</p>

<ul>
  <li>The <strong>NumPy 2 trap</strong> that Ubuntu 24.04 sets specifically for you, and which does not break the build; it breaks <code class="language-plaintext highlighter-rouge">import cv2</code> a month later.</li>
  <li>A <strong>private install prefix</strong> that does not fight with the OpenCV 4.6.0 that ROS 2 and <code class="language-plaintext highlighter-rouge">cv_bridge</code> are already linked against. If you install to <code class="language-plaintext highlighter-rouge">/usr/local</code> and something starts segfaulting on a <code class="language-plaintext highlighter-rouge">cv::Mat</code> crossing a library boundary, there is no runtime fix for that.</li>
  <li>Reading the <strong>CMake configure summary</strong>: six lines tell you whether the build will do what you want, which is worth knowing <em>before</em> spending an hour compiling rather than after.</li>
  <li>A <strong>five-step verification ladder</strong>, because the two most consequential failures in this stack do not stop the build. They warn once, quietly, while your model is loading.</li>
  <li>What breaks the first time you compile existing code against OpenCV 5: the <code class="language-plaintext highlighter-rouge">opencv4</code> to <code class="language-plaintext highlighter-rouge">opencv5</code> path change, <code class="language-plaintext highlighter-rouge">calib3d</code> splitting into <code class="language-plaintext highlighter-rouge">geometry</code>, <code class="language-plaintext highlighter-rouge">calib</code>, <code class="language-plaintext highlighter-rouge">stereo</code> and <code class="language-plaintext highlighter-rouge">ptcloud</code>, <code class="language-plaintext highlighter-rouge">features2d</code> becoming <code class="language-plaintext highlighter-rouge">features</code>, and the C API being removed outright rather than deprecated.</li>
</ul>

<p>There is also a section on <strong>when not to do any of this</strong>, which I think matters as much as the instructions. A source build is a real cost: an afternoon, a maintenance burden, and a machine that is now slightly non-standard. If you only need CPU inference, OpenCV 5’s new engine is genuinely fast and arrives with a <code class="language-plaintext highlighter-rouge">pip install</code>.</p>

<h2 id="running-yolo-on-it">Running YOLO on it</h2>

<p>The second tutorial, <a href="/tutorials/opencv/yolo-object-detection-cuda/"><strong>Detecting Everyday Objects with YOLO, OpenCV DNN and CUDA</strong></a>, is what you do with the build once you have it.</p>

<p>The premise is that OpenCV can run YOLO by itself. The <code class="language-plaintext highlighter-rouge">dnn</code> module loads an ONNX file, runs it on your GPU, and hands you back a tensor. No PyTorch at runtime, no two gigabytes of wheels on your robot’s Jetson™, and no Python at all if you would rather not have it. The catch is that OpenCV gives you a <em>tensor</em>, not a list of objects, and everything between raw pixels and “there is a dog at (312, 48, 190, 240)” is your job.</p>

<p>So the tutorial spells out that middle part, with the maths: exporting a YOLO model to ONNX in a form OpenCV can actually load, the letterbox and why a plain <code class="language-plaintext highlighter-rouge">resize()</code> gives you boxes in the wrong place on non-square frames, what the shape <code class="language-plaintext highlighter-rouge">1 x 84 x 8400</code> means and how to decode it, confidence filtering, class-aware non-maximum suppression, and mapping the result back into the original frame. Then it does the whole thing twice, as a complete real-time detector in <strong>Python</strong> and in <strong>C++</strong>, with the code also available in the <a href="https://github.com/Myzhar/tutorial-opencv-yolo" target="_blank">tutorial-opencv-yolo</a> repository, including a test that checks both implementations against a reference produced by Ultralytics itself.</p>

<h2 id="the-trap-that-connects-them">The trap that connects them</h2>

<p>Both tutorials keep returning to the same problem, which is the reason they exist as a pair.</p>

<p>OpenCV 5 ships a completely rewritten DNN engine. It is an excellent piece of engineering, with ONNX operator coverage jumping from roughly 22% to over 80%, and as of 5.0.0 it is <strong>CPU-only</strong>. OpenCV 5 therefore carries two engines, and the default, <code class="language-plaintext highlighter-rouge">ENGINE_AUTO</code>, tries the new one first. A YOLO11 graph loads on it perfectly well, so the classic engine is never reached, and your <code class="language-plaintext highlighter-rouge">setPreferableBackend(DNN_BACKEND_CUDA)</code> call has nowhere to go.</p>

<p>The model runs. The results are correct. It runs entirely on your CPU, and it tells you so in two warning lines printed once during loading, which are gone in a second in any real application log. Measured on an RTX 3060 Laptop with YOLO11n at 640x640, that is 55.2 ms per <code class="language-plaintext highlighter-rouge">forward()</code> instead of 16.3 ms; within 2% of the plain CPU path, with the GPU sitting idle. I am fairly confident this is the single most common reason “OpenCV 5 is slower than OpenCV 4” reports keep appearing. Nothing is broken.</p>

<p>The fix is one argument, <code class="language-plaintext highlighter-rouge">ENGINE_CLASSIC</code>, and it is the sort of thing you either know or lose an evening to.</p>

<h2 id="have-a-look">Have a look</h2>

<p>Both tutorials are written to be read in either order, and each links into the other at the point where you would want it. If you want a GPU-capable OpenCV, start with the <a href="/tutorials/opencv/installing-opencv5-cuda-ubuntu/">installation guide</a>. If you already have one and just want detections, go straight to the <a href="/tutorials/opencv/yolo-object-detection-cuda/">YOLO tutorial</a>.</p>

<p>As always, corrections and reports of failure modes I have not listed are very welcome; those are the parts that make this kind of guide actually useful. <a href="/contact/">Let me know</a> if you hit one.</p>

<p>Happy detecting! 🤖</p>]]></content><author><name>Walter Lucetti</name></author><category term="news" /><category term="tutorials" /><category term="website" /><category term="computer_vision" /><category term="updates" /><category term="website" /><category term="tutorials" /><category term="OpenCV" /><category term="opencv5" /><category term="computer_vision" /><category term="deep_learning" /><category term="DNN" /><category term="ONNX" /><category term="CUDA" /><category term="NVIDIA" /><category term="YOLO" /><category term="COCO" /><category term="object detection" /><category term="ubuntu" /><summary type="html"><![CDATA[A new OpenCV Tutorials section is online, opening with two connected guides: building OpenCV 5.0.0 from source with the CUDA DNN backend on Ubuntu 24.04, and writing a real-time YOLO detector in Python and C++ using nothing but OpenCV and an NVIDIA GPU.]]></summary></entry><entry><title type="html">The YALIO Project Page Is Now Available</title><link href="https://myzhar.tech/posts/yalio_project_page/" rel="alternate" type="text/html" title="The YALIO Project Page Is Now Available" /><published>2026-08-24T18:00:00+02:00</published><updated>2026-08-24T18:00:00+02:00</updated><id>https://myzhar.tech/posts/yalio_project_page</id><content type="html" xml:base="https://myzhar.tech/posts/yalio_project_page/"><![CDATA[<p>When I first announced <strong>YALIO</strong>, <em>Yet Another Lidar ICP Odometry</em>, I described it as a small but ambitious side project: a ROS 2 package that estimates a robot’s motion from consecutive 2D lidar scans. I have now added a dedicated <a href="/projects/ros2/yalio/">YALIO project page</a> to the ROS 2 Projects section, where I can explain the ideas behind the package in more detail than a repository README or a short announcement can comfortably hold.</p>

<p>YALIO is intended for affordable 2D lidars such as the <strong>LDRobot LD19</strong> and <strong>LD06</strong>. Instead of using scan data only for obstacle detection, it matches each new scan to a reference keyframe and estimates the robot’s relative motion. This produces an odometry estimate that can be useful while bringing up a mobile robot, and it can be combined with a SLAM or localization back-end when an absolute pose is required.</p>

<p>The new page looks at YALIO from both the practical and architectural sides. It documents the three packages in the repository, explains how to build and launch the component, and describes the <code class="language-plaintext highlighter-rouge">odom_icp</code> output, TF publication, and odometry reset interfaces. It also makes a point of showing that the ROS 2 lifecycle model is not an afterthought in this project. The node is configured before its interfaces are ready, processes scans only when active, and can be managed automatically by the Nav2 lifecycle manager.</p>

<p>I also added a visual explanation of the <strong>Point-to-Line ICP</strong> loop. The animation follows a new lidar scan as it is matched to a fixed reference keyframe: local reference lines are identified, correspondences are formed, a planar correction is estimated, and the process repeats until the alignment converges. The page then links directly to the relevant implementation blocks in the YALIO source code, including correspondence search, trimmed outlier rejection, the Gauss-Newton solve, and covariance estimation.</p>

<figure class="" style="max-width: 800px; margin: 0 auto;"><a href="/assets/images/projects/yalio/yalio-point-to-line-icp.gif" class="image-popup" title="The YALIO project page includes an animated Point-to-Line ICP walkthrough for a new lidar scan.
"><img src="/assets/images/projects/yalio/yalio-point-to-line-icp.gif" alt="Animated Point-to-Line ICP alignment used on the YALIO project page" /></a><figcaption>
      The YALIO project page includes an animated Point-to-Line ICP walkthrough for a new lidar scan.

    </figcaption></figure>

<p>The project remains a <strong>work in progress</strong>, and the page is intentionally a living companion to the code. I would be very grateful for tests in real environments, especially with different robots, lidar placements, surface geometries, and motion speeds. Real-world feedback is the best way to identify weak spots in a scan-matching odometry system and to improve the default parameters and error handling.</p>

<p>If you are interested in ROS 2 lifecycle nodes, composable components, low-cost lidar integration, or ICP-based odometry, have a look at the new <a href="/projects/ros2/yalio/">YALIO project page</a>. You can also browse the code, report an issue, or contribute an improvement in the <a href="https://github.com/Myzhar/yalio-ros2" target="_blank">YALIO GitHub repository</a>.</p>

<p>Happy robotics programming! 🤖</p>]]></content><author><name>Walter Lucetti</name></author><category term="news" /><category term="projects" /><category term="website" /><category term="robotics" /><category term="updates" /><category term="website" /><category term="projects" /><category term="ROS" /><category term="ROS_2" /><category term="robotics" /><category term="lidar" /><category term="odometry" /><category term="ICP" /><category term="SLAM" /><category term="yalio" /><summary type="html"><![CDATA[The ROS 2 Projects section now includes a dedicated page for YALIO, covering its lifecycle architecture, Point-to-Line ICP scan matching, and practical use on a robot.]]></summary></entry><entry><title type="html">New ROS 2 Tutorial: Quality of Service (QoS)</title><link href="https://myzhar.tech/posts/ros2-qos-tutorial/" rel="alternate" type="text/html" title="New ROS 2 Tutorial: Quality of Service (QoS)" /><published>2026-07-01T21:00:00+02:00</published><updated>2026-07-01T21:00:00+02:00</updated><id>https://myzhar.tech/posts/ros2-qos-tutorial</id><content type="html" xml:base="https://myzhar.tech/posts/ros2-qos-tutorial/"><![CDATA[<p>New tutorial out today: <strong><a href="/tutorials/ros2/understanding-ros2-qos/">ROS 2 QoS: Why Your Nodes Aren’t Talking (and How to Fix It)</a></strong>.</p>

<p>I decided to write this one because of my day job. As Head of Support at Stereolabs, I’ve lost count of how many tickets I’ve opened, read, or answered that all boiled down to the same thing: “I can see the topic in <code class="language-plaintext highlighter-rouge">ros2 topic list</code>, I can <code class="language-plaintext highlighter-rouge">echo</code> nothing, and I have no idea why.” The customer is convinced the camera driver is broken. It almost never is. What’s broken is the <em>contract</em> between the two ends of the conversation, and that contract is Quality of Service.</p>

<p>It’s such a recurring pattern that I could practically diagnose it in my sleep now. A sensor stream is published one way, someone subscribes the default way, the middleware quietly decides the two are incompatible, and everybody stares at a blinking cursor wondering where the data went. No crash, no error, just silence. When you spend your days helping people integrate real hardware into real robots, you learn very fast that this single concept causes more head-scratching than almost anything else in ROS 2.</p>

<p>But honestly, I didn’t need the support queue to teach me this lesson; MyzharBot taught me first, the hard way. Years ago I spent an entire evening convinced I had a hardware fault on my little tracked robot, because a ultrasonic sensor topic simply wouldn’t reach the node that needed it. I checked cables, I re-flashed, I swapped ports. The real culprit was a mismatched reliability setting between a best-effort sensor and a subscriber that politely demanded guarantees I could never provide. I felt equal parts relieved and embarrassed when I finally found it.</p>

<p>That’s exactly why I promised, back in the <a href="/tutorials/ros2/understanding-ros2-middleware/">Understanding the ROS 2 Communication Middleware</a> tutorial, that QoS deserved its own chapter, and why it kept resurfacing when the <code class="language-plaintext highlighter-rouge">qos_overrides</code> parameters showed up in the <a href="/tutorials/ros2/configure-node-with-parameters/">node parameters</a> tutorial. This is that chapter, and I tried to write the guide I wish someone had handed me before that long “ultrasonic sensor” evening.</p>

<p>I kept the tone practical, with the compatibility tables I actually picture in my head when I read a support ticket, and I closed it with a short <strong>“Test Your Knowledge”</strong> quiz to make the ideas stick.</p>

<p>If a topic has ever gone mysteriously quiet on you, give it a read. My hope is the next silent topic costs you five seconds instead of an afternoon.</p>

<p>Happy robotics programming! 🤖</p>]]></content><author><name>Walter Lucetti</name></author><category term="updates" /><category term="website" /><category term="tutorials" /><category term="updates" /><category term="website" /><category term="tutorials" /><category term="ROS" /><category term="ROS_2" /><category term="robotics" /><category term="qos" /><category term="quality_of_service" /><category term="dds" /><category term="middleware" /><summary type="html"><![CDATA[A new in-depth tutorial on ROS 2 Quality of Service: why two healthy nodes refuse to talk, every QoS policy explained, publisher/subscriber compatibility tables, and how to tune QoS with node parameters and qos_overrides.]]></summary></entry><entry><title type="html">YALIO: Yet Another Lidar ICP Odometry</title><link href="https://myzhar.tech/posts/yalio_announcement/" rel="alternate" type="text/html" title="YALIO: Yet Another Lidar ICP Odometry" /><published>2026-06-11T23:00:00+02:00</published><updated>2026-06-11T23:00:00+02:00</updated><id>https://myzhar.tech/posts/yalio_announcement</id><content type="html" xml:base="https://myzhar.tech/posts/yalio_announcement/"><![CDATA[<p>In the few spare hours I’ve managed to carve out lately, I started working on a nice little project that I’m quite excited about: using <strong>cheap 2D lidars to calculate robot odometry</strong>. It’s one of those technical challenges that seems straightforward on paper but gets surprisingly deep once I started looking at the noise profiles of budget sensors and the nuances of real-time scan matching.</p>

<p>The project is called <strong>YALIO</strong>, which stands for <em>Yet Another Lidar ICP Odometry</em>, and I’ve made it available on GitHub at <strong><a href="https://github.com/Myzhar/yalio-ros2" target="_blank">Myzhar/yalio-ros2</a></strong>.</p>

<p>To be honest, this is a project that has been on my mind for a long time. I spent a significant amount of time searching, but I could never find anything simple online that performs only odometry estimation using 2D lidar information. Most existing solutions are either buried inside massive, complex SLAM suites or are too specialized for a specific research platform. I wanted something modular, lightweight, and easy to drop into any ROS 2 stack, something that does one thing and does it well.</p>

<p>There’s also a bit of personal history behind it. I first worked with <strong>ICP (Iterative Closest Point) algorithms</strong> back in <strong>2005</strong>, right after getting my laurea degree. Back then, I was working on my thesis, and the computational power I had available was a tiny fraction of what a modern NVIDIA Jetson offers. I’ve always wanted to go back and see how these algorithms have evolved over the 21 years since then. After digging back into the literature, I decided to go with <strong>Point-to-Line ICP (PL-ICP)</strong> because it seemed to be the most promising evolution of the original method for structured environments.</p>

<p>The idea is simple: low-cost 2D lidars like the <strong>LDRobot LD19 and LD06</strong> are everywhere now. While they are often used just for basic obstacle avoidance, I believe the scan data they produce is more than good enough to estimate the motion of a robot by matching consecutive scans. YALIO does exactly that. I chose PL-ICP because, unlike standard point-to-point matching, it accounts for the surface geometry of walls and corners, which makes it much more robust in the indoor environments where these 2D lidars typically operate.</p>

<p>I’ve implemented YALIO as a managed (lifecycle) ROS 2 component that loads into a shared container. However, I made a conscious effort to keep the core algorithm in a pure C++ library with no ROS dependency. This means the math can be reused in non-ROS projects or even on tiny embedded systems if needed. If you’ve followed my recent ROS 2 Lifecycle Nodes tutorial, you’ll recognize YALIO as a real-world application of those concepts: the odometry node is a <code class="language-plaintext highlighter-rouge">nav2_util::LifecycleNode</code> composable component, optionally managed by the Nav2 <code class="language-plaintext highlighter-rouge">lifecycle_manager</code>.</p>

<p>⚠️ Please keep in mind that the project is still a <strong>work in progress</strong>. I’m currently refining the error handling and tuning the parameters for higher speeds. In the next few weeks, once I have validated and tested it in different lighting and geometric conditions, I will add a new page to the ROS 2 Projects section to describe its internal architecture in detail.</p>

<p>In the meantime, I’ve already added a <a href="https://github.com/Myzhar/ldrobot-lidar-ros2/tree/add_yalio_odometry">new branch to my <strong>LD Lidar ROS 2 Driver</strong> repository</a>, <code target="_blank" class="language-plaintext highlighter-rouge">add_yalio_odometry</code>. This branch uses YALIO as the primary odometry source in a new demo SLAM launch file. I finally got to replace the “fake” static odometry node I used in the original launch file with a real, dynamic estimate. This makes the SLAM demo much more meaningful and closer to how a real autonomous robot should behave.</p>

<p>I’m excited to see how this performs on MyzharBot in more complex environments. Stay tuned for updates, and feel free to try it out and open issues on GitHub if you find problems or have ideas for improvements!</p>

<p>Happy robotics programming! 🤖</p>]]></content><author><name>Walter Lucetti</name></author><category term="news" /><category term="projects" /><category term="robotics" /><category term="ROS" /><category term="ROS_2" /><category term="robotics" /><category term="lidar" /><category term="odometry" /><category term="ICP" /><category term="SLAM" /><category term="ldrobot" /><category term="LD19" /><category term="LD06" /><category term="yalio" /><summary type="html"><![CDATA[A new side project is born: YALIO, a ROS 2 package that turns cheap 2D lidars like the LDRobot LD19/LD06 into a reliable odometry source using Point-to-Line ICP scan matching.]]></summary></entry><entry><title type="html">OpenCV 5 is Finally Here!</title><link href="https://myzhar.tech/posts/opencv5-released/" rel="alternate" type="text/html" title="OpenCV 5 is Finally Here!" /><published>2026-06-08T23:00:00+02:00</published><updated>2026-06-08T23:00:00+02:00</updated><id>https://myzhar.tech/posts/opencv5-released</id><content type="html" xml:base="https://myzhar.tech/posts/opencv5-released/"><![CDATA[<p>It’s out! <strong>OpenCV 5</strong> has officially been released, and honestly, this one feels like a bigger deal than most people might realize at first glance.</p>

<p class="notice--info"><strong>Want to try it yourself?</strong> I wrote a full step-by-step guide to building it from source with GPU support: <a href="/tutorials/opencv/installing-opencv5-cuda-ubuntu/"><strong>Installing OpenCV 5 with CUDA and DNN Support on Ubuntu 24.04</strong></a>.</p>

<figure class="" style="max-width: 400px; margin: 0 auto;"><a href="/assets/images/opencv5/opencv5-release.jpg" class="image-popup"><img src="/assets/images/opencv5/opencv5-release.jpg" alt="OpenCV 5 Release" /></a></figure>

<p>I have a special relationship with this library. I started using OpenCV back in the early 2000s, during its <strong>beta versions</strong>, when the API was pure C and the documentation was sparse. I picked it up while writing my <a href="https://etd.adm.unipi.it/t/etd-11152004-085347/" target="_blank"><strong>laurea degree thesis</strong></a>, and it immediately became the tool I relied on for everything vision-related. Over the following years, I watched it evolve from that original C interface, through the C++ rewrite that made it actually pleasant to use, through the Python bindings that brought it to an entirely new audience, and through the deep learning integration in the 4.x era. It’s a library I’ve grown up with professionally, and every major release carries a bit of that history.</p>

<figure class="" style="max-width: 200px; margin: 0 auto;"><a href="/assets/images/opencv5/walter-gary_bradsky.jpg" class="image-popup" title="Me with Gary Bradski, the father of OpenCV, at GTC 2015 in San Jose.
"><img src="/assets/images/opencv5/walter-gary_bradsky.jpg" alt="Walter Lucetti with Gary Bradski at GTC 2015, San Jose" /></a><figcaption>
      Me with <a href="https://en.wikipedia.org/wiki/Gary_Bradski">Gary Bradski</a>, the father of OpenCV, at GTC 2015 in San Jose.

    </figcaption></figure>

<p>So yes, this announcement landed differently for me than just another library update. OpenCV is one of those tools you just take for granted; it’s been the backbone of computer vision projects for over two decades, and this major version bump is the largest leap the project has taken in a long time.</p>

<p>The official launch happened at <strong><a href="https://cvpr.thecvf.com/Conferences/2026" target="_blank">CVPR 2026 in Denver</a></strong> on June 4th, with the pip package following on June 8th. And honestly, coming just two weeks after <a href="/posts/ros2-lyrical-luth-released/">ROS 2 Lyrical Luth</a>, this is shaping up to be quite a season for open-source robotics and computer vision. Two major releases in less than a month; I’ll happily take it.</p>

<p>Given how important OpenCV is to me, I read through the full announcement pretty carefully, and there’s a lot to unpack.</p>

<h2 id="the-dnn-engine-rewrite-the-headline-feature">The DNN engine rewrite: the headline feature</h2>

<p>If there is one thing that defines this release, it’s the <strong>complete redesign of the deep learning inference engine</strong>. The old DNN module in OpenCV 4.x was functional but limited; ONNX operator coverage sat at around <strong>22%</strong>, which meant you constantly ran into missing ops when trying to load modern models. OpenCV 5 brings that number to <strong>80%+</strong>. That is not an incremental improvement; that is a fundamental change in what you can actually run with OpenCV out of the box.</p>

<figure class="" style="max-width: 400px; margin: 0 auto;"><a href="/assets/images/opencv5/opencv5-onnx-coverage.jpg" class="image-popup" title="ONNX operator coverage: ~22% in OpenCV 4.x vs. more than 80% in OpenCV 5.
"><img src="/assets/images/opencv5/opencv5-onnx-coverage.jpg" alt="ONNX operator coverage comparison: ~22% in OpenCV 4.x vs &gt;80% in OpenCV 5" /></a><figcaption>
      ONNX operator coverage: ~22% in OpenCV 4.x vs. more than 80% in OpenCV 5.

    </figcaption></figure>

<p>The new engine is graph-based, with proper shape inference, constant folding, dynamic shape support, and even control flow through If/Loop subgraphs. It also handles quantized models natively and includes attention fusion using <a href="https://github.com/Dao-AILab/flash-attention" target="_blank">FlashAttention</a>-style optimizations. This is a serious piece of engineering.</p>

<h3 id="three-engines-for-a-smooth-transition">Three engines for a smooth transition</h3>

<p>One of the smartest decisions the team made was keeping backward compatibility through a three-tier engine selection model, exposed via the <code class="language-plaintext highlighter-rouge">EngineType</code> enum:</p>

<p><code class="language-plaintext highlighter-rouge">ENGINE_CLASSIC</code> is the original 4.x engine, preserved for non-CPU backend support. <code class="language-plaintext highlighter-rouge">ENGINE_NEW</code> is the new graph-based engine, currently CPU-only. <code class="language-plaintext highlighter-rouge">ENGINE_AUTO</code> is the default: it tries the new engine first and falls back to classic when needed. There’s also <code class="language-plaintext highlighter-rouge">ENGINE_ORT</code>, an optional wrapper around <a href="https://onnxruntime.ai" target="_blank">ONNX Runtime</a> for cases where you want to delegate to that backend explicitly.</p>

<p>This is a thoughtful migration path. You get the new engine’s benefits immediately for supported models, and nothing breaks for everything else. I can already imagine how many CI pipelines would have exploded otherwise.</p>

<h3 id="llm-and-vlm-support-natively">LLM and VLM support, natively</h3>

<p>This one genuinely surprised me. OpenCV 5 can now run <strong>large language models and vision-language models</strong> natively, with a built-in tokenizer (no external dependency), KV-cache for autoregressive decoding, and support for <a href="https://github.com/QwenLM/Qwen2.5" target="_blank">Qwen 2.5</a>, <a href="https://ai.google.dev/gemma" target="_blank">Gemma 3</a>, <a href="https://ai.google.dev/gemma/docs/paligemma" target="_blank">PaliGemma</a>, and the <a href="https://openai.com" target="_blank">GPT</a> family. The team reports token-for-token accuracy matching ONNX Runtime. Running a VLM from OpenCV directly is not something I expected to see in 2026, but here we are.</p>

<figure class="" style="max-width: 400px; margin: 0 auto;"><a href="/assets/images/opencv5/opencv5-llm-output.jpg" class="image-popup" title="Qwen 2.5 running natively via OpenCV DNN; output matches ONNX Runtime token for token on the same prompt.
"><img src="/assets/images/opencv5/opencv5-llm-output.jpg" alt="Qwen 2.5 running via OpenCV DNN, output matching ONNX Runtime token for token" /></a><figcaption>
      Qwen 2.5 running natively via OpenCV DNN; output matches ONNX Runtime token for token on the same prompt.

    </figcaption></figure>

<h3 id="performance-numbers">Performance numbers</h3>

<p>The team benchmarked the new engine against ONNX Runtime on an Intel Core i9-14900KS, and the results are worth quoting: <a href="https://github.com/verlab/accelerated_features" target="_blank">XFeat</a> is <strong>31.25% faster</strong>, <a href="https://github.com/ultralytics/ultralytics" target="_blank">YOLOv8n</a> is <strong>11.5% faster</strong>, <a href="https://huggingface.co/google/owlv2-base-patch16" target="_blank">OWLv2</a> is <strong>36.6% faster</strong>, and <a href="https://github.com/ZhengPeng7/BiRefNet" target="_blank">BiRefNet</a> is <strong>32.4% faster</strong>. These are real workloads, not toy benchmarks.</p>

<figure class="" style="max-width: 400px; margin: 0 auto;"><a href="/assets/images/opencv5/opencv5-benchmarks.png" class="image-popup" title="CPU inference latency across lightweight, mid-weight, and heavy models. OpenCV 5 DNN vs. ONNX Runtime; lower is better.
"><img src="/assets/images/opencv5/opencv5-benchmarks.png" alt="CPU inference latency benchmark: OpenCV 5 DNN vs ONNX Runtime across lightweight, mid-weight, and heavy models" /></a><figcaption>
      CPU inference latency across lightweight, mid-weight, and heavy models. OpenCV 5 DNN vs. ONNX Runtime; lower is better.

    </figcaption></figure>

<h2 id="new-data-types-and-core-improvements">New data types and core improvements</h2>

<p>OpenCV 5 adds <strong>native FP16 (<code class="language-plaintext highlighter-rouge">cv::hfloat</code>) and BF16 (<code class="language-plaintext highlighter-rouge">cv::bfloat</code>) support</strong>, which is long overdue. Working with neural network outputs in deep learning pipelines has always required manual conversion steps; having these types first-class in <code class="language-plaintext highlighter-rouge">cv::Mat</code> makes the whole thing significantly cleaner.</p>

<p>There’s also support for <strong>0D (scalar) and 1D tensor</strong> representations, proper broadcasting operations, and new 64-bit integer and boolean types. The library is finally catching up to how modern ML frameworks represent data, which matters a lot when you’re gluing OpenCV preprocessing together with <a href="https://pytorch.org" target="_blank">PyTorch</a> or ONNX models.</p>

<p>On raw performance: the team reports <strong>up to 2x improvements</strong> on mathematical workloads and <strong>3 to 4x speedups</strong> on ARM for operations like resizing and warping. The Universal Intrinsics layer has been updated to v2.0 with support for SSE, AVX2/512, NEON, SVE, and RISC-V Vector. This is great news for anyone running embedded vision on ARM boards.</p>

<h2 id="hardware-acceleration-layer-hal">Hardware Acceleration Layer (HAL)</h2>

<p>This is a feature that I think will have a big long-term impact: OpenCV 5 introduces an automatic dispatch mechanism to <strong>vendor-optimized kernels</strong> through a Hardware Acceleration Layer. Currently supported backends include <a href="https://www.intel.com/content/www/us/en/developer/tools/oneapi/ipp.html" target="_blank">Intel IPP</a> (IPPICV) for x86/x64 with SSE/AVX, <a href="https://gitlab.arm.com/kleidi/kleidicv" target="_blank">Arm KleidiCV</a> for AArch64, <a href="https://developer.qualcomm.com/software/fastcv-sdk" target="_blank">Qualcomm FastCV</a> for Snapdragon/Hexagon DSP, and <a href="https://github.com/riscv/riscv-v-spec" target="_blank">RISC-V Vector</a> extensions. The dispatch is automatic; the same OpenCV code just runs faster on each platform.</p>

<p>For robotics and edge deployments, this is a big deal. You write once and the library adapts to the hardware underneath without any extra configuration.</p>

<figure class="" style="max-width: 400px; margin: 0 auto;"><a href="/assets/images/opencv5/opencv5-hal-diagram.jpg" class="image-popup" title="The HAL transparently dispatches the same OpenCV code to the best available backend, whether CPU, GPU, or NPU.
"><img src="/assets/images/opencv5/opencv5-hal-diagram.jpg" alt="HAL architecture diagram: OpenCV code dispatched transparently to CPU, GPU, or NPU" /></a><figcaption>
      The HAL transparently dispatches the same OpenCV code to the best available backend, whether CPU, GPU, or NPU.

    </figcaption></figure>

<h2 id="3d-vision-a-long-overdue-reorganization">3D vision: a long-overdue reorganization</h2>

<p>This section is personally very relevant to my work. The <code class="language-plaintext highlighter-rouge">calib3d</code> module, which had grown into a bloated catch-all over the years, has been split into three focused modules:</p>

<p><strong><code class="language-plaintext highlighter-rouge">3d</code></strong> covers geometry, I/O, ICP, and SLAM components. <strong><code class="language-plaintext highlighter-rouge">calib</code></strong> handles single and multi-camera calibration, including hand-eye and robot-world calibration. <strong><code class="language-plaintext highlighter-rouge">stereo</code></strong> covers depth estimation from stereo pairs.</p>

<p>The new <code class="language-plaintext highlighter-rouge">calibrateMultiview</code> API for multi-camera setups, point cloud and mesh I/O for OBJ and PLY formats, dense RGB-D fusion with TSDF, HashTSDF, and ColorTSDF, and the USAC framework with MAGSAC robust estimation are all welcome additions. At Stereolabs, we deal with 3D reconstruction and depth pipelines every day; a well-structured API for these building blocks makes a real difference.</p>

<h2 id="features-module-deep-learning-meets-classic-detectors">Features module: deep learning meets classic detectors</h2>

<p>The <code class="language-plaintext highlighter-rouge">features2d</code> module has been replaced by a new <strong><code class="language-plaintext highlighter-rouge">features</code></strong> module that brings deep learning-based detection and matching alongside the classic detectors we know and love.</p>

<p>New additions include <strong><a href="https://github.com/Shiaoming/ALIKED" target="_blank">ALIKED</a></strong> (a CNN-based keypoint detector and descriptor), <strong><a href="https://github.com/cvlab-epfl/disk" target="_blank">DISK</a></strong> (reinforcement learning features designed for wide-baseline matching), and <strong><a href="https://github.com/cvg/LightGlue" target="_blank">LightGlueMatcher</a></strong> (an attention-based matcher with confidence-scored correspondences). Classic detectors like SIFT, ORB, and FAST are retained for backward compatibility, so nothing breaks if you’re not ready to migrate.</p>

<p>The combination of learned features with the classic OpenCV pipeline architecture is interesting; I’m curious to see how ALIKED and LightGlueMatcher perform on real-world robotics sequences versus standard benchmarks.</p>

<figure class="" style="max-width: 400px; margin: 0 auto;"><a href="/assets/images/opencv5/opencv5-lightglue-matching.jpg" class="image-popup" title="LightGlue adapts computation to scene difficulty: easy pairs stop after 3 layers (16.9ms), hard pairs go deeper (8 layers, 32.3ms).
"><img src="/assets/images/opencv5/opencv5-lightglue-matching.jpg" alt="LightGlue keypoint matching on easy and difficult image pairs with adaptive depth" /></a><figcaption>
      LightGlue adapts computation to scene difficulty: easy pairs stop after 3 layers (16.9ms), hard pairs go deeper (8 layers, 32.3ms).

    </figcaption></figure>

<h2 id="generative-models-in-opencv">Generative models in OpenCV</h2>

<p>I wouldn’t have predicted this one a couple of years ago. OpenCV 5 ships with <strong><a href="https://github.com/advimman/lama" target="_blank">LaMa inpainting</a></strong> for mask-guided object removal and a <strong>diffusion-based inpainting</strong> pipeline as a second option. This feels a bit out of scope for a library historically focused on classical and discriminative vision, but given where the field has gone, I understand the push. It makes OpenCV more self-contained for demo and prototyping use cases.</p>

<figure class="" style="max-width: 400px; margin: 0 auto;"><a href="/assets/images/opencv5/opencv5-lama-inpainting.jpg" class="image-popup" title="LaMa inpainting: the original image, the masked region, and the restored output with the tree seamlessly removed.
"><img src="/assets/images/opencv5/opencv5-lama-inpainting.jpg" alt="LaMa inpainting example: input image, masked region, and clean output" /></a><figcaption>
      LaMa inpainting: the original image, the masked region, and the restored output with the tree seamlessly removed.

    </figcaption></figure>

<h2 id="python-and-c-improvements">Python and C++ improvements</h2>

<p>On the Python side: <strong><a href="https://numpy.org/doc/stable/release/2.0.0-notes.html" target="_blank">NumPy 2.x</a> support</strong> is here at last, named (keyword) arguments work properly for algorithm classes, and the bindings have been modernized throughout. If you’ve spent time fighting NumPy deprecation warnings in OpenCV, this update is for you.</p>

<p>On the C++ side: <strong><a href="https://en.cppreference.com/w/cpp/17" target="_blank">C++17</a> is now the minimum recommended standard</strong>, with <a href="https://en.cppreference.com/w/cpp/20" target="_blank">C++20</a> modules planned for later 5.x releases. The legacy C API (the old <code class="language-plaintext highlighter-rouge">cvXxx</code> function style) is officially deprecated in this release. It’s been a long time coming; the C API has been a maintenance burden and a source of confusion for newcomers for years.</p>

<p>The documentation has also been migrated from <a href="https://www.doxygen.nl" target="_blank">Doxygen</a> to <a href="https://www.sphinx-doc.org" target="_blank">Sphinx</a> + Doxygen, with persistent navigation, hand-written tutorials alongside the API reference, and Python and C++ signatures shown together. A small change in appearance, but a big improvement in day-to-day usability.</p>

<h2 id="whats-coming-next-in-the-5x-cycle">What’s coming next in the 5.x cycle</h2>

<p>The work isn’t done. The team has committed to GPU acceleration for the new DNN engine (<a href="https://developer.nvidia.com/cuda-toolkit" target="_blank">CUDA</a> and <a href="https://developer.nvidia.com/tensorrt" target="_blank">TensorRT</a>), a non-CPU HAL for accelerated pre/post-processing that avoids GPU-to-CPU round trips during inference, and C++20 module support. These are the pieces that will make OpenCV 5 really complete for production deep learning pipelines; right now the new engine is CPU-only, which limits where you’d actually deploy it.</p>

<h2 id="final-thoughts">Final thoughts</h2>

<p>OpenCV 5 is a real release. The DNN engine rewrite alone would justify a major version bump; everything else on top, the HAL, the 3D reorganization, the new data types, and the Python modernization, makes this feel like the library catching up to where the field has been for the past few years. The ~1 million daily installs figure and <a href="https://github.com/opencv/opencv" target="_blank">86,000+ GitHub stars</a> show how many projects still depend on it; this update will have a wide impact.</p>

<p>If you’re maintaining a computer vision pipeline that uses OpenCV’s DNN module, this is the time to start testing. The <code class="language-plaintext highlighter-rouge">ENGINE_AUTO</code> default means migration should be smooth for most cases, but it’s worth validating explicitly rather than assuming. The <a href="https://docs.opencv.org/5.0/" target="_blank">full OpenCV 5.0 documentation</a> is the best place to start.</p>

<p>If you want to get your hands on it right away, I put together a complete walkthrough of building 5.0.0 from source on Ubuntu 24.04 with the CUDA DNN backend: <a href="/tutorials/opencv/installing-opencv5-cuda-ubuntu/"><strong>Installing OpenCV 5 with CUDA and DNN Support on Ubuntu 24.04</strong></a>. It covers the NVIDIA® driver, CUDA and cuDNN stack, every CMake flag that actually decides whether GPU inference works, the NumPy 2 trap Ubuntu 24.04 sets for you, and a verification ladder that catches the silent failures OpenCV never reports.</p>

<p>Happy robotics programming… with vision! 🤖</p>]]></content><author><name>Walter Lucetti</name></author><category term="news" /><category term="computer_vision" /><category term="OpenCV" /><category term="computer_vision" /><category term="deep_learning" /><category term="news" /><category term="release" /><category term="opencv5" /><category term="DNN" /><category term="ONNX" /><summary type="html"><![CDATA[After years of development, OpenCV 5 officially launched at CVPR 2026. A complete DNN engine rewrite, native LLM/VLM support, FP16/BF16 types, HAL hardware acceleration, and a major 3D vision reorganization make this the biggest OpenCV release in years.]]></summary></entry><entry><title type="html">New ROS 2 Tutorial: Lifecycle (Managed) Nodes</title><link href="https://myzhar.tech/posts/ros2-lifecycle-nodes-tutorial/" rel="alternate" type="text/html" title="New ROS 2 Tutorial: Lifecycle (Managed) Nodes" /><published>2026-05-24T23:00:00+02:00</published><updated>2026-05-24T23:00:00+02:00</updated><id>https://myzhar.tech/posts/ros2-lifecycle-nodes-tutorial</id><content type="html" xml:base="https://myzhar.tech/posts/ros2-lifecycle-nodes-tutorial/"><![CDATA[<p>New tutorial out tonight: <strong><a href="/tutorials/ros2/ros2-lifecycle-nodes/">Lifecycle (Managed) Nodes: why, what, and how</a></strong>.</p>

<p>I’ve had this one sitting on my to-do list for quite a while, and for a very good reason. Lifecycle nodes are one of those topics that you can technically ignore when you’re first learning ROS 2, right up until the day a hardware conflict or a race condition crashes your robot in a way you can’t explain. At that point, you usually find yourself wishing someone had forced you to learn about managed nodes weeks earlier.</p>

<p>I’ve often joked that in robotics, timing isn’t just everything; it’s the only thing. I’ve been burned enough times by unmanaged hardware drivers doing the wrong thing at startup, or trying to publish data before the serial port was even open, that I finally decided it was time to sit down and write a proper, in-depth guide to this architecture.</p>

<p>I often find that beginners overlook Lifecycle nodes because they seem like unnecessary boilerplate. I certainly did at first. I remember thinking, “Why do I need a complex state machine just to start a node?” But as MyzharBot evolved from a simple mobile platform into a complex system with multiple GPUs and lidars, I realized that deterministic startup is the primary difference between a reliable robot and a fragile prototype.</p>

<p>In this tutorial, I cover the full lifecycle state machine from first principles. I break down the four primary states, the six transition states, and all the success and failure paths. I’ve also detailed exactly what I think should happen inside each callback to keep your system stable. To make it easier to visualize, I’ve included a detailed interactive diagram that you can expand to read every state and transition arrow at full resolution.</p>

<figure class="" style="max-width: 600px; margin: 0 auto;"><a href="/assets/images/tutorials/ros2_lifecycle_nodes/lifecycle-state-machine.svg" class="image-popup" title="The complete ROS 2 lifecycle node state machine. Blue = primary states, amber = transition states, red = error handling state. Green arrows = success, red arrows = failure, dashed orange = error/shutdown paths.
"><img src="/assets/images/tutorials/ros2_lifecycle_nodes/lifecycle-state-machine.svg" alt="ROS 2 Lifecycle Node State Machine diagram showing all states and transitions" /></a><figcaption>
      The complete ROS 2 lifecycle node state machine. Blue = primary states, amber = transition states, red = error handling state. Green arrows = success, red arrows = failure, dashed orange = error/shutdown paths.

    </figcaption></figure>

<p>On the practical side, I use my own ldrobot-lidar-ros2 driver as a concrete example of why this makes sense for hardware. I’ve found that being able to stop a LiDAR motor without actually closing the serial port, or reconfiguring the driver settings without destroying and recreating the entire node, is a massive time-saver when I’m out in the field.</p>

<p>I also spent a good chunk of the guide talking about <strong>Nav2’s Lifecycle Manager</strong>. More importantly, I explain why the Nav2 team felt the need to introduce their own <code class="language-plaintext highlighter-rouge">nav2_util::LifecycleNode</code> wrapper. I personally think the <em>bond</em> mechanism they added is a life-saver. If you’ve ever had your navigation stack silently fall apart because a depth camera node crashed and none of the other nodes noticed, you’ll appreciate why bonds are so important for safety-critical tasks.</p>

<p>I’m also continuing my new tradition of adding a “Test Your Knowledge” section at the end. I’ve put together seven multiple-choice questions, and I’ll warn you now: some of them have more than one correct answer. I put a particular amount of care into the question about <code class="language-plaintext highlighter-rouge">on_activate()</code>; let’s just say that one was inspired by a very long, very painful debugging session I had on MyzharBot a few years back! 😅</p>

<p>I really hope this tutorial helps you build more robust robots.</p>

<p>Happy robotics programming! 🤖</p>]]></content><author><name>Walter Lucetti</name></author><category term="updates" /><category term="website" /><category term="tutorials" /><category term="updates" /><category term="website" /><category term="tutorials" /><category term="ROS" /><category term="ROS_2" /><category term="robotics" /><category term="lifecycle" /><category term="managed_nodes" /><category term="nav2" /><category term="hardware_drivers" /><summary type="html"><![CDATA[A new in-depth tutorial covering the ROS 2 lifecycle state machine, all states and transitions, C++ implementation, Nav2 Lifecycle Manager, and real hardware driver examples.]]></summary></entry><entry><title type="html">Test Your Knowledge - A New Section in the ROS 2 Tutorials</title><link href="https://myzhar.tech/posts/ros2-tutorials-test-your-knowledge/" rel="alternate" type="text/html" title="Test Your Knowledge - A New Section in the ROS 2 Tutorials" /><published>2026-05-23T13:15:00+02:00</published><updated>2026-05-23T13:15:00+02:00</updated><id>https://myzhar.tech/posts/ros2-tutorials-test-your-knowledge</id><content type="html" xml:base="https://myzhar.tech/posts/ros2-tutorials-test-your-knowledge/"><![CDATA[<p>I’ve always believed that the best way to learn robotics is by doing, but I also know how easy it is to read a long technical guide, nod along, and then realize five minutes later that I didn’t actually retain the core concepts. When I was learning ROS 2 myself, I often found myself re-reading the same documentation pages over and over because I hadn’t properly tested my understanding of the “why” behind certain features.</p>

<p>One of the main goals I set for this tutorial series was to make each entry a genuine learning tool, not just a reference document to skim and forget. I want to make sure that when I explain a concept, I’m giving you a way to verify that it actually stuck.</p>

<p>That’s why I’m excited to announce that I’ve added a <strong>“Test Your Knowledge”</strong> section at the end of every ROS 2 tutorial on the site.</p>

<p>I didn’t want these to be boring, academic tests. I’ve personally designed each quiz to be a short set of multiple-choice questions that target the specific ideas that I’ve seen trip people up, including the mistakes I made myself during my first few months with ROS 2.</p>

<h2 id="what-it-looks-like">What it looks like</h2>

<p>Each quiz is a short set of multiple-choice questions covering the key ideas from that tutorial. Questions are deliberately practical, they focus on concepts that tend to trip people up or that matter when you’re working on a real system. You pick an answer, then expand a collapsible panel to see whether you got it right and, more importantly, <strong>why</strong>.</p>

<p>It looks like this:</p>

<blockquote>
  <p><strong>What is the default RMW implementation in ROS 2 Humble?</strong></p>

  <ul>
    <li>a) Cyclone DDS</li>
    <li>b) Fast DDS</li>
    <li>c) RTI Connext</li>
    <li>d) Zenoh</li>
  </ul>

  <details>
<summary>Show correct answer</summary>
<br />
<strong>b) Fast DDS</strong><br />
ROS 2 Humble ships with eProsima Fast DDS as its default RMW implementation.
</details>
</blockquote>

<p>No score, no time limit, just you and the material. If you find yourself unsure about an answer, it’s a good signal to re-read that section of the tutorial before moving on.</p>

<h2 id="where-to-find-it">Where to find it</h2>

<p>The section is already live in every published ROS 2 tutorial:</p>

<ul>
  <li><a href="/tutorials/ros2/understanding-ros2/">Understanding ROS 2</a></li>
  <li><a href="/tutorials/ros2/installing-ros2/">Installing ROS 2</a></li>
  <li><a href="/tutorials/ros2/starting-ros2-nodes/">Starting ROS 2 Nodes</a></li>
  <li><a href="/tutorials/ros2/understanding-ros2-middleware/">Understanding the ROS 2 Communication Middleware</a></li>
  <li><a href="/tutorials/ros2/configure-node-with-parameters/">Configuring a ROS 2 Node Using Parameters</a></li>
  <li><a href="/tutorials/ros2/understanding-ros2-namespace-node-name/">Understanding ROS 2 Node Names and Namespaces</a></li>
  <li><a href="/tutorials/ros2/python-launch-explained/">ROS 2 Python Launch File Explained</a></li>
  <li><a href="/tutorials/ros2/ros2-node-composition-explained/">ROS 2 Node Composition Explained</a></li>
</ul>

<p>Scroll to the bottom of any of these pages to find it.</p>

<h2 id="let-me-know-what-you-think">Let me know what you think</h2>

<p>This is a bit of an experiment for me. I’m genuinely curious if you find these quizzes useful. Do the questions hit the right difficulty level? Do they actually help you feel more confident about the material? I’m always looking for ways to make my site a better resource for the community, and I’d love to hear your thoughts on how I can improve this format.</p>

<p>If you have any feedback, please drop me a message at <strong>info@myzhar.com</strong> or reach out through my contact page. I read every single message I get, and I’m always happy to chat about robotics.</p>

<p>Happy robotics programming! 🤖</p>]]></content><author><name>Walter Lucetti</name></author><category term="updates" /><category term="website" /><category term="tutorials" /><category term="updates" /><category term="website" /><category term="tutorials" /><category term="ROS" /><category term="ROS_2" /><category term="robotics" /><category term="learning" /><summary type="html"><![CDATA[All ROS 2 tutorials now include a 'Test Your Knowledge' section with multiple-choice questions so you can verify how well you've understood the material.]]></summary></entry><entry><title type="html">ROS 2 Lyrical Luth is Here!</title><link href="https://myzhar.tech/posts/ros2-lyrical-luth-released/" rel="alternate" type="text/html" title="ROS 2 Lyrical Luth is Here!" /><published>2026-05-22T23:00:00+02:00</published><updated>2026-05-22T23:00:00+02:00</updated><id>https://myzhar.tech/posts/ros2-lyrical-luth-released</id><content type="html" xml:base="https://myzhar.tech/posts/ros2-lyrical-luth-released/"><![CDATA[<p>It’s out! <strong>ROS 2 Lyrical Luth</strong> has officially landed, and I have to say: this is the release I’ve been looking forward to for a while. It’s the twelfth ROS 2 distribution and a brand new <strong>Long-Term Support (LTS)</strong> release, supported until <strong>May 2031</strong>.</p>

<figure class="" style="max-width: 300px; margin: 0 auto;"><a href="/assets/images/ros2/ros2-lyrical-luth-release.jpg" class="image-popup"><img src="/assets/images/ros2/ros2-lyrical-luth-release.jpg" alt="ROS 2 Lyrical Luth" /></a></figure>

<p>It pairs with <strong>Ubuntu 26.04 “Resolute”</strong> as its primary Tier 1 platform, which makes total sense: Lyrical Luth + Ubuntu 26.04 is the LTS-on-LTS combo that most production teams have been waiting for. If you’re still on ROS 2 Humble with Ubuntu 22.04, now is a great time to start planning your migration.</p>

<hr />

<h2 id="whats-new-compared-to-jazzy">What’s new compared to Jazzy?</h2>

<p>Jazzy Jalisco was a good release, but Lyrical Luth brings some things that genuinely excited me when I read the changelog. Let me walk you through what I think is most interesting.</p>

<h3 id="callback-group-events-executor">Callback Group Events Executor</h3>

<p>This one is huge for performance. The new <code class="language-plaintext highlighter-rouge">CallbackGroupEventsExecutor</code> uses <strong>10–15% less CPU</strong> than the classic <code class="language-plaintext highlighter-rouge">SingleThreadedExecutor</code> and <code class="language-plaintext highlighter-rouge">MultiThreadedExecutor</code>. It also comes with proper support for multiple time sources and finer threading control. On nodes with a lot of callbacks, this is a meaningful free win; <strong>you just switch executor type and get better efficiency for nothing</strong>. Can’t wait to try it on my setups!</p>

<h3 id="async-ros-nodes-in-python-asyncnode">Async ROS Nodes in Python (<code class="language-plaintext highlighter-rouge">AsyncNode</code>)</h3>

<p>Finally! <code class="language-plaintext highlighter-rouge">rclpy</code> now has an <code class="language-plaintext highlighter-rouge">AsyncNode</code> base class that integrates ROS callbacks natively with Python’s <code class="language-plaintext highlighter-rouge">asyncio</code> event loop. If you’ve ever wrestled with mixing async code and ROS subscribers, you know how painful that could be. This makes the whole thing much cleaner and more CPU-efficient than the default <code class="language-plaintext highlighter-rouge">SingleThreadedExecutor</code>.</p>

<h3 id="zero-copy-gpu-data-transfer">Zero-Copy GPU Data Transfer</h3>

<p>This is the one I’m personally most excited about. <code class="language-plaintext highlighter-rouge">rosidl::Buffer</code> now lets you publish and subscribe to ROS messages <strong>without copying data between CPU and GPU memory</strong>. The initial support is for <code class="language-plaintext highlighter-rouge">rmw_fastrtps_cpp</code>, but it’s a game changer for any pipeline that touches deep learning or computer vision; the cost of memcpy between GPU frames has always been a silent killer of latency budgets.</p>

<h3 id="parameters-and-configuration">Parameters and configuration</h3>

<ul>
  <li><strong>YAML type annotations</strong>: you can now use <code class="language-plaintext highlighter-rouge">!!str</code>, <code class="language-plaintext highlighter-rouge">!!bool</code>, <code class="language-plaintext highlighter-rouge">!!int</code>, <code class="language-plaintext highlighter-rouge">!!float</code> tags in parameter files to resolve ambiguous type interpretation once and for all</li>
  <li><strong>Parameter range validation</strong> extended to integer and double arrays, not just scalars</li>
  <li>Expanded <code class="language-plaintext highlighter-rouge">ros2 param</code> CLI with batch operations on single nodes</li>
</ul>

<h3 id="launch-file-improvements">Launch file improvements</h3>

<p>A bunch of quality-of-life improvements here that will make launch files nicer to write and maintain:</p>

<ul>
  <li><strong>New substitutions</strong>: <code class="language-plaintext highlighter-rouge">string-join</code> and <code class="language-plaintext highlighter-rouge">path-join</code> for XML/YAML launch files</li>
  <li><strong>Per-message log level control</strong>: granular severity per message directly from the launch file</li>
  <li><strong>Runtime logging backend selection</strong>: via <code class="language-plaintext highlighter-rouge">RCL_LOGGING_IMPLEMENTATION</code> env variable, no rebuild needed</li>
</ul>

<h3 id="bag-recording-enhancements">Bag recording enhancements</h3>

<p>Several additions I’ve wanted for a long time:</p>

<ul>
  <li><strong>Remote control</strong> via ROS service APIs; start/stop/discover bags from anywhere on the network</li>
  <li><strong>Python bag APIs</strong> for programmatic pause, resume, seek, and state queries</li>
  <li><strong>Circular recording</strong> with <code class="language-plaintext highlighter-rouge">--max-bag-files</code> to cap disk usage by auto-deleting the oldest splits</li>
  <li><strong>Descriptive split naming</strong> with counter, prefix, and timestamp built in</li>
  <li><strong>Per-topic message loss statistics</strong> published to <code class="language-plaintext highlighter-rouge">events/rosbag2_messages_lost</code></li>
</ul>

<h3 id="cli-enhancements">CLI enhancements</h3>

<ul>
  <li><strong><code class="language-plaintext highlighter-rouge">ros2 topic bw</code></strong> can now monitor multiple topics at once</li>
  <li><strong><code class="language-plaintext highlighter-rouge">ros2 service info --verbose</code></strong> shows QoS profiles and endpoint details</li>
  <li><strong><code class="language-plaintext highlighter-rouge">ros2 doctor --report</code></strong> expanded to include actions, services, and ROS env variables</li>
  <li><strong>Fish shell</strong> support is finally here alongside bash/zsh 🐟</li>
</ul>

<h3 id="urdf-12">URDF 1.2</h3>

<p>The robot description format gets a proper update:</p>

<ul>
  <li><strong>Quaternion support</strong> via <code class="language-plaintext highlighter-rouge">quat_xyzw</code>, no more euler-only rotations</li>
  <li><strong>Capsule geometry</strong> as a new collision primitive</li>
  <li>Acceleration, deceleration, and jerk limits in joint definitions</li>
  <li><code class="language-plaintext highlighter-rouge">robot_state_publisher</code> can now subscribe to <code class="language-plaintext highlighter-rouge">robot_description</code> topic instead of only publishing it</li>
</ul>

<h3 id="tracing">Tracing</h3>

<p>For anyone doing serious performance work:</p>

<ul>
  <li><strong>Runtime opt-out</strong> via <code class="language-plaintext highlighter-rouge">TRACETOOLS_RUNTIME_DISABLE=1</code> disable instrumentation without a rebuild</li>
  <li><strong>Snapshot mode</strong> with LTTng for “flight recorder” style memory-buffered capture</li>
  <li><strong>Dual session tracing</strong> with separate sessions for initialization and runtime events</li>
</ul>

<h3 id="developer-quality-of-life">Developer quality of life</h3>

<ul>
  <li>Thread naming utilities in <code class="language-plaintext highlighter-rouge">rcpputils</code> for easier profiling and debugging</li>
  <li><code class="language-plaintext highlighter-rouge">class_loader</code> plugins can now accept constructor arguments for initialization parameters</li>
  <li><code class="language-plaintext highlighter-rouge">rcutils</code> gains Base64 encoding/decoding and <code class="language-plaintext highlighter-rouge">strnlen</code> for platform compatibility</li>
  <li>New CMake target <code class="language-plaintext highlighter-rouge">ament_ros_defaults</code> for consistent C/C++ version specification across packages</li>
</ul>

<hr />

<h2 id="supported-platforms">Supported platforms</h2>

<table>
  <thead>
    <tr>
      <th>Tier</th>
      <th>Platform</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>1</td>
      <td>Ubuntu 26.04 amd64 / arm64</td>
    </tr>
    <tr>
      <td>1</td>
      <td>Windows 11 (VS 2022) amd64</td>
    </tr>
    <tr>
      <td>2</td>
      <td>RHEL 10 amd64</td>
    </tr>
    <tr>
      <td>3</td>
      <td>Ubuntu 24.04, macOS, Debian Trixie, OpenEmbedded</td>
    </tr>
  </tbody>
</table>

<hr />

<h2 id="by-the-numbers">By the numbers</h2>

<p>Behind every <code class="language-plaintext highlighter-rouge">apt install ros-lyrical-*</code> there’s a massive community effort: <strong>239 contributors</strong>, <strong>110 beta testers</strong>, and nearly <strong>2,651 test cases</strong> executed. That’s pretty impressive, and it shows how healthy the ROS ecosystem remains.</p>

<hr />

<h2 id="whats-next">What’s next?</h2>

<p>The next non-LTS distribution, <strong>ROS 2 Makoa Mata-mata</strong>, is already on the calendar for May 2027.</p>

<p>If you’re on Jazzy, migration should be pretty smooth; most new features are additive and things like the executor change are opt-in. I covered the highlights here, but the full changelog is extensive, so check the <a href="https://docs.ros.org/en/lyrical/Releases/Release-Lyrical-Luth.html" target="_blank">official Lyrical Luth release notes</a> for the complete picture before jumping in on production systems.</p>

<p>Happy robotics programming! 🤖</p>]]></content><author><name>Walter Lucetti</name></author><category term="news" /><category term="robotics" /><category term="ROS" /><category term="ROS_2" /><category term="robotics" /><category term="news" /><category term="release" /><category term="lyrical_luth" /><category term="ubuntu" /><category term="lyrical" /><summary type="html"><![CDATA[The twelfth ROS 2 release lands today. A new LTS distribution built on Ubuntu 26.04, packed with performance gains, async Python support, zero-copy GPU transfers, and much more.]]></summary></entry><entry><title type="html">Introducing the ROS 2 Projects Section</title><link href="https://myzhar.tech/posts/new_ros2_projects_section/" rel="alternate" type="text/html" title="Introducing the ROS 2 Projects Section" /><published>2026-05-16T08:00:00+02:00</published><updated>2026-05-16T08:00:00+02:00</updated><id>https://myzhar.tech/posts/new_ros2_projects_section</id><content type="html" xml:base="https://myzhar.tech/posts/new_ros2_projects_section/"><![CDATA[<p>I’ve always felt that tutorials are a fantastic way to learn individual concepts, but there’s a different kind of value in seeing how those concepts actually come together in a real-world, production-ready piece of software. I’ve spent a lot of my time over the last few years building various ROS 2 packages to support my own robots and experiments, and I recently realized that just having them tucked away on GitHub wasn’t enough. I wanted a place here on my site where I could explain the “why” behind the technical choices I’ve made.</p>

<p>That’s why I’m so excited to finally launch the ROS 2 Projects section of the website. This space is dedicated to the open-source packages I’ve developed, providing a much deeper look into their architecture, their features, and, most importantly, how you can integrate them into your own robotic stacks.</p>

<p>I decided to kick things off with a project that is very close to my heart: the <strong>LD Lidar ROS 2 Driver</strong>. This project actually started from a place of mild frustration for me. Back in 2021, I backed the LDRobot Kickstarter for the LD19 lidar. When it finally arrived, I was eager to get it running on MyzharBot. However, I quickly discovered that while a ROS 1 driver existed, there was absolutely nothing for ROS 2. Since I was already moving all my development to the newer stack, I didn’t want to look back or use bridge hacks.</p>

<p>What began as a quick weekend hack for me to get a basic <code class="language-plaintext highlighter-rouge">/scan</code> topic publishing eventually evolved into a much more robust project. I didn’t want just a prototype script; I wanted a driver that followed modern ROS 2 best practices. I implemented it using Nav2 Lifecycle nodes to ensure predictable state management, integrated it with SLAM Toolbox for easy mapping, and I even sat down to model a custom URDF for the sensor because I couldn’t find a decent 3D model anywhere online.</p>

<p>I also added udev rules to handle those common “permission denied” serial port issues that always seem to pop up at the worst times, and I included benchmarking tools to verify latency, because in robotics, I know that every millisecond counts. It’s been incredibly rewarding for me to see members of the community chime in to confirm support for the LD06 sensor as well. Currently, I’ve ensured that everything works smoothly on both ROS 2 <strong>Humble</strong> and <strong>Jazzy</strong>.</p>

<p>This is just the beginning for the Projects section. I have several other packages in the pipeline, ranging from custom sensor interfaces to navigation utilities, that I can’t wait to document and share with you all. I truly believe that by sharing these complete projects, I can help others bridge the gap between “learning” ROS 2 and actually “building” with it.</p>

<figure class="third ">
  
    
      <a href="/assets/images/projects/ldrobot-lidar-ros2/ldlidar_rviz2.png" title="Live laser scan in RViz2">
          <img src="/assets/images/projects/ldrobot-lidar-ros2/ldlidar_rviz2.png" alt="Live laser scan in RViz2" />
      </a>
    
  
    
      <a href="/assets/images/projects/ldrobot-lidar-ros2/ld19_slam.png" title="2D occupancy map built with SLAM Toolbox">
          <img src="/assets/images/projects/ldrobot-lidar-ros2/ld19_slam.png" alt="2D occupancy map built with SLAM Toolbox" />
      </a>
    
  
    
      <a href="/assets/images/projects/ldrobot-lidar-ros2/ld19_3d_mount.jpg" title="LD19 on its 3D-printed mount">
          <img src="/assets/images/projects/ldrobot-lidar-ros2/ld19_3d_mount.jpg" alt="LD19 on its 3D-printed mount" />
      </a>
    
  
  
    <figcaption>RViz2 scan (left), SLAM Toolbox map (center), LD19 on its 3D-printed mount (right)
</figcaption>
  
</figure>

<p>I’m already working on the next set of project pages, so stay tuned for more updates!</p>

<p>Happy robotics programming! 🤖</p>]]></content><author><name>Walter Lucetti</name></author><category term="updates" /><category term="website" /><category term="projects" /><category term="updates" /><category term="website" /><category term="projects" /><category term="ROS" /><category term="ROS_2" /><category term="robotics" /><category term="lidar" /><category term="ldrobot" /><category term="LD19" /><category term="LD06" /><summary type="html"><![CDATA[A new section of the website dedicated to open source ROS 2 packages, starting with the LD Lidar ROS 2 Driver for LDRobot LD19/LD06 sensors.]]></summary></entry></feed>