Skip to content

Commit b443a25

Browse files
committed
Deploy preview for PR 263 πŸ›«
1 parent 64baa5c commit b443a25

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

β€Žpr-preview/pr-263/search/search_index.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

β€Žpr-preview/pr-263/tools/hu-vs-ros2cli/index.htmlβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2737,7 +2737,7 @@ <h2 id="feature-matrix">Feature matrix<a class="headerlink" href="#feature-matri
27372737
<td>Publish messages</td>
27382738
<td><code>ros2 topic pub</code></td>
27392739
<td>β€”</td>
2740-
<td><code>hu meter pub</code> &nbsp;⚠️</td>
2740+
<td><code>hu meter pub</code></td>
27412741
</tr>
27422742
<tr>
27432743
<td>List topics / nodes / services / actions</td>
@@ -2843,7 +2843,7 @@ <h2 id="feature-matrix">Feature matrix<a class="headerlink" href="#feature-matri
28432843
</tr>
28442844
</tbody>
28452845
</table>
2846-
<p>⚠️ <strong><code>hu meter pub</code> resolves the message schema by live discovery</strong>, so a publisher or subscriber must already be present on the target topic (the plugin host queries a live node's type description β€” it does not carry a compiled type registry). When a consumer is present, <code>--yaml</code> / <code>--msg-type</code> publishing works; publishing to a topic no one has announced a type on reports a clear "no announced type" error rather than guessing.</p>
2846+
<p><strong><code>hu meter pub</code> resolves the message schema from <code>.msg</code> files on disk</strong>, so β€” like <code>ros2 topic pub</code> β€” it can publish to an empty topic with no node present. The plugin host reads the type from a <code>.msg</code> under <code>HIROZ_MSG_PATH</code> (colon-separated package or prefix directories, e.g. an ament <code>.../share</code>); if the type isn't on disk it falls back to discovering it from a live publisher or subscriber on the topic. Only when neither is available does it report a clear "could not resolve a message schema" error rather than guessing.</p>
28472847
<hr />
28482848
<h2 id="measurement-accuracy-hu-meter-hz-vs-ros2-topic-hz">Measurement accuracy: <code>hu meter hz</code> vs. <code>ros2 topic hz</code><a class="headerlink" href="#measurement-accuracy-hu-meter-hz-vs-ros2-topic-hz" title="Permanent link">&para;</a></h2>
28492849
<p><code>ros2 topic hz</code> deserializes every message in Python before counting it. This is a known bottleneck: see ros2cli <a href="https://github.com/ros2/ros2cli/issues/871">#871</a>, <a href="https://github.com/ros2/ros2cli/issues/1043">#1043</a>, <a href="https://github.com/ros2/ros2cli/issues/843">#843</a>.</p>

0 commit comments

Comments
Β (0)