Vizard 7 » Reference » Input Devices » Position and Orientation Trackers » Inertial Labs
7.6

Inertial Labs plug-in

This plug-in provides support for the OS3D (aka OSv3) 3DOF orientation tracker from Inertial Labs.

Initialization

The Inertial Labs plug-in is implemented as a Vizard extension, with the following methods:

Method

Description

<InertialLabs>.addOSv3(port)

Returns the OSv3 sensor connected on the specified port.

<InertialLabs>.addSensorBus( filename='InertialLabs.ini',

                                         workset=0,

                                         port = 0 )

Return a list of OSv3 sensors connected to a sensor bus. The filename parameter should point to an Inertial Labs INI file that specifies the device settings. Vizard includes an INI file in the resource folder that contains default settings. If multiple worksets are specified in the INI file, then the workset parameter specifies the workset index to connect to. If port is 0, then the port number specified in the INI file will be used to connect, otherwise the specified port number will be used.

Example

The following example shows how to connect to an OSv3 device on port 5:

# Create Inertial Labs extension
InertialLabs = viz.add('InertialLabs.dle')

# Connect to sensor on port 5
sensor = InertialLabs.addOSv3(5)

The next example shows to connect to a sensor bus on port 2:

# Use default INI that comes with Vizard, but override port number
sensors = InertialLabs.addSensorBus(port=2)

# Get handle to first sensor
sensor1 = sensors[0]