<?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[Understanding the return value of getUint16LittleEndian(array, index)]]></title><description><![CDATA[<p dir="auto">Hello, I have yet to get an Onion Tau LiDAR and have been wondering the capabilities of this device. What I want to accomplish is finding the closest point in the frame. One of the simplest ways of doing so seem to be through the getUint16LittleEndian(array, index) method. Is it possible to get a picture of what the method returns? Also, how do you call this method?</p>
<p dir="auto"><img src="/assets/uploads/files/1673971539302-665da73a-ff3d-4eb0-9fd6-3e9c3c869045-image.png" alt="665da73a-ff3d-4eb0-9fd6-3e9c3c869045-image.png" class="img-responsive img-markdown" /></p>
<p dir="auto">If this does return just the LiDARs smallest number (Z), is there any way of getting the index ((X, Y) or a index number if it is just one long array) of that smallest point?</p>
]]></description><link>http://community.onion.io/topic/4935/understanding-the-return-value-of-getuint16littleendian-array-index</link><generator>RSS for Node</generator><lastBuildDate>Thu, 11 Jun 2026 15:53:50 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/4935.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Jan 2023 16:10:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Understanding the return value of getUint16LittleEndian(array, index) on Tue, 17 Jan 2023 16:23:36 GMT]]></title><description><![CDATA[<p dir="auto">Hello, I have yet to get an Onion Tau LiDAR and have been wondering the capabilities of this device. What I want to accomplish is finding the closest point in the frame. One of the simplest ways of doing so seem to be through the getUint16LittleEndian(array, index) method. Is it possible to get a picture of what the method returns? Also, how do you call this method?</p>
<p dir="auto"><img src="/assets/uploads/files/1673971539302-665da73a-ff3d-4eb0-9fd6-3e9c3c869045-image.png" alt="665da73a-ff3d-4eb0-9fd6-3e9c3c869045-image.png" class="img-responsive img-markdown" /></p>
<p dir="auto">If this does return just the LiDARs smallest number (Z), is there any way of getting the index ((X, Y) or a index number if it is just one long array) of that smallest point?</p>
]]></description><link>http://community.onion.io/post/25168</link><guid isPermaLink="true">http://community.onion.io/post/25168</guid><dc:creator><![CDATA[Electro]]></dc:creator><pubDate>Tue, 17 Jan 2023 16:23:36 GMT</pubDate></item><item><title><![CDATA[Reply to Understanding the return value of getUint16LittleEndian(array, index) on Mon, 30 Jan 2023 22:27:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/9015">@Electro</a> the <code>getUint16LittleEndian</code> method is used for reading 16-bit integers from the Camera. It's used for reading the camera's configuration/settings. See <a href="https://github.com/OnionIoT/tau-lidar-camera/search?q=getUint16LittleEndian" rel="nofollow">this search for the <code>getUint16LittleEndian</code> method on the tau camera github repo for details of when it's used</a>.</p>
<p dir="auto">For your purposes of finding the closest point in the frame, you should look at the <code>readFrame</code> method. It will return a Frame object with distance/depth. See the <a href="https://taulidarcamera.readthedocs.io/en/latest/api.html?highlight=getUint16LittleEndian#TauLidarCamera.camera.Camera.readFrame" rel="nofollow">related documentation entry</a> for more info.</p>
<p dir="auto">You can see the <code>readFrame</code> method in action, as well as how OpenCV is used to render pictures using the data in the <a href="https://github.com/OnionIoT/tau-lidar-camera/tree/a70b24e18be8e4c5abfe525c6768fbc10a492fd8/examples" rel="nofollow">example programs</a>.</p>
<p dir="auto">Enjoy!</p>
]]></description><link>http://community.onion.io/post/25193</link><guid isPermaLink="true">http://community.onion.io/post/25193</guid><dc:creator><![CDATA[Lazar Demin]]></dc:creator><pubDate>Mon, 30 Jan 2023 22:27:19 GMT</pubDate></item></channel></rss>