Skip to content

Commit

Permalink
Use qtm_rt instead of deprecated qtm Python package.
Browse files Browse the repository at this point in the history
  • Loading branch information
gemenerik committed Oct 14, 2024
1 parent 94cc84c commit 5f1841e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/mocap/qualisys_hl_commander.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import xml.etree.cElementTree as ET
from threading import Thread

import qtm
import qtm_rt
from scipy.spatial.transform import Rotation

import cflib.crtp
Expand Down Expand Up @@ -106,7 +106,7 @@ async def _connect(self):
qtm_instance = await self._discover()
host = qtm_instance.host
print('Connecting to QTM on ' + host)
self.connection = await qtm.connect(host)
self.connection = await qtm_rt.connect(host)

params = await self.connection.get_parameters(parameters=['6d'])
xml = ET.fromstring(params)
Expand All @@ -117,7 +117,7 @@ async def _connect(self):
on_packet=self._on_packet)

async def _discover(self):
async for qtm_instance in qtm.Discover('0.0.0.0'):
async for qtm_instance in qtm_rt.Discover('0.0.0.0'):
return qtm_instance

def _on_packet(self, packet):
Expand Down

0 comments on commit 5f1841e

Please sign in to comment.