<?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[How to use Python SDK to get position data?]]></title><description><![CDATA[<p>I checked the sample code in <a href="https://github.com/Aceinna/python-openimu/blob/master/USAGE.md" rel="nofollow">USAGE.md</a> but couldn't figure it out how to get the position data from the driver. Are there any documentation for the sdk?</p>
]]></description><link>https://forum.aceinna.com//topic/324/how-to-use-python-sdk-to-get-position-data</link><generator>RSS for Node</generator><lastBuildDate>Thu, 12 Mar 2026 04:50:20 GMT</lastBuildDate><atom:link href="https://forum.aceinna.com//topic/324.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Feb 2022 14:52:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to use Python SDK to get position data? on Mon, 14 Feb 2022 14:52:01 GMT]]></title><description><![CDATA[<p>I checked the sample code in <a href="https://github.com/Aceinna/python-openimu/blob/master/USAGE.md" rel="nofollow">USAGE.md</a> but couldn't figure it out how to get the position data from the driver. Are there any documentation for the sdk?</p>
]]></description><link>https://forum.aceinna.com//post/1358</link><guid isPermaLink="true">https://forum.aceinna.com//post/1358</guid><dc:creator><![CDATA[k2ironman]]></dc:creator><pubDate>Mon, 14 Feb 2022 14:52:01 GMT</pubDate></item><item><title><![CDATA[Reply to How to use Python SDK to get position data? on Mon, 21 Mar 2022 05:43:21 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.aceinna.com//uid/1574">@k2ironman</a> look the part 4.2<br />
<a href="https://navview.blob.core.windows.net/forum/upload/OpenRTK330LI_EVK%E7%94%A8%E6%88%B7%E6%89%8B%E5%86%8C_Release_Dec2020_CEK-l10a7f4a.docx" rel="nofollow">OpenRTK330LI EVK用户手册_Release_Dec2020_CEK.docx</a></p>
]]></description><link>https://forum.aceinna.com//post/1367</link><guid isPermaLink="true">https://forum.aceinna.com//post/1367</guid><dc:creator><![CDATA[chengyong]]></dc:creator><pubDate>Mon, 21 Mar 2022 05:43:21 GMT</pubDate></item><item><title><![CDATA[Reply to How to use Python SDK to get position data? on Mon, 21 Mar 2022 08:50:20 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.aceinna.com//uid/1428">@chengyong</a> I was unable to open the document with Libre and MS Office.<br />
But I figured out that the best for me is using Driver class and create a function to process the continous data.</p>
]]></description><link>https://forum.aceinna.com//post/1368</link><guid isPermaLink="true">https://forum.aceinna.com//post/1368</guid><dc:creator><![CDATA[k2ironman]]></dc:creator><pubDate>Mon, 21 Mar 2022 08:50:20 GMT</pubDate></item><item><title><![CDATA[Reply to How to use Python SDK to get position data? on Tue, 22 Mar 2022 08:49:54 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.aceinna.com//uid/1574">@k2ironman</a> So you need to write your own code to do that。 (Process serial port data according to protocol)</p>
]]></description><link>https://forum.aceinna.com//post/1371</link><guid isPermaLink="true">https://forum.aceinna.com//post/1371</guid><dc:creator><![CDATA[chengyong]]></dc:creator><pubDate>Tue, 22 Mar 2022 08:49:54 GMT</pubDate></item><item><title><![CDATA[Reply to How to use Python SDK to get position data? on Sun, 01 May 2022 07:24:49 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.aceinna.com//uid/1574">@k2ironman</a>  Below is some references for you,</p>
<ol>
<li>pip install openimu</li>
<li>sample code</li>
</ol>
<pre><code class="language-python">import time
import threading
from aceinna.tools import Detector


def handle_receive_continous_data(packet_type, data):
    # the position data will be in packet_type equals 'pos'
    print(packet_type, data)

def on_find_device(device):
    # prepare to use
    device.setup(None)
    # listen the output data
    device.on('continous',  handle_receive_continous_data)

def prepare():
    detector = Detector(
        device_type='OpenRTK',
        com_port='{DEVICE COM}',
        baudrate=460800)
    detector.find(on_find_device)

if __name__ == '__main__': 
    threading.Thread(target=prepare).start()

    while True:
        time.sleep(10)

</code></pre>
<p>For more advance usage, please take a look of the source code.</p>
]]></description><link>https://forum.aceinna.com//post/1410</link><guid isPermaLink="true">https://forum.aceinna.com//post/1410</guid><dc:creator><![CDATA[song yi wei]]></dc:creator><pubDate>Sun, 01 May 2022 07:24:49 GMT</pubDate></item><item><title><![CDATA[Reply to How to use Python SDK to get position data? on Thu, 05 May 2022 18:01:42 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.aceinna.com//uid/20">@song-yi-wei</a> great answer</p>
]]></description><link>https://forum.aceinna.com//post/1416</link><guid isPermaLink="true">https://forum.aceinna.com//post/1416</guid><dc:creator><![CDATA[Parkeexant]]></dc:creator><pubDate>Thu, 05 May 2022 18:01:42 GMT</pubDate></item></channel></rss>