<?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[AprilTags do not work in voxl-vision-px4]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I tried the inbuild AprilTag feature today but I can't get it to work and I have no idea what is going wrong. I strictly followed the <a href="https://docs.modalai.com/voxl-vision-px4-apriltag-relocalization/" rel="nofollow ugc">instructions</a> from the walkthrough video / text.</p>
<p dir="auto">The related config is very basic:</p>
<pre><code>    "en_apriltag_fixed_frame": true,
    "fixed_apriltags": [
        {
            "tag_id": 1,
            "R_tag_to_fixed": [
                [0, -1, 0],
                [1, 0, 0],
                [0, 0, 1]
            ],
            "T_tag_wrt_fixed": [0, 0, 0]
        }
    ],
    "en_transform_mavlink_pos_setpoints_from_fixed_frame": true,
    "en_fixed_frame_pipe": false,

</code></pre>
<p dir="auto">I set the <code>tag-size</code> to <code>0.16</code>, as each square of the 8x8 tag grid is 2cm. A change of this parameter never had an effect to the detected tag position from <code>voxl-vision-px4</code>, which I find very strange.</p>
<p dir="auto">When I run <code>voxl-vision-px4 -p</code> for debug odometry in fixed frame I get lots of out of bounds warnings. A "first-detection" with a followed position "reset" of fixed frame does not happen.</p>
<pre><code>T_body_wrt_fixed: -0.00  0.00 -0.20  RPY:  0.00  0.00 -0.00
T_body_wrt_fixed: -0.00  0.00 -0.20  RPY:  0.00  0.00  0.00
WARNING, apriltag roll/pitch out of bounds
</code></pre>
<p dir="auto">Sometimes, the tag is detected and the position is set to the fixed frame which is way off. This causes voxl-vision-px4 to diverge within a few seconds, even if the drone does not move at all. It crashes in the end of that process and resets the frame.</p>
<p dir="auto">When I run <code>voxl-test-vision-lib -a</code> it prints</p>
<pre><code>ID:  1 hamming: 0 margin:89.98 XYZ:  0.67  0.06  1.85 RPY: -0.51  0.25  0.25 hz: 13.6
</code></pre>
<p dir="auto">which seams reasonable, even if there is a rotation offset (btw. This is in the frame of the camera right? The z-axis point 45 deg downwards away from the drone)</p>
<p dir="auto">I recalibrated the tracking camera and reset the config multiple times. Any idea what else could be wrong here? Here is a picture of the setup, it is very similar to your walkthrough video, the voxl is about 1 meter away in y and z directions.</p>
<p dir="auto"><img src="/assets/uploads/files/1602160196421-img_20201008_142734546-resized.jpg" alt="IMG_20201008_142734546.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">Any suggestions would be greatly appreciated!</p>
]]></description><link>https://forum.modalai.com/topic/20/apriltags-do-not-work-in-voxl-vision-px4</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Jul 2026 16:33:35 GMT</lastBuildDate><atom:link href="https://forum.modalai.com/topic/20.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 08 Oct 2020 12:36:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to AprilTags do not work in voxl-vision-px4 on Fri, 09 Oct 2020 18:16:27 GMT]]></title><description><![CDATA[<p dir="auto">Glad you got it working, let me know if you have any more questions. Apriltag relocalization is still a fairly new feature with only me and a few other customers really using it extensively so any feedback is appreciated. Thank you!</p>
]]></description><link>https://forum.modalai.com/post/47</link><guid isPermaLink="true">https://forum.modalai.com/post/47</guid><dc:creator><![CDATA[James Strawson]]></dc:creator><pubDate>Fri, 09 Oct 2020 18:16:27 GMT</pubDate></item><item><title><![CDATA[Reply to AprilTags do not work in voxl-vision-px4 on Fri, 09 Oct 2020 09:42:22 GMT]]></title><description><![CDATA[<p dir="auto">Never mind, I updated all packages and reset all configs and it appears to work great. Maybe a misconfiguration somewhere else.</p>
<p dir="auto">Thank you!</p>
]]></description><link>https://forum.modalai.com/post/46</link><guid isPermaLink="true">https://forum.modalai.com/post/46</guid><dc:creator><![CDATA[rapit]]></dc:creator><pubDate>Fri, 09 Oct 2020 09:42:22 GMT</pubDate></item><item><title><![CDATA[Reply to AprilTags do not work in voxl-vision-px4 on Fri, 09 Oct 2020 09:13:57 GMT]]></title><description><![CDATA[<p dir="auto">Thank you, with the correct config file for the tag size, the detected tag positions and rotations in <code>voxl-test-vision-lib -a</code> look quite accurate now!</p>
<p dir="auto">Unfortunately, this had no impact on the vio, it is still not detecting any April tag correct and I get lots of:</p>
<pre><code>...
WARNING, apriltag roll/pitch out of bounds
WARNING, apriltag roll/pitch out of bounds
</code></pre>
<p dir="auto">But maybe this is not AprilTag related, as vio is reporting very high velocities, sometimes without any AprilTag visible:</p>
<pre><code>...
T_body_wrt_local: 1738.20 882.29 453.10  RPY:  0.11 -0.09 -0.38  velocity: 39.93 42.38  3.43
VIO in failed state, restarting
</code></pre>
<p dir="auto">Most of the time, all values are increasing without any movement until it is in failed state.</p>
<p dir="auto">One more thing that comes to my mind, when I stream from the tracking camera (e.g. via the <code>voxl_cam_ros</code> node) it always streams an overexposed image:<br />
<img src="/assets/uploads/files/1602233731943-screenshot-2020.10.09-10.52.48.png" alt="screenshot-2020.10.09-10.52.48.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I have to set the exposure parameter down to 0.05 to get a "normal" image. Maybe your vio uses the overexposed images as well leading to strange results.</p>
]]></description><link>https://forum.modalai.com/post/45</link><guid isPermaLink="true">https://forum.modalai.com/post/45</guid><dc:creator><![CDATA[rapit]]></dc:creator><pubDate>Fri, 09 Oct 2020 09:13:57 GMT</pubDate></item><item><title><![CDATA[Reply to AprilTags do not work in voxl-vision-px4 on Thu, 08 Oct 2020 19:32:33 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for the very detailed report, that is extremely helpful. You were right to notice the translation did not update when you change the tag size. I found the documentation incorrectly listed the config file in which this parameter exists, it should be set in '/etc/modalai/vio_apriltag_app.xml' instead.</p>
<p dir="auto">Sorry for the confusion, I've updated the documentation.</p>
<p dir="auto"></p><div class="card col-md-9 col-lg-6 position-relative link-preview p-0">



<a href="https://docs.modalai.com/voxl-vision-px4-apriltag-relocalization/" title="Page not found">
<img src="https://docs.modalai.com/images/social/docs-card.png" class="card-img-top not-responsive" style="max-height:15rem" alt="Link Preview Image" />
</a>



<div class="card-body">
<h5 class="card-title">
<a class="text-decoration-none" href="https://docs.modalai.com/voxl-vision-px4-apriltag-relocalization/">
Page not found
</a>
</h5>
<p class="card-text line-clamp-3">ModalAI technical documentation for VOXL and VOXL 2 Companion Computers for PX4 and ArduPilot Obstacle Avoidance and GPS-denied navigation, assembled in the USA</p>
</div>
<a href="https://docs.modalai.com/voxl-vision-px4-apriltag-relocalization/" class="card-footer text-body-secondary small d-flex gap-2 align-items-center lh-2">



<img src="https://docs.modalai.com/favicon.ico" alt="favicon" class="not-responsive overflow-hiddden" style="max-width:21px;max-height:21px" />



<p class="d-inline-block text-truncate mb-0">ModalAI Technical Docs <span class="text-secondary">(docs.modalai.com)</span></p>
</a>
</div><p></p>
<p dir="auto">As a heads up, we will soon have a standalone apriltag detection service which will consolidate the tag-size parameter along with the ids, translations, and rotations into its own config file. This should make the setup process less confusing.</p>
]]></description><link>https://forum.modalai.com/post/44</link><guid isPermaLink="true">https://forum.modalai.com/post/44</guid><dc:creator><![CDATA[James Strawson]]></dc:creator><pubDate>Thu, 08 Oct 2020 19:32:33 GMT</pubDate></item></channel></rss>