...
This guide is for new users of the Vicon DataStream SDK on Windows who want to get started with the Python client. Use of the C++, .NET and C APIs is very similar, but the details are outside the scope of this guide.
This information is included:
Table of Contents | ||
---|---|---|
|
This guide is for you if you are new to both Python and the DataStream to help you to get started receiving DataStream data from Vicon products. For full documentation, see: Vicon DataStream SDK Developer's Guide
...
- For 64-bit Windows:
..\Program Files\Vicon\DataStream SDK\Win64\Python
...
- For 32-bit Windows:
..\Program Files (x86)\Vicon\DataStream SDK\Win32\Python
...
Code Block |
---|
from vicon_dssdk import ViconDataStream client = ViconDataStream.Client() frames = [] print( 'Connecting' ) while not client.IsConnected(): print( '.' ) client.Connect( 'localhost:801' ) try: while client.IsConnected(): if client.GetFrame(): #store data here frames.append(client.GetFrameNumber() ) except ViconDataStream.DataStreamException as e: print( 'Error', e ) #do something here print(frames) |
...