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

Class vrTrackerSensor

   object --+        
            |        
  ??.instance --+    
                |    
vrAEBase.vrAEBase --+
                    |
                   vrTrackerSensor
Known Subclasses:

The vrTrackerSensor class is the base class for all sensors like bodies, buttons and dials. You can only access sensors that are already created in the tracking module, that means you cannot create new sensors with the Python API. All objects constructed with the Python API work as proxy objects to access the VRED internal tracking sensors. This class is only a base class and should not be instantiated directly. Use vrTrackerButton, vrTrackerDial, vrTrackerAnalog or vrTrackerBody instead.

Instance Methods
 
__init__(name, type)
The constructor of the vrTouchSensor class.
string
getName()
Returns the name of this sensor.
string
getType()
Returns the type of this sensor.
 
setEnabled(state)
Enables the sensor.
 
setSensorId(name)
Sets a specific sensor id to the sensor.

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
  __instance_size__ = 192
Method Details

__init__(name, type)
(Constructor)

 

The constructor of the vrTouchSensor class.

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

getName()

 

Returns the name of this sensor.

Returns: string
The name of the sensor.

getType()

 

Returns the type of this sensor. Possible types are "Body", "Dial""Button" and "Analog".

Returns: string
The type of the sensor.

setEnabled(state)

 

Enables the sensor.

Parameters:
  • state (bool) - Sensor state: On/Off.

setSensorId(name)

 

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

Parameters:
  • name - The id of the sensor.