<?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>Wed, 16 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>Docker Compose architecture for ROS 2: dependency-only images and mounted code</title>
      <link>https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/docker-compose-architecture/</link>
      <pubDate>Wed, 16 Sep 2026 00:00:00 +0000</pubDate>
      <author>contact@mulhamfetna.com (Mulham Fetna)</author>
      <guid>https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/docker-compose-architecture/</guid>
      <description>&lt;div class=&#34;lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl&#34;&gt;&#xA;  Both images hold dependencies and nothing else. The code and the robot model are mounted from your&#xA;checkout at runtime — so an edit is a five-second restart, not a five-minute rebuild.&#xA;&lt;/div&gt;&#xA;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;The big picture&#xA;    &lt;div id=&#34;the-big-picture&#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-big-picture&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;pre class=&#34;not-prose mermaid&#34;&gt;&#xA;flowchart TB&#xA;    subgraph HOST[&#34;🐧 Linux host&#34;]&#xA;        CAMDEV[&#34;/dev/video0&#34;]&#xA;        GPU[&#34;/dev/dri · Intel iGPU&#34;]&#xA;        X11[&#34;/tmp/.X11-unix&lt;br&gt;XWayland :0&#34;]&#xA;        SHM[&#34;/dev/shm&lt;br&gt;Fast DDS segments&#34;]&#xA;        NET[&#34;host network&lt;br&gt;UDP multicast · domain 42&#34;]&#xA;        REPO[&#34;repository checkout&#34;]&#xA;        subgraph VT[&#34;🐳 vision_tracker · 2.9 GB image&#34;]&#xA;            VN[&#34;vision_tracker_node.py&lt;br&gt;mediapipe 0.10.14 · OpenCV&#34;]&#xA;        end&#xA;        subgraph MT[&#34;🐳 mujoco_twin · 1.7 GB image&#34;]&#xA;            MN[&#34;mujoco_twin_node.py&lt;br&gt;mujoco 3.13.0 · GLFW&#34;]&#xA;        end&#xA;    end&#xA;    CAMDEV --&gt; VN&#xA;    GPU --&gt; VN&#xA;    GPU --&gt; MN&#xA;    X11 &lt;--&gt; VN&#xA;    X11 &lt;--&gt; MN&#xA;    VN &lt;--&gt; SHM &lt;--&gt; MN&#xA;    VN &lt;--&gt; NET &lt;--&gt; MN&#xA;    REPO -. &#34;bind mount .:/workspace:ro&#34; .-&gt; VN&#xA;    REPO -. &#34;bind mount .:/workspace:ro&#34; .-&gt; MN&#xA;&lt;/pre&gt;&#xA;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Repository layout&#xA;    &lt;div id=&#34;repository-layout&#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;#repository-layout&#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-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;├── docker-compose.yml          # both services, shared namespaces&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;├── setup_host.sh               # xhost + device checks, once per login&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;├── vision_tracker/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;│   ├── Dockerfile              # ros:jazzy + mediapipe==0.10.14&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;│   ├── .dockerignore           # src/ is mounted, so keep it out of the build context&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;│   └── src/vision_tracker_node.py&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;├── mujoco_twin/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;│   ├── Dockerfile              # ros:jazzy + mujoco==3.13.0&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;│   ├── .dockerignore           # src/ and model/ are mounted&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;│   ├── src/mujoco_twin_node.py&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;│   └── model/                  # scene.xml → robot.xml (+ tendons.xml), assets/, config.json&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;├── standalone/main.py          # the same pipeline, one process&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;└── docs/&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;p&gt;Each service folder is its own &lt;strong&gt;build context&lt;/strong&gt;: editing the vision Dockerfile never invalidates the&#xA;twin&amp;rsquo;s image cache, and neither build uploads the 13 MB of meshes it doesn&amp;rsquo;t need.&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/docker-compose-architecture/cover.png" />
    </item>
    
    <item>
      <title>From tutorial project to production robot: a roadmap for the tendon hand twin</title>
      <link>https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/roadmap-to-production/</link>
      <pubDate>Wed, 16 Sep 2026 00:00:00 +0000</pubDate>
      <author>contact@mulhamfetna.com (Mulham Fetna)</author>
      <guid>https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/roadmap-to-production/</guid>
      <description>&lt;div class=&#34;lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl&#34;&gt;&#xA;  The system works, and it teaches well. Getting it to drive real servos safely is a sequence of&#xA;well-scoped upgrades — each one grounded in a limitation measured earlier in this series.&#xA;&lt;/div&gt;&#xA;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Where it stands&#xA;    &lt;div id=&#34;where-it-stands&#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;#where-it-stands&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Area&lt;/th&gt;&#xA;          &lt;th&gt;Today&lt;/th&gt;&#xA;          &lt;th&gt;Production target&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Hand tracking&lt;/td&gt;&#xA;          &lt;td&gt;image-normalized landmarks, one global calibration&lt;/td&gt;&#xA;          &lt;td&gt;metric world landmarks, per-finger calibration, a temporal filter&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Command mapping&lt;/td&gt;&#xA;          &lt;td&gt;flexion → ±50 N; the twin is a switch&lt;/td&gt;&#xA;          &lt;td&gt;flexion → tendon length; proportional curl&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Physics model&lt;/td&gt;&#xA;          &lt;td&gt;force motors, decorative horns, no self-contact&lt;/td&gt;&#xA;          &lt;td&gt;position servos on horns, tuned stiffness, contacts for grasping&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Middleware&lt;/td&gt;&#xA;          &lt;td&gt;one topic, default QoS, open on the LAN&lt;/td&gt;&#xA;          &lt;td&gt;parameters, explicit QoS, a watchdog, SROS 2&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Containers&lt;/td&gt;&#xA;          &lt;td&gt;privileged, host namespaces, root, &lt;code&gt;xhost&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;least privilege, non-root, optional headless&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Code&lt;/td&gt;&#xA;          &lt;td&gt;classes copied into three files, no tests&lt;/td&gt;&#xA;          &lt;td&gt;one shared package, tests, CI&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Hardware&lt;/td&gt;&#xA;          &lt;td&gt;simulation only&lt;/td&gt;&#xA;          &lt;td&gt;a servo driver on the same topic&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;ol class=&#34;border-s-2 border-primary-500 dark:border-primary-300 list-none&#34;&gt;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&lt;li&gt;&#xA;  &lt;div class=&#34;flex&#34;&gt;&#xA;    &lt;div&#xA;      class=&#34;bg-primary-500 dark:bg-primary-300 text-neutral-50 dark:text-neutral-700 min-w-[30px] h-8 text-2xl flex items-center justify-center rounded-full ltr:-ml-12 rtl:-mr-[79px] mt-5&#34;&gt;&#xA;      &lt;span class=&#34;relative block icon&#34;&gt;&lt;svg xmlns=&#34;http://www.w3.org/2000/svg&#34; viewBox=&#34;0 0 448 512&#34;&gt;&lt;path fill=&#34;currentColor&#34; d=&#34;M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z&#34;/&gt;&lt;/svg&gt;&#xA;&lt;/span&gt;&#xA;    &lt;/div&gt;&#xA;    &lt;div class=&#34;block p-6 rounded-lg shadow-2xl flex-1 ms-6 mb-10 break-words&#34;&gt;&#xA;      &lt;div class=&#34;flex justify-between&#34;&gt;&#xA;        &#xA;          &lt;h2 class=&#34;mt-0&#34;&gt;Stage 1 · Correctness&lt;/h2&gt;&#xA;        &#xA;        &#xA;      &lt;/div&gt;&#xA;      &#xA;        &lt;h4 class=&#34;mt-0&#34;&gt;&#xA;          Measure the right thing, command the right quantity&#xA;        &lt;/h4&gt;&#xA;      &#xA;      &lt;div class=&#34;mb-6&#34;&gt;&#xA;        &lt;p&gt;&lt;strong&gt;World landmarks.&lt;/strong&gt; Image-normalized coordinates bend angles by up to 16° with hand orientation&#xA;(&lt;a href=&#34;https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/mediapipe-hands/&#34; &gt;Part 4&lt;/a&gt;).&#xA;Read &lt;code&gt;multi_hand_world_landmarks&lt;/code&gt; instead, then recalibrate.&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/roadmap-to-production/cover.png" />
    </item>
    
    <item>
      <title>GUI, webcam and GPU passthrough for ROS 2 and MuJoCo containers</title>
      <link>https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/docker-gui-camera-gpu/</link>
      <pubDate>Wed, 16 Sep 2026 00:00:00 +0000</pubDate>
      <author>contact@mulhamfetna.com (Mulham Fetna)</author>
      <guid>https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/docker-gui-camera-gpu/</guid>
      <description>&lt;div class=&#34;lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl&#34;&gt;&#xA;  Containers are headless by design. This project needs two windows, a webcam and a GPU — so the&#xA;Compose file spends most of its lines punching carefully chosen holes back through the isolation.&#xA;&lt;/div&gt;&#xA;&#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;low&#34;&#xA;    alt=&#34;Both GUI windows from two containers running together on one display&#34;&#xA;    src=&#34;https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/hero_teleoperation.gif&#34;&#xA;    &gt;&lt;figcaption&gt;Two containers, two windows, one X display: the Qt/OpenCV tracker (vision_tracker) and the GLFW MuJoCo viewer (mujoco_twin), recorded on Wayland through XWayland.&lt;/figcaption&gt;&lt;/figure&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Windows: pass the X11 socket through&#xA;    &lt;div id=&#34;windows-pass-the-x11-socket-through&#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;#windows-pass-the-x11-socket-through&#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;environment&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&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;DISPLAY&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;${DISPLAY:-:0}&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;QT_X11_NO_MITSHM&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;m&#34;&gt;1&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;volumes&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&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;l&#34;&gt;/tmp/.X11-unix:/tmp/.X11-unix:rw&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Piece&lt;/th&gt;&#xA;          &lt;th&gt;What it does&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;code&gt;/tmp/.X11-unix&lt;/code&gt; mount&lt;/td&gt;&#xA;          &lt;td&gt;the X server listens on a Unix socket here (&lt;code&gt;X0&lt;/code&gt; for &lt;code&gt;:0&lt;/code&gt;); mounting it gives the container a line to it&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;code&gt;DISPLAY&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;tells X clients (GLFW, Qt) which display to use; defaults to &lt;code&gt;:0&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;code&gt;QT_X11_NO_MITSHM=1&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;stops Qt — OpenCV&amp;rsquo;s &lt;code&gt;imshow&lt;/code&gt; backend — from using MIT-SHM, which fails across containers and gives blank or garbled windows&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;code&gt;xhost +local:root&lt;/code&gt; (in &lt;code&gt;setup_host.sh&lt;/code&gt;)&lt;/td&gt;&#xA;          &lt;td&gt;the X server refuses untrusted clients; this admits local root, which is who the containers run as&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&#xA;&lt;h3 class=&#34;relative group&#34;&gt;On Wayland&#xA;    &lt;div id=&#34;on-wayland&#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;#on-wayland&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h3&gt;&#xA;&lt;p&gt;Wayland sessions (KDE Plasma, GNOME) still run &lt;strong&gt;XWayland&lt;/strong&gt; on &lt;code&gt;:0&lt;/code&gt;, and both windows open through it —&#xA;the recording above was made exactly that way. Running MuJoCo &lt;em&gt;natively&lt;/em&gt; on a Wayland host, GLFW may&#xA;warn &lt;code&gt;Wayland: The platform does not provide the window position&lt;/code&gt;; it&amp;rsquo;s harmless.&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/docker-gui-camera-gpu/cover.png" />
    </item>
    
    <item>
      <title>How a webcam moves a simulated tendon-driven hand</title>
      <link>https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/architecture/</link>
      <pubDate>Wed, 16 Sep 2026 00:00:00 +0000</pubDate>
      <author>contact@mulhamfetna.com (Mulham Fetna)</author>
      <guid>https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/architecture/</guid>
      <description>&lt;div class=&#34;lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl&#34;&gt;&#xA;  One vision container turns webcam frames into five numbers. One simulation container turns those&#xA;numbers into tendon forces. Everything else in this series is detail inside one of those two boxes&#xA;— or the pipe between them.&#xA;&lt;/div&gt;&#xA;&#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;Peace sign, live: camera with MediaPipe landmarks, the twin with ring and pinky curled, and the motor forces −21 N on ring and pinky&#34;&#xA;    width=&#34;1570&#34;&#xA;    height=&#34;480&#34;&#xA;    src=&#34;https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/architecture/live_peace_sign_hu_10d6cdce7106932.jpg&#34;&#xA;    srcset=&#34;https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/architecture/live_peace_sign_hu_10d6cdce7106932.jpg 800w, https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/architecture/live_peace_sign_hu_c82c14c5f3244f84.jpg 1280w&#34;&#xA;    sizes=&#34;(min-width: 768px) 50vw, 65vw&#34;&#xA;    data-zoom-src=&#34;https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/architecture/live_peace_sign.jpg&#34;&gt;&lt;figcaption&gt;Left to right, three layers in one frame: vision (landmarks), simulation (the twin), actuation (live motor forces from MuJoCo&amp;rsquo;s Control panel).&lt;/figcaption&gt;&lt;/figure&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;End to end&#xA;    &lt;div id=&#34;end-to-end&#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;#end-to-end&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;pre class=&#34;not-prose mermaid&#34;&gt;&#xA;flowchart LR&#xA;    subgraph VISION[&#34;🐳 vision_tracker container&#34;]&#xA;        direction TB&#xA;        A[&#34;Webcam frame&lt;br&gt;640×480 BGR&#34;] --&gt; B[&#34;MediaPipe Hands&lt;br&gt;21 landmarks&#34;]&#xA;        B --&gt; C[&#34;3 knuckle angles / finger&lt;br&gt;dot product&#34;]&#xA;        C --&gt; D[&#34;mean → 1 curl angle&lt;br&gt;(underactuation)&#34;]&#xA;        D --&gt; E[&#34;normalize + clip&lt;br&gt;flexion 0..1&#34;]&#xA;    end&#xA;    subgraph TWIN[&#34;🐳 mujoco_twin container&#34;]&#xA;        direction TB&#xA;        F[&#34;lerp&lt;br&gt;+50 N … −50 N&#34;] --&gt; G[&#34;data.ctrl on&lt;br&gt;pull_{finger} motor&#34;]&#xA;        G --&gt; H[&#34;spatial tendon&lt;br&gt;through 6 sites&#34;]&#xA;        H --&gt; I[&#34;3 passive hinge joints&lt;br&gt;curl&#34;]&#xA;        I --&gt; J[&#34;MuJoCo viewer&#34;]&#xA;    end&#xA;    E -- &#34;ROS 2 · /hand/target_flexions&lt;br&gt;sensor_msgs/JointState&#34; --&gt; F&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Stage&lt;/th&gt;&#xA;          &lt;th&gt;What comes out&lt;/th&gt;&#xA;          &lt;th&gt;Deep dive&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;MediaPipe Hands&lt;/td&gt;&#xA;          &lt;td&gt;21 (x, y, z) landmarks per frame&lt;/td&gt;&#xA;          &lt;td&gt;&lt;a href=&#34;https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/mediapipe-hands/&#34; &gt;Part 4&lt;/a&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Triplet angles&lt;/td&gt;&#xA;          &lt;td&gt;3 interior angles per finger, in radians&lt;/td&gt;&#xA;          &lt;td&gt;&lt;a href=&#34;https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/joint-angles-dot-product/&#34; &gt;Part 5&lt;/a&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Averaging&lt;/td&gt;&#xA;          &lt;td&gt;1 curl angle per finger&lt;/td&gt;&#xA;          &lt;td&gt;&lt;a href=&#34;https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/underactuation-averaging/&#34; &gt;Part 6&lt;/a&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Normalization&lt;/td&gt;&#xA;          &lt;td&gt;flexion 0..1 (the thumb has its own window)&lt;/td&gt;&#xA;          &lt;td&gt;&lt;a href=&#34;https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/flexion-normalization/&#34; &gt;Parts 7&lt;/a&gt;–&lt;a href=&#34;https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/thumb-thresholds/&#34; &gt;8&lt;/a&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;ROS 2 topic&lt;/td&gt;&#xA;          &lt;td&gt;&lt;code&gt;JointState&lt;/code&gt;: names are fingers, positions are flexions&lt;/td&gt;&#xA;          &lt;td&gt;&lt;a href=&#34;https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/ros2-topic-contract/&#34; &gt;Part 15&lt;/a&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Lerp&lt;/td&gt;&#xA;          &lt;td&gt;force in newtons per tendon&lt;/td&gt;&#xA;          &lt;td&gt;&lt;a href=&#34;https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/flexion-to-force/&#34; &gt;Part 10&lt;/a&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Tendon physics&lt;/td&gt;&#xA;          &lt;td&gt;joint angles&lt;/td&gt;&#xA;          &lt;td&gt;&lt;a href=&#34;https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/tendon-physics-switch/&#34; &gt;Part 11&lt;/a&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Why the pipe carries flexions, not angles or forces&#xA;    &lt;div id=&#34;why-the-pipe-carries-flexions-not-angles-or-forces&#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;#why-the-pipe-carries-flexions-not-angles-or-forces&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;The contract between the containers is five unitless numbers: 0.0 is an open finger, 1.0 is a closed&#xA;one. That choice is the architecture.&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/architecture/cover.png" />
    </item>
    
    <item>
      <title>ROS 2 across Docker containers: shared network, discovery and Fast DDS shared memory</title>
      <link>https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/ros2-docker-network-shared-memory/</link>
      <pubDate>Wed, 16 Sep 2026 00:00:00 +0000</pubDate>
      <author>contact@mulhamfetna.com (Mulham Fetna)</author>
      <guid>https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/ros2-docker-network-shared-memory/</guid>
      <description>&lt;div class=&#34;lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl&#34;&gt;&#xA;  &amp;ldquo;The topic shows up in &lt;code&gt;ros2 topic list&lt;/code&gt;, but &lt;code&gt;echo&lt;/code&gt; prints nothing&amp;rdquo; — the classic ROS-in-Docker&#xA;symptom. Here&amp;rsquo;s why it happens, how two containers in this project share a network and a block of&#xA;memory instead, and what that costs.&#xA;&lt;/div&gt;&#xA;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;How ROS 2 nodes find each other&#xA;    &lt;div id=&#34;how-ros-2-nodes-find-each-other&#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;#how-ros-2-nodes-find-each-other&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;ROS 2 has no master. Nodes discover each other through &lt;strong&gt;DDS&lt;/strong&gt; — in Jazzy, &lt;strong&gt;eProsima Fast DDS&lt;/strong&gt; by&#xA;default — using the SPDP protocol:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Each participant announces itself over &lt;strong&gt;UDP multicast&lt;/strong&gt; (239.255.0.1) on ports derived from the&#xA;domain ID \(d\): discovery multicast on \(7400 + 250d\), unicast on \(7410 + 250d + 2p\) for&#xA;participant \(p\). For &lt;strong&gt;domain 42&lt;/strong&gt;: UDP &lt;strong&gt;17900&lt;/strong&gt; and &lt;strong&gt;17910+&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Peers exchange their topic endpoints; matching publishers and subscribers connect.&lt;/li&gt;&#xA;&lt;li&gt;Data flows over the best &lt;strong&gt;transport&lt;/strong&gt; both support — shared memory when they share a host and&#xA;&lt;code&gt;/dev/shm&lt;/code&gt;, UDP otherwise.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Why Docker&amp;rsquo;s default network breaks it&#xA;    &lt;div id=&#34;why-dockers-default-network-breaks-it&#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;#why-dockers-default-network-breaks-it&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Compose attaches services to a &lt;strong&gt;bridge network&lt;/strong&gt; — a private NATed subnet. Multicast isn&amp;rsquo;t reliably&#xA;routed across it, and machines on your LAN can&amp;rsquo;t reach container IPs at all.&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/ros2-docker-network-shared-memory/cover.png" />
    </item>
    
    <item>
      <title>Run the tendon-driven hand digital twin in 10 minutes</title>
      <link>https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/quickstart/</link>
      <pubDate>Wed, 16 Sep 2026 00:00:00 +0000</pubDate>
      <author>contact@mulhamfetna.com (Mulham Fetna)</author>
      <guid>https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/quickstart/</guid>
      <description>&lt;div class=&#34;lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl&#34;&gt;&#xA;  Clone, run one setup script, run one Compose command — and a webcam window and a MuJoCo viewer open&#xA;side by side, with a simulated hand that closes when you close yours. Here are four ways in,&#xA;from the full stack down to the bare model.&#xA;&lt;/div&gt;&#xA;&#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;low&#34;&#xA;    alt=&#34;What a working setup looks like: MediaPipe tracker window and the MuJoCo twin moving together&#34;&#xA;    src=&#34;https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/hero_teleoperation.gif&#34;&#xA;    &gt;&lt;figcaption&gt;The goal of this article: both windows open, and the twin follows your hand.&lt;/figcaption&gt;&lt;/figure&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;What you need&#xA;    &lt;div id=&#34;what-you-need&#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;#what-you-need&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Requirement&lt;/th&gt;&#xA;          &lt;th&gt;Check with&lt;/th&gt;&#xA;          &lt;th&gt;Notes&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Linux desktop, X11 or XWayland&lt;/td&gt;&#xA;          &lt;td&gt;&lt;code&gt;echo $DISPLAY&lt;/code&gt; → &lt;code&gt;:0&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;Wayland sessions work through XWayland&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Docker Engine + Compose v2&lt;/td&gt;&#xA;          &lt;td&gt;&lt;code&gt;docker compose version&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;Built with Docker 29.8 / Compose 5.5&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;A webcam&lt;/td&gt;&#xA;          &lt;td&gt;&lt;code&gt;ls /dev/video0&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;Close any other app using it&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;GPU device nodes&lt;/td&gt;&#xA;          &lt;td&gt;&lt;code&gt;ls /dev/dri&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;Intel/AMD out of the box; NVIDIA needs the container toolkit (&lt;a href=&#34;https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/docker-gui-camera-gpu/&#34; &gt;Part 18&lt;/a&gt;)&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;~5 GB of disk&lt;/td&gt;&#xA;          &lt;td&gt;&lt;/td&gt;&#xA;          &lt;td&gt;images: vision 2.9 GB, twin 1.7 GB&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;No ROS installation is needed on the host — ROS 2 Jazzy lives inside the containers.&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Four ways to run it&#xA;    &lt;div id=&#34;four-ways-to-run-it&#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;#four-ways-to-run-it&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;div&#xA;  class=&#34;tab__container w-full&#34;&#xA;  &#xA;  &gt;&#xA;  &lt;div class=&#34;tab__nav&#34; role=&#34;tablist&#34;&gt;&#xA;    &lt;div class=&#34;flex flex-wrap gap-1&#34;&gt;&lt;button&#xA;          class=&#34;tab__button px-3 py-2 text-sm font-semibold border-b-2 border-transparent rounded-t-md hover:bg-neutral-200 dark:hover:bg-neutral-700 tab--active&#34;&#xA;          role=&#34;tab&#34;&#xA;          aria-selected=&#34;true&#34;&#xA;          data-tab-index=&#34;0&#34;&#xA;          data-tab-label=&#34;Docker Compose (full stack)&#34;&gt;&#xA;          &lt;span class=&#34;flex items-center gap-1&#34;&gt;&#xA;            &#xA;            Docker Compose (full stack)&#xA;          &lt;/span&gt;&#xA;        &lt;/button&gt;&lt;button&#xA;          class=&#34;tab__button px-3 py-2 text-sm font-semibold border-b-2 border-transparent rounded-t-md hover:bg-neutral-200 dark:hover:bg-neutral-700 &#34;&#xA;          role=&#34;tab&#34;&#xA;          aria-selected=&#34;false&#34;&#xA;          data-tab-index=&#34;1&#34;&#xA;          data-tab-label=&#34;Single Python script&#34;&gt;&#xA;          &lt;span class=&#34;flex items-center gap-1&#34;&gt;&#xA;            &#xA;            Single Python script&#xA;          &lt;/span&gt;&#xA;        &lt;/button&gt;&lt;button&#xA;          class=&#34;tab__button px-3 py-2 text-sm font-semibold border-b-2 border-transparent rounded-t-md hover:bg-neutral-200 dark:hover:bg-neutral-700 &#34;&#xA;          role=&#34;tab&#34;&#xA;          aria-selected=&#34;false&#34;&#xA;          data-tab-index=&#34;2&#34;&#xA;          data-tab-label=&#34;Twin only, no camera&#34;&gt;&#xA;          &lt;span class=&#34;flex items-center gap-1&#34;&gt;&#xA;            &#xA;            Twin only, no camera&#xA;          &lt;/span&gt;&#xA;        &lt;/button&gt;&lt;button&#xA;          class=&#34;tab__button px-3 py-2 text-sm font-semibold border-b-2 border-transparent rounded-t-md hover:bg-neutral-200 dark:hover:bg-neutral-700 &#34;&#xA;          role=&#34;tab&#34;&#xA;          aria-selected=&#34;false&#34;&#xA;          data-tab-index=&#34;3&#34;&#xA;          data-tab-label=&#34;Model viewer&#34;&gt;&#xA;          &lt;span class=&#34;flex items-center gap-1&#34;&gt;&#xA;            &#xA;            Model viewer&#xA;          &lt;/span&gt;&#xA;        &lt;/button&gt;&lt;/div&gt;&#xA;  &lt;/div&gt;&#xA;  &lt;div class=&#34;tab__content mt-4&#34;&gt;&lt;div class=&#34;tab__panel tab--active&#34; data-tab-index=&#34;0&#34;&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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;git clone https://github.com/mulhamfetna/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation.git&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;cd&lt;/span&gt; ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;./setup_host.sh              &lt;span class=&#34;c1&#34;&gt;# X11 access for the containers + camera/GPU checks (once per login)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;docker compose up --build    &lt;span class=&#34;c1&#34;&gt;# builds both images, starts vision_tracker and mujoco_twin&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;Stop with &lt;code&gt;Ctrl+C&lt;/code&gt;, then &lt;code&gt;docker compose down&lt;/code&gt; to release the camera.&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/quickstart/cover.png" />
    </item>
    
    <item>
      <title>The ROS 2 topic contract: one JointState topic, two nodes, and rclpy inside a render loop</title>
      <link>https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/ros2-topic-contract/</link>
      <pubDate>Wed, 16 Sep 2026 00:00:00 +0000</pubDate>
      <author>contact@mulhamfetna.com (Mulham Fetna)</author>
      <guid>https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/ros2-topic-contract/</guid>
      <description>&lt;div class=&#34;lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl&#34;&gt;&#xA;  The whole ROS 2 layer is one topic carrying five numbers. The interesting decisions are what those&#xA;numbers mean, which message type carries them, and how to run a ROS subscriber when a 3D viewer owns&#xA;your main thread.&#xA;&lt;/div&gt;&#xA;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Why ROS 2 between vision and physics at all?&#xA;    &lt;div id=&#34;why-ros-2-between-vision-and-physics-at-all&#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;#why-ros-2-between-vision-and-physics-at-all&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;The single-process script works well. Splitting it across ROS 2 buys:&lt;/p&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Benefit&lt;/th&gt;&#xA;          &lt;th&gt;Concretely&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;strong&gt;Process isolation&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;a MediaPipe crash doesn&amp;rsquo;t kill the simulator, and vice versa&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;strong&gt;Independent environments&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;vision and physics get their own container, dependencies and restarts&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;strong&gt;Swappable endpoints&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;replace the twin with a servo driver, or the tracker with a data glove&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;strong&gt;Free observability&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;&lt;code&gt;ros2 topic echo&lt;/code&gt;, &lt;code&gt;hz&lt;/code&gt;, &lt;code&gt;bag record&lt;/code&gt; on the live stream&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;strong&gt;Network transparency&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;any machine on the LAN can subscribe&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;The costs — a bigger stack, DDS configuration, one more hop — are small next to 19–85 ms of inference&#xA;(&lt;a href=&#34;https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/latency-benchmark/&#34; &gt;Part 19&lt;/a&gt;).&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;The node graph&#xA;    &lt;div id=&#34;the-node-graph&#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-node-graph&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;pre class=&#34;not-prose mermaid&#34;&gt;&#xA;flowchart LR&#xA;    subgraph C1[&#34;🐳 vision_tracker&#34;]&#xA;        V[&#34;/vision_tracker_node&lt;br&gt;timer · 30 Hz&#34;]&#xA;    end&#xA;    subgraph C2[&#34;🐳 mujoco_twin&#34;]&#xA;        T[&#34;/mujoco_twin_node&lt;br&gt;spin_once in viewer loop&#34;]&#xA;    end&#xA;    V -- &#34;/hand/target_flexions&lt;br&gt;sensor_msgs/JointState · depth 10&#34; --&gt; T&#xA;    V -. &#34;any LAN subscriber&lt;br&gt;ROS_DOMAIN_ID=42&#34; .-&gt; X[&#34;ros2 topic echo · rosbag&lt;br&gt;future servo driver&#34;]&#xA;&lt;/pre&gt;&#xA;&#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;Peace sign live: the tracked hand, the twin, and the forces produced from the topic&amp;rsquo;s flexions&#34;&#xA;    width=&#34;1570&#34;&#xA;    height=&#34;480&#34;&#xA;    src=&#34;https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/ros2-topic-contract/live_peace_sign_hu_10d6cdce7106932.jpg&#34;&#xA;    srcset=&#34;https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/ros2-topic-contract/live_peace_sign_hu_10d6cdce7106932.jpg 800w, https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/ros2-topic-contract/live_peace_sign_hu_c82c14c5f3244f84.jpg 1280w&#34;&#xA;    sizes=&#34;(min-width: 768px) 50vw, 65vw&#34;&#xA;    data-zoom-src=&#34;https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/ros2-topic-contract/live_peace_sign.jpg&#34;&gt;&lt;figcaption&gt;Every frame of the twin is driven by one JointState message like the one below.&lt;/figcaption&gt;&lt;/figure&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;The contract&#xA;    &lt;div id=&#34;the-contract&#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-contract&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Field&lt;/th&gt;&#xA;          &lt;th&gt;Value&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Topic&lt;/td&gt;&#xA;          &lt;td&gt;&lt;code&gt;/hand/target_flexions&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Type&lt;/td&gt;&#xA;          &lt;td&gt;&lt;code&gt;sensor_msgs/msg/JointState&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Publisher&lt;/td&gt;&#xA;          &lt;td&gt;&lt;code&gt;vision_tracker_node&lt;/code&gt;, timer at 30 Hz — effective rate bounded by inference&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Subscriber&lt;/td&gt;&#xA;          &lt;td&gt;&lt;code&gt;mujoco_twin_node&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;QoS&lt;/td&gt;&#xA;          &lt;td&gt;default reliable, keep-last &lt;strong&gt;10&lt;/strong&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;code&gt;header.stamp&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;publisher clock at publish time&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;code&gt;name&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;&lt;code&gt;[&amp;quot;thumb&amp;quot;, &amp;quot;index&amp;quot;, &amp;quot;middle&amp;quot;, &amp;quot;ring&amp;quot;, &amp;quot;pinky&amp;quot;]&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;code&gt;position&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;flexion per finger, &lt;strong&gt;0.0 open … 1.0 closed&lt;/strong&gt;, same order as &lt;code&gt;name&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;code&gt;velocity&lt;/code&gt;, &lt;code&gt;effort&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;empty&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;A real message, captured with &lt;code&gt;ros2 topic echo&lt;/code&gt; during testing (published by hand with &lt;code&gt;ros2 topic pub&lt;/code&gt;,&#xA;hence the zero stamp):&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/ros2-topic-contract/cover.png" />
    </item>
    
    <item>
      <title>Troubleshooting and FAQ: MuJoCo, MediaPipe and ROS 2 in Docker</title>
      <link>https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/troubleshooting-faq/</link>
      <pubDate>Wed, 16 Sep 2026 00:00:00 +0000</pubDate>
      <author>contact@mulhamfetna.com (Mulham Fetna)</author>
      <guid>https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/troubleshooting-faq/</guid>
      <description>&lt;div class=&#34;lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl&#34;&gt;&#xA;  Every entry here was hit, or deliberately checked, while building this project. Error messages are&#xA;quoted exactly so a search for the message lands on the fix.&#xA;&lt;/div&gt;&#xA;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Camera and windows&#xA;    &lt;div id=&#34;camera-and-windows&#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;#camera-and-windows&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&#xA;&lt;h3 class=&#34;relative group&#34;&gt;&lt;code&gt;RuntimeError: Failed to open camera at index 0&lt;/code&gt;&#xA;    &lt;div id=&#34;runtimeerror-failed-to-open-camera-at-index-0&#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;#runtimeerror-failed-to-open-camera-at-index-0&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Something else holds the webcam&lt;/strong&gt; — the standalone script, a previous container, a browser tab.&#xA;Run &lt;code&gt;docker compose down&lt;/code&gt; and close video apps. A camera opens in one process at a time.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;The camera is another node.&lt;/strong&gt; &lt;code&gt;ls /dev/video*&lt;/code&gt;, then map that device and set &lt;code&gt;CAMERA_INDEX&lt;/code&gt;&#xA;(many webcams expose &lt;code&gt;/dev/video0&lt;/code&gt; for frames and &lt;code&gt;/dev/video1&lt;/code&gt; for metadata — use the first).&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;The device isn&amp;rsquo;t mapped.&lt;/strong&gt; Check with &lt;code&gt;docker compose config | grep video&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h3 class=&#34;relative group&#34;&gt;Windows don&amp;rsquo;t open — &lt;code&gt;cannot connect to X server&lt;/code&gt;, &lt;code&gt;could not connect to display&lt;/code&gt;&#xA;    &lt;div id=&#34;windows-dont-open--cannot-connect-to-x-server-could-not-connect-to-display&#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;#windows-dont-open--cannot-connect-to-x-server-could-not-connect-to-display&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Run &lt;code&gt;./setup_host.sh&lt;/code&gt; (it runs &lt;code&gt;xhost +local:root&lt;/code&gt;). The permission resets when you log out.&lt;/li&gt;&#xA;&lt;li&gt;Make sure &lt;code&gt;echo $DISPLAY&lt;/code&gt; on the host prints &lt;code&gt;:0&lt;/code&gt;, or export &lt;code&gt;DISPLAY&lt;/code&gt; before &lt;code&gt;docker compose up&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;On Wayland, confirm XWayland is running: &lt;code&gt;ls /tmp/.X11-unix/&lt;/code&gt; should list &lt;code&gt;X0&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h3 class=&#34;relative group&#34;&gt;Black, blank or garbled OpenCV window&#xA;    &lt;div id=&#34;black-blank-or-garbled-opencv-window&#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;#black-blank-or-garbled-opencv-window&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h3&gt;&#xA;&lt;p&gt;&lt;code&gt;QT_X11_NO_MITSHM=1&lt;/code&gt; must reach the container. It&amp;rsquo;s in the shared Compose environment — if a service&#xA;defines its own &lt;code&gt;environment:&lt;/code&gt;, it must merge the shared anchor with &lt;code&gt;&amp;lt;&amp;lt;: *ros-env&lt;/code&gt; rather than&#xA;replace it (&lt;a href=&#34;https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/docker-compose-architecture/&#34; &gt;Part 16&lt;/a&gt;).&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/troubleshooting-faq/cover.png" />
    </item>
    
    <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>
