Module vrVrpnTracking :: Class vrTrackerAnalog
[frames] | no frames]

Class vrTrackerAnalog

   object --+            
            |            
  ??.instance --+        
                |        
vrAEBase.vrAEBase --+    
                    |    
      vrTrackerSensor --+
                        |
                       vrTrackerAnalog

The vrTrackerAnalog class is a proxy class to access a tracking analog as defined in the Tracking GUI module. In order to create a vrTrackerAnalog object for an existing analog, you only have to pass its name as the only parameter to its constructor. The name is simply a user definable string and set in the tracking GUI in VRED.

Instance Methods
 
__init__(name)
The constructor of the vrTrackerAnalog class.
float (64bit)
getValue()
Returns current value of analog.
 
setSensorId(name)
Sets a specific sensor id to the analog.

Inherited from vrTrackerSensor: getName, getType, setEnabled

Inherited from vrAEBase.vrAEBase: __reduce__, addLoop, callAllConnected, connect, connectSignal, emitSignal, getModuleName, isActive, loop, recEvent, removeConnections, setActive, setUpdateGUIEnabled, subLoop

Inherited from unreachable.instance: __new__

Class Variables

Inherited from vrTrackerSensor: __instance_size__

Method Details

__init__(name)
(Constructor)

 

The constructor of the vrTrackerAnalog class.

Parameters:
  • name (string) - The name of the analog.
Overrides: vrAEBase.vrAEBase.__init__

getValue()

 

Returns current value of analog.

Returns: float (64bit)
The value of the analog.

setSensorId(name)

 

Sets a specific sensor id to the analog. This is used for further identification.

Parameters:
  • name - The id of the sensor.
Overrides: vrTrackerSensor.setSensorId