Vizard 8 » Tutorials & Examples » Hardware » Real-time tracking data » Tutorial: Real-time tracking data
8.0

Tutorial: Real-time tracking data

This tutorial will describe how to add a sensor and print out the incoming data from the sensor every half second.

This content is discussed in more detail in the reference section.

Accessing a sensor device

The first thing we need to do is import the vizard library and start the rendering.

import viz

viz.setMultiSample(4)
viz.fov(60)
viz.go()

Now we need to add a sensor. This can be any kind of sensor, including position tracking and orientation tracking. For this example, we'll use a dummy sensor plug-in that pretends to connect to a position tracker.

sensor = viz.add( 'testtrack_pos.dls' )

Accessing a sensor device

Displaying tracking data