Skip to content
Alessandro Febretti edited this page Aug 3, 2014 · 3 revisions

This service connects to a VRPN server and generates mocap events.

Generated events

  • Service type: Mocap
  • Event types: Update
  • Event data fields: position and orientation

Configuration parameters

  • updateInterval (float): the delay time in seconds between polling for new data (default: 0.01)
  • serverIP (string): IP address of the VRPN server
  • trackedObjects: A list of VRPN objects to get data from:
  • (v3.0) userId (unsigned int): An identifier of the user associated with this tracker. The same user may be associated with multiple markers (i.e. to track hands and glasses, or to merge input data from multiple input services).

Example

VRPNService:
{
	serverIP = "localhost"; // This is the IP of all trackable objects below, unless marked otherwise
	trackedObjects:
	{
		Head_Tracker: // Unique name for this list
		{
			name = "Head_Tracker"; // The VRPN name of the object
			trackableID = 0; // The ID this object will be associated with
			
			// Optional: The IP address of the VRPN server for this object if different from above
			serverIP = "localhost"; 
		};
	};
};
Clone this wiki locally