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

Class vrTrackerBody

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

The vrTrackerBody class is a proxy class to access a tracking body as defined in the Tracking GUI module. In order to create a vrTrackerBody object for an existing body, 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 vrTrackerBody class.
string
getNode()
Returns the name of the node, which is connected to this body.
 
setNode(name)
Sets the name of the node, which will be connected to this body.

Inherited from vrTrackerSensor: getName, getType, setEnabled, setSensorId

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 vrTrackerBody class.

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

getNode()

 

Returns the name of the node, which is connected to this body.

Returns: string
The name of the node.

setNode(name)

 

Sets the name of the node, which will be connected to this body. This means that the tracking system will update the transformation matrix of the node. Only transform nodes can be attached to a body.

Parameters:
  • name (string) - The name of the node.