<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Topics tagged with msg]]></title><description><![CDATA[A list of topics that have been tagged with msg]]></description><link>https://fishros.org.cn/forum/tags/msg</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Nov 2026 10:00:43 GMT</lastBuildDate><atom:link href="https://fishros.org.cn/forum/tags/msg.rss" rel="self" type="application/rss+xml"/><pubDate>Invalid Date</pubDate><ttl>60</ttl><item><title><![CDATA[无法找到.msg模块]]></title><description><![CDATA[<p dir="auto">Traceback (most recent call last):<br />
File "/home/ebox12/connect_ws/install/time_communication/lib/time_communication/time_publisher", line 11, in &lt;module&gt;<br />
load_entry_point('time-communication', 'console_scripts', 'time_publisher')()<br />
File "/usr/lib/python3/dist-packages/pkg_resources/<strong>init</strong>.py", line 490, in load_entry_point<br />
return get_distribution(dist).load_entry_point(group, name)<br />
File "/usr/lib/python3/dist-packages/pkg_resources/<strong>init</strong>.py", line 2854, in load_entry_point<br />
return ep.load()<br />
File "/usr/lib/python3/dist-packages/pkg_resources/<strong>init</strong>.py", line 2445, in load<br />
return self.resolve()<br />
File "/usr/lib/python3/dist-packages/pkg_resources/<strong>init</strong>.py", line 2451, in resolve<br />
module = <strong>import</strong>(self.module_name, fromlist=['<strong>name</strong>'], level=0)<br />
File "/home/ebox12/connect_ws/build/time_communication/time_communication/time_publisher.py", line 4, in &lt;module&gt;<br />
from time_communication.msg import TimeData<br />
ModuleNotFoundError: No module named 'time_communication.msg'<br />
<img src="/forum/assets/uploads/files/1751787143075-daff6682-a791-405f-b75d-24080aa3f823-image.png" alt="daff6682-a791-405f-b75d-24080aa3f823-image.png" class=" img-fluid img-markdown" /><br />
<a href="http://setup.py" target="_blank" rel="noopener noreferrer nofollow ugc">setup.py</a><br />
<img src="/forum/assets/uploads/files/1751787178551-a3c31ccf-6d6b-4dce-8e9f-5c010ede17d6-image-resized.png" alt="a3c31ccf-6d6b-4dce-8e9f-5c010ede17d6-image.png" class=" img-fluid img-markdown" /><br />
package.xml<br />
<img src="/forum/assets/uploads/files/1751787211335-74254411-83df-4f39-97da-03d00d3aae30-image-resized.png" alt="74254411-83df-4f39-97da-03d00d3aae30-image.png" class=" img-fluid img-markdown" /><br />
TimeData.msg<br />
<img src="/forum/assets/uploads/files/1751787251483-561a58d7-7430-4889-aa1a-eef0e00e28a4-image-resized.png" alt="561a58d7-7430-4889-aa1a-eef0e00e28a4-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://fishros.org.cn/forum/topic/4421/无法找到-msg模块</link><guid isPermaLink="true">https://fishros.org.cn/forum/topic/4421/无法找到-msg模块</guid><dc:creator><![CDATA[3280402476]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[找不到后缀为&#x27;.msg&#x27;的模块]]></title><description><![CDATA[<p dir="auto">确实有点奇怪，不过它报的错误是找不到模块time_communication.msg，而不是找不到TimeData.msg，是不是某些细节没搞对导致的？</p>
]]></description><link>https://fishros.org.cn/forum/topic/4419/找不到后缀为-msg-的模块</link><guid isPermaLink="true">https://fishros.org.cn/forum/topic/4419/找不到后缀为-msg-的模块</guid><dc:creator><![CDATA[wsxq2]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[第三章 自定义消息msg 编译错误]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fishros.org.cn/forum/uid/12733">@liusiyu_alex_nuaa</a> 谢了，大兄弟</p>
]]></description><link>https://fishros.org.cn/forum/topic/3179/第三章-自定义消息msg-编译错误</link><guid isPermaLink="true">https://fishros.org.cn/forum/topic/3179/第三章-自定义消息msg-编译错误</guid><dc:creator><![CDATA[Freyr]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[ros2humble自定义消息类型报错]]></title><description><![CDATA[<p dir="auto">同问 解决了嘛？</p>
]]></description><link>https://fishros.org.cn/forum/topic/2243/ros2humble自定义消息类型报错</link><guid isPermaLink="true">https://fishros.org.cn/forum/topic/2243/ros2humble自定义消息类型报错</guid><dc:creator><![CDATA[1628799315]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[ROS2 humble 编译自定义话题接口报错]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fishros.org.cn/forum/uid/2">@小鱼</a> 我懂了，是路径里有中文，所以${rosidl_generate_interfaces_ABS_IDL_FILES}这个变量中中文字段缺少，文件路径就错了<br />
之前看到论坛里有个类似的问题，报错和我一样，估计也是这个原因</p>
]]></description><link>https://fishros.org.cn/forum/topic/868/ros2-humble-编译自定义话题接口报错</link><guid isPermaLink="true">https://fishros.org.cn/forum/topic/868/ros2-humble-编译自定义话题接口报错</guid><dc:creator><![CDATA[2099684574]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[ros2发布自定义消息时报了symbol lookup error的错误]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fishros.org.cn/forum/uid/2">@小鱼</a> ok鱼哥 解决了 学到了 。然后也会注意一下提问方式。</p>
]]></description><link>https://fishros.org.cn/forum/topic/564/ros2发布自定义消息时报了symbol-lookup-error的错误</link><guid isPermaLink="true">https://fishros.org.cn/forum/topic/564/ros2发布自定义消息时报了symbol-lookup-error的错误</guid><dc:creator><![CDATA[Zln4ever]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[自定义话题接口编译错误]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fishros.org.cn/forum/uid/602">@晤易</a>  我的情况按照你说的解决了，这个坑困扰我了一下午了。</p>
]]></description><link>https://fishros.org.cn/forum/topic/394/自定义话题接口编译错误</link><guid isPermaLink="true">https://fishros.org.cn/forum/topic/394/自定义话题接口编译错误</guid><dc:creator><![CDATA[1914451774]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[求助：ROS2自定义消息C++，在代码中怎么包含消息头文件]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fishros.org.cn/forum/uid/129">@108287205</a> 基本步骤如下：</p>

将该包编译生成消息头文件和库文件（生成的文件将放置在install目录下）
source install/setup.bash该步完成后头文件和库将要放到环境中
在你的程序中按照以下方式引入

#include &lt;package/msg/xxx.hpp&gt;


因为你是时本身的包，应该不用再次添加依赖。若是其他包要用就需要在CmakeLists.txt中添加依赖。

<p dir="auto">需要注意1、2两步，否则会出现找不到消息文件的错误。</p>
<p dir="auto">希望对你有所帮助~</p>
]]></description><link>https://fishros.org.cn/forum/topic/146/求助-ros2自定义消息c-在代码中怎么包含消息头文件</link><guid isPermaLink="true">https://fishros.org.cn/forum/topic/146/求助-ros2自定义消息c-在代码中怎么包含消息头文件</guid><dc:creator><![CDATA[小鱼]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>