<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Docker on Mulham Fetna</title>
    <link>https://mulhamfetna.com/tags/docker/</link>
    <description>Recent content in Docker 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/docker/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>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>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>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>What limits the frame rate: MediaPipe, Docker and a MuJoCo viewer on one laptop</title>
      <link>https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/latency-benchmark/</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/latency-benchmark/</guid>
      <description>&lt;div class=&#34;lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl&#34;&gt;&#xA;  The single-script version felt smoother than the containers. The obvious suspect was Docker. The&#xA;measurements say otherwise — and point at something more interesting: two programs sharing one&#xA;integrated GPU.&#xA;&lt;/div&gt;&#xA;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Setup&#xA;    &lt;div id=&#34;setup&#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;#setup&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Laptop with an Intel Comet Lake CPU (12 threads) and Intel UHD Graphics; Linux on Wayland with&#xA;XWayland; USB webcam at 640×480, 30 fps, YUYV. Each row: mean of 150 frames after a 10-frame warm-up,&#xA;no hand in view. Measured 2026-09-16.&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;The result&#xA;    &lt;div id=&#34;the-result&#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-result&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&#xA;&lt;div class=&#34;chart&#34;&gt;&#xA;  &lt;canvas id=&#34;chart-f3b6ad3cd76a079ab08a776ccfdc0f69&#34;&gt;&lt;/canvas&gt;&#xA;  &lt;script type=&#34;text/javascript&#34;&gt;&#xA;    window.addEventListener(&#34;DOMContentLoaded&#34;, (event) =&gt; {&#xA;      const ctx = document.getElementById(&#34;chart-f3b6ad3cd76a079ab08a776ccfdc0f69&#34;);&#xA;      const chart = new Chart(ctx, {&#xA;        &#xA;type: &#39;bar&#39;,&#xA;data: {&#xA;  labels: [&#39;Vision alone (container)&#39;, &#39;Vision alone (host venv)&#39;, &#39;+ 1-core CPU burner&#39;, &#39;+ MuJoCo viewer (host, no Docker)&#39;, &#39;+ mujoco_twin (loop capped 30 Hz)&#39;, &#39;+ mujoco_twin (as shipped)&#39;],&#xA;  datasets: [{&#xA;    label: &#39;MediaPipe time per frame (ms)&#39;,&#xA;    data: [19.0, 19.2, 23.5, 54.9, 63.7, 85.6],&#xA;    backgroundColor: [&#39;rgba(42,120,214,0.75)&#39;,&#39;rgba(42,120,214,0.75)&#39;,&#39;rgba(42,120,214,0.75)&#39;,&#39;rgba(235,104,52,0.75)&#39;,&#39;rgba(235,104,52,0.75)&#39;,&#39;rgba(235,104,52,0.75)&#39;]&#xA;  }]&#xA;},&#xA;options: {&#xA;  indexAxis: &#39;y&#39;,&#xA;  plugins: { legend: { display: false }, title: { display: true, text: &#39;MediaPipe inference time by what else is running (30 fps budget = 33 ms)&#39; } },&#xA;  scales: { x: { min: 0, max: 100, title: { display: true, text: &#39;ms per frame&#39; } } }&#xA;}&#xA;&#xA;      });&#xA;    });&#xA;  &lt;/script&gt;&#xA;&lt;/div&gt;&#xA;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Condition&lt;/th&gt;&#xA;          &lt;th&gt;Camera read&lt;/th&gt;&#xA;          &lt;th&gt;MediaPipe&lt;/th&gt;&#xA;          &lt;th&gt;&lt;code&gt;imshow&lt;/code&gt;&lt;/th&gt;&#xA;          &lt;th&gt;Loop&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Vision alone, &lt;strong&gt;container&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;10.0 ms&lt;/td&gt;&#xA;          &lt;td&gt;&lt;strong&gt;19.0 ms&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;4.5 ms&lt;/td&gt;&#xA;          &lt;td&gt;&lt;strong&gt;29.8 Hz&lt;/strong&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Vision alone, &lt;strong&gt;host venv&lt;/strong&gt; (MediaPipe 0.10.11)&lt;/td&gt;&#xA;          &lt;td&gt;10.6 ms&lt;/td&gt;&#xA;          &lt;td&gt;&lt;strong&gt;19.2 ms&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;3.9 ms&lt;/td&gt;&#xA;          &lt;td&gt;&lt;strong&gt;29.7 Hz&lt;/strong&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Container vision + &lt;strong&gt;1-core CPU burner&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;8.2 ms&lt;/td&gt;&#xA;          &lt;td&gt;23.5 ms&lt;/td&gt;&#xA;          &lt;td&gt;3.9 ms&lt;/td&gt;&#xA;          &lt;td&gt;28.1 Hz&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Host vision + &lt;strong&gt;plain MuJoCo viewer on host&lt;/strong&gt; (no Docker, no ROS)&lt;/td&gt;&#xA;          &lt;td&gt;1.6 ms&lt;/td&gt;&#xA;          &lt;td&gt;&lt;strong&gt;54.9 ms&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;5.9 ms&lt;/td&gt;&#xA;          &lt;td&gt;16.0 Hz&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Container vision + &lt;strong&gt;&lt;code&gt;mujoco_twin&lt;/code&gt; capped at 30 Hz&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;1.7 ms&lt;/td&gt;&#xA;          &lt;td&gt;&lt;strong&gt;63.7 ms&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;8.1 ms&lt;/td&gt;&#xA;          &lt;td&gt;13.6 Hz&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;Container vision + &lt;strong&gt;&lt;code&gt;mujoco_twin&lt;/code&gt; as shipped&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;1.9 ms&lt;/td&gt;&#xA;          &lt;td&gt;&lt;strong&gt;85.6 ms&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;10.2 ms&lt;/td&gt;&#xA;          &lt;td&gt;&lt;strong&gt;10.2 Hz&lt;/strong&gt;&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;End to end, &lt;code&gt;ros2 topic hz /hand/target_flexions&lt;/code&gt; read &lt;strong&gt;30.0 Hz&lt;/strong&gt; with only &lt;code&gt;vision_tracker&lt;/code&gt; running and&#xA;&lt;strong&gt;10.7 Hz&lt;/strong&gt; once &lt;code&gt;mujoco_twin&lt;/code&gt; started.&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/latency-benchmark/cover.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>
    
  </channel>
</rss>
