<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ros2 on Mulham Fetna</title>
    <link>https://mulhamfetna.com/tags/ros2/</link>
    <description>Recent content in Ros2 on Mulham Fetna</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <managingEditor>contact@mulhamfetna.com (Mulham Fetna)</managingEditor>
    <webMaster>contact@mulhamfetna.com (Mulham Fetna)</webMaster>
    <copyright>© 2026 Mulham Fetna</copyright>
    <lastBuildDate>Tue, 08 Sep 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://mulhamfetna.com/tags/ros2/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>A webcam, some vector geometry, and a hand that moves</title>
      <link>https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/overview/</link>
      <pubDate>Tue, 08 Sep 2026 00:00:00 +0000</pubDate>
      <author>contact@mulhamfetna.com (Mulham Fetna)</author>
      <guid>https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/overview/</guid>
      <description>&lt;div class=&#34;lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl&#34;&gt;&#xA;  Everything in this series in one read: how a $20 webcam ends up driving a 15-DOF CAD model in&#xA;real time, why every step is deliberately explicit rather than learned, and what broke along the&#xA;way.&#xA;&lt;/div&gt;&#xA;&#xA;&lt;p&gt;You hold your hand up to a laptop camera. On the other half of the screen, a robotic hand —&#xA;designed in CAD, never manufactured — closes its fingers at the same moment yours do.&lt;/p&gt;&#xA;&lt;p&gt;There is no glove, no marker, no depth sensor. Just an RGB webcam, two small neural networks,&#xA;about forty lines of vector geometry, and a middleware stack that thinks it is talking to a real&#xA;robot.&lt;/p&gt;&#xA;&lt;p&gt;All of it is open source under AGPL-3.0 and archived with a DOI:&#xA;&lt;a href=&#34;https://doi.org/10.5281/zenodo.22658556&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;10.5281/zenodo.22658556&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;pre class=&#34;not-prose mermaid&#34;&gt;&#xA;flowchart LR&#xA;    A[&#34;📷 Webcam&lt;br&gt;/dev/video0&#34;] --&gt; B[&#34;BlazePalm&lt;br&gt;palm detector&#34;]&#xA;    B --&gt; C[&#34;Landmark regressor&lt;br&gt;21 × (x, y, z)&#34;]&#xA;    C --&gt; D[&#34;Dot-product geometry&lt;br&gt;15 interior angles&#34;]&#xA;    D --&gt; E[&#34;Normalize → flexion&lt;br&gt;0.0 straight · 1.0 curled&#34;]&#xA;    E --&gt; F[&#34;Lerp onto the URDF&#39;s&lt;br&gt;mechanical limits&#34;]&#xA;    F --&gt; G[&#34;/joint_states&#34;]&#xA;    G --&gt; H[&#34;robot_state_publisher&lt;br&gt;→ /tf&#34;]&#xA;    H --&gt; I[&#34;🖥️ RViz digital twin&#34;]&#xA;&lt;/pre&gt;&#xA;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;The rule that shaped the build&#xA;    &lt;div id=&#34;the-rule-that-shaped-the-build&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#the-rule-that-shaped-the-build&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;There is an easier version of this project. Collect a few thousand frames of a hand next to the&#xA;corresponding CAD poses, train a network to map one to the other, and let gradient descent work out&#xA;the relationship.&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/overview/featured.png" />
    </item>
    
    <item>
      <title>Containerizing ROS 2 without losing the hardware</title>
      <link>https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/docker-gazebo/</link>
      <pubDate>Tue, 08 Sep 2026 00:00:00 +0000</pubDate>
      <author>contact@mulhamfetna.com (Mulham Fetna)</author>
      <guid>https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/docker-gazebo/</guid>
      <description>&lt;div class=&#34;lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl&#34;&gt;&#xA;  Web developers containerize to isolate processes. Roboticists containerize and then spend the rest&#xA;of the day punching holes back through the isolation — for the camera, the GPU, the display server&#xA;and the network.&#xA;&lt;/div&gt;&#xA;&#xA;&lt;p&gt;ROS 2 Jazzy is hard-locked to Ubuntu 24.04. That single fact is reason enough to containerize:&#xA;without it, adopting a ROS distribution means adopting an operating system version, on every machine&#xA;that will ever run the code.&lt;/p&gt;&#xA;&lt;p&gt;But a ROS container is a strange artifact. A web service container wants isolation — that is the&#xA;product. A robotics container needs a webcam, a GPU, a display server and multicast networking, all&#xA;of which live outside it. You end up building a box and then carefully cutting four holes in it.&lt;/p&gt;&#xA;&lt;p&gt;Here is every hole in this project&amp;rsquo;s compose file and what it is for.&lt;/p&gt;&#xA;&lt;figure&gt;&lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;auto&#34;&#xA;    alt=&#34;A full docker compose up &amp;ndash;build: image layers exporting, colcon building hand_msgs inside both Python containers, then the ROS nodes attaching&#34;&#xA;    width=&#34;900&#34;&#xA;    height=&#34;947&#34;&#xA;    src=&#34;https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/docker-gazebo/compose-build-log_hu_7eb02bda97083a9.png&#34;&#xA;    srcset=&#34;https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/docker-gazebo/compose-build-log_hu_7eb02bda97083a9.png 800w, https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/docker-gazebo/compose-build-log.png 1280w&#34;&#xA;    sizes=&#34;(min-width: 768px) 50vw, 65vw&#34;&#xA;    data-zoom-src=&#34;https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/docker-gazebo/compose-build-log.png&#34;&gt;&lt;figcaption&gt;Cold start to live tracking. Note hand_msgs being compiled separately inside two different containers — that duplication is deliberate and load-bearing.&lt;/figcaption&gt;&lt;/figure&gt;&#xA;&lt;pre class=&#34;not-prose mermaid&#34;&gt;&#xA;flowchart TB&#xA;    subgraph HOST[&#34;🖥️ Host — Ubuntu / Kubuntu&#34;]&#xA;        X11[&#34;X11 socket&lt;br&gt;/tmp/.X11-unix&#34;]&#xA;        CAM[&#34;/dev/video0&#34;]&#xA;        GPU[&#34;/dev/dri&#34;]&#xA;        NET[&#34;host network&lt;br&gt;UDP multicast&#34;]&#xA;    end&#xA;    subgraph C[&#34;Active containers · ROS_DOMAIN_ID=42&#34;]&#xA;        HT[&#34;hand_tracker&#34;]&#xA;        RV[&#34;ros_rviz&#34;]&#xA;        TS[&#34;topic_sniffer&#34;]&#xA;    end&#xA;    GZ[&#34;gazebo_sim&lt;br&gt;(commented out)&#34;]:::parked&#xA;    classDef parked stroke-dasharray: 5 5,opacity:0.55&#xA;    CAM --&gt; HT&#xA;    GPU --&gt; HT&#xA;    GPU --&gt; RV&#xA;    X11 --&gt; HT&#xA;    X11 --&gt; RV&#xA;    NET &lt;--&gt; HT&#xA;    NET &lt;--&gt; RV&#xA;    NET &lt;--&gt; TS&#xA;&lt;/pre&gt;&#xA;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Hole 1 — the network wall has to come down&#xA;    &lt;div id=&#34;hole-1--the-network-wall-has-to-come-down&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#hole-1--the-network-wall-has-to-come-down&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight-wrapper&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;network_mode&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;host&amp;#34;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;ipc&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;host&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;pid&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;host&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;p&gt;This is the one that breaks stacks silently, so it is worth understanding rather than copying.&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/docker-gazebo/featured.png" />
    </item>
    
    <item>
      <title>From camera coordinates to mechanical radians</title>
      <link>https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/kinematics/</link>
      <pubDate>Tue, 08 Sep 2026 00:00:00 +0000</pubDate>
      <author>contact@mulhamfetna.com (Mulham Fetna)</author>
      <guid>https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/kinematics/</guid>
      <description>&lt;div class=&#34;lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl&#34;&gt;&#xA;  Twenty-one points in a camera&amp;rsquo;s coordinate system on one side. A CAD assembly with hard mechanical&#xA;stops on the other. This is the arithmetic that makes them agree — and the one row where it&#xA;currently does not.&#xA;&lt;/div&gt;&#xA;&#xA;&lt;p&gt;The vision layer gives you 21 points floating in a normalized coordinate space that has no physical&#xA;units and a faked depth axis. The mechanical layer gives you fifteen revolute joints, each with a&#xA;lower and upper bound in radians that came out of a CAD mate.&lt;/p&gt;&#xA;&lt;p&gt;Nothing connects them. Building that connection is the actual work of this project, and it happens&#xA;in about forty lines of Python.&lt;/p&gt;&#xA;&lt;pre class=&#34;not-prose mermaid&#34;&gt;&#xA;flowchart LR&#xA;    A[&#34;21 landmarks&lt;br&gt;(x, y, z) normalized&#34;] --&gt; B[&#34;Triplet selection&lt;br&gt;15 × (p₁, p₂, p₃)&#34;]&#xA;    B --&gt; C[&#34;Two vectors per joint&lt;br&gt;v₁ = p₁ − p₂ · v₂ = p₃ − p₂&#34;]&#xA;    C --&gt; D[&#34;Dot product → arccos&lt;br&gt;θ in radians&#34;]&#xA;    D --&gt; E[&#34;Normalize&lt;br&gt;flexion ∈ [0, 1]&#34;]&#xA;    E --&gt; F[&#34;Lerp onto URDF limits&lt;br&gt;θ_urdf&#34;]&#xA;    F --&gt; G[&#34;JointState&lt;br&gt;names + positions&#34;]&#xA;&lt;/pre&gt;&#xA;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Step 1 — pick three points&#xA;    &lt;div id=&#34;step-1--pick-three-points&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#step-1--pick-three-points&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;To measure a joint you need the joint itself and the two bones meeting at it. In landmark terms:&#xA;the vertex, plus its two neighbours.&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/kinematics/featured.png" />
    </item>
    
    <item>
      <title>Why ROS 2 earns its complexity — and how this graph is wired</title>
      <link>https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/ros2/</link>
      <pubDate>Tue, 08 Sep 2026 00:00:00 +0000</pubDate>
      <author>contact@mulhamfetna.com (Mulham Fetna)</author>
      <guid>https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/ros2/</guid>
      <description>&lt;div class=&#34;lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl&#34;&gt;&#xA;  Every mechatronics engineer hits the wall where ROS 2 feels like an enormous tax just to move a few&#xA;servos. Here is when that instinct is right, when it stops being right, and what this project&amp;rsquo;s&#xA;graph actually looks like.&#xA;&lt;/div&gt;&#xA;&#xA;&lt;p&gt;Writing raw sockets on an ESP32 is cleaner on day one. It is genuinely simpler, genuinely faster to&#xA;get moving, and for a single microcontroller driving a handful of servos it is often the correct&#xA;engineering decision.&lt;/p&gt;&#xA;&lt;p&gt;ROS 2 is not a plug-and-play convenience layer. It is distributed middleware built to solve problems&#xA;you do not have yet — time-synchronizing asynchronous nodes, standardizing message types across C++&#xA;and Python, managing coordinate transform trees that nest six levels deep. Adopting it before you&#xA;have those problems is pure overhead.&lt;/p&gt;&#xA;&lt;p&gt;The question is when you cross over. For this project, the crossing point was concrete: &lt;strong&gt;the moment&#xA;a second consumer needed the same hand data.&lt;/strong&gt; One script drawing on a frame is trivial. One script&#xA;producing angles, another rendering a kinematic tree, a third logging telemetry, all needing the same&#xA;data at the same instant without knowing about each other — that is when the framework starts paying&#xA;rent.&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/ros2/featured.png" />
    </item>
    
  </channel>
</rss>
