<?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[Subscribe to voxl_mpa_to_ros topics]]></title><description><![CDATA[<p dir="auto">I'm writing a C++ ros node to do 3D object detection using AiDetectionMsg and the pointcloud generated from the stereo camera. How would I subscribe to the AiDetection topic in my code? I couldn't find the topic name via <code>rostopic list</code>. I tried doing</p>
<pre><code>#include &lt;voxl_mpa_to_ros/AiDetection.h&gt;
</code></pre>
<p dir="auto">but running <code>catkin build</code> gives a not found error.</p>
]]></description><link>https://forum.modalai.com/topic/1097/subscribe-to-voxl_mpa_to_ros-topics</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 14:23:37 GMT</lastBuildDate><atom:link href="https://forum.modalai.com/topic/1097.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 08 Jul 2022 00:17:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Subscribe to voxl_mpa_to_ros topics on Wed, 20 Jul 2022 16:18:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.modalai.com/uid/934">@Isabella-Yu</a>,</p>
<p dir="auto">If there is no <code>tflite_data</code> pipe, you may be using a version of voxl-tflite-server that does not have the ai_detection_t added yet.  This feature was added in v0.2.0, so make sure you are using the latest available version!</p>
]]></description><link>https://forum.modalai.com/post/5252</link><guid isPermaLink="true">https://forum.modalai.com/post/5252</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Wed, 20 Jul 2022 16:18:57 GMT</pubDate></item><item><title><![CDATA[Reply to Subscribe to voxl_mpa_to_ros topics on Tue, 19 Jul 2022 21:05:59 GMT]]></title><description><![CDATA[<p dir="auto">@Matt-Turi how would I manually start <code>/run/mpa/tflite_data</code>? I switched to a different m500 and started <code>voxl-tflite-server</code>, but there appears to be no <code>/run/mpa/tflite_data</code> pipe, only the <code>/run/mpa/tflite</code> pipe. The model I'm using is the default MobileNetV2 object detection model for VOXL, and I reset the drone to factory defaults using <code>voxl-configure-tflite</code></p>
]]></description><link>https://forum.modalai.com/post/5244</link><guid isPermaLink="true">https://forum.modalai.com/post/5244</guid><dc:creator><![CDATA[Isabella Yu]]></dc:creator><pubDate>Tue, 19 Jul 2022 21:05:59 GMT</pubDate></item><item><title><![CDATA[Reply to Subscribe to voxl_mpa_to_ros topics on Tue, 12 Jul 2022 20:43:00 GMT]]></title><description><![CDATA[<p dir="auto">Thanks! I'll try this out</p>
]]></description><link>https://forum.modalai.com/post/5172</link><guid isPermaLink="true">https://forum.modalai.com/post/5172</guid><dc:creator><![CDATA[Isabella Yu]]></dc:creator><pubDate>Tue, 12 Jul 2022 20:43:00 GMT</pubDate></item><item><title><![CDATA[Reply to Subscribe to voxl_mpa_to_ros topics on Tue, 12 Jul 2022 16:43:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.modalai.com/uid/934">@Isabella-Yu</a> said in <a href="/post/5082">Subscribe to voxl_mpa_to_ros topics</a>:</p>
<blockquote>
<p dir="auto">#include &lt;voxl_mpa_to_ros/AiDetection.h&gt;</p>
</blockquote>
<p dir="auto">The topic name for AiDetectionMsgs is <code>tflite_data</code>, and should be published by voxl_mpa_to_ros automatically if voxl-tflite-server is running and publishing to the pipe at <code>/run/mpa/tflite_data</code>.</p>
<p dir="auto">For a custom ROS node using the AiDetectionMsg, you will have to manually copy the AiDetection.msg file that lives <a href="https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-mpa-to-ros/-/tree/master/catkin_ws/src/msg" rel="nofollow ugc">here</a> and use catkin to generate the associated header file. This tutorial <a href="http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber(c++)" rel="nofollow ugc">http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber(c++)</a> covers this fairly well, but the main two additions to your CMakeLists will be adding these lines:</p>
<pre><code>add_message_files(
    DIRECTORY 
    msg
    FILES
    AiDetection.msg
)

generate_messages()
</code></pre>
<p dir="auto">Then, when you need to include this message within your project, the syntax is simply:</p>
<pre><code>#include &lt;project_name/AiDetection.h&gt;
// where project_name is as whatever you define in your CMakeLists, i.e. 
// project(voxl_mpa_to_ros)</code></pre>
]]></description><link>https://forum.modalai.com/post/5163</link><guid isPermaLink="true">https://forum.modalai.com/post/5163</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Tue, 12 Jul 2022 16:43:15 GMT</pubDate></item></channel></rss>