<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>RMW on SGVD.ai</title>
    <link>https://sgvd.ai/tags/rmw/</link>
    <description>Recent content in RMW on SGVD.ai</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Wed, 17 Jun 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://sgvd.ai/tags/rmw/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Fast Zero-Copy Messaging with ROS 2 Intra-Process Communication</title>
      <link>https://sgvd.ai/post/2026-06-17-ros2-intra-process-communication/</link>
      <pubDate>Wed, 17 Jun 2026 00:00:00 +0000</pubDate>
      <guid>https://sgvd.ai/post/2026-06-17-ros2-intra-process-communication/</guid>
      <description>&lt;p&gt;ROS 2 uses so-called &amp;ldquo;middleware&amp;rdquo; to perform communication between nodes.
Over the years different middleware vendors have vied to become the Chosen Implementation, importantly by focusing on message passing efficiency.
However:&lt;/p&gt;
&lt;p&gt;You can be even more efficient by just &lt;strong&gt;skipping the middleware completely&lt;/strong&gt; and achieve true &lt;strong&gt;zero-copy messaging&lt;/strong&gt;!&lt;/p&gt;
&lt;p&gt;And all you have to do is apply a simple convention:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;All publishers SHOULD allocate messages using unique pointers.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;All publishers SHOULD publish the messages using &lt;code&gt;std::move&lt;/code&gt;.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;All subscribers SHOULD expect either a &lt;code&gt;ConstSharedPtr&lt;/code&gt; or a const reference.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Enable &lt;code&gt;use_intra_process_comms&lt;/code&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Read on to understand why.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
