Skip to content

Commit b9e6cbe

Browse files
authored
Merge pull request #488 from bitcraze/rik/qtmrt
Use `qtm_rt` instead of deprecated `qtm` Python package.
2 parents 3588a3d + 5f1841e commit b9e6cbe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/mocap/qualisys_hl_commander.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import xml.etree.cElementTree as ET
3434
from threading import Thread
3535

36-
import qtm
36+
import qtm_rt
3737
from scipy.spatial.transform import Rotation
3838

3939
import cflib.crtp
@@ -106,7 +106,7 @@ async def _connect(self):
106106
qtm_instance = await self._discover()
107107
host = qtm_instance.host
108108
print('Connecting to QTM on ' + host)
109-
self.connection = await qtm.connect(host)
109+
self.connection = await qtm_rt.connect(host)
110110

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

119119
async def _discover(self):
120-
async for qtm_instance in qtm.Discover('0.0.0.0'):
120+
async for qtm_instance in qtm_rt.Discover('0.0.0.0'):
121121
return qtm_instance
122122

123123
def _on_packet(self, packet):

0 commit comments

Comments
 (0)