Skip to content
Alessandro Febretti edited this page Aug 13, 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).
  • (v3.0) jointId (string, optional): sets the identifier of the type of joint tracked by this tracker. This value will be accessible in the extra data as an integer at index 0 (i.e. using getExtraDataInt(0)). The stored int value will use one of the values in the Event::OmicronSkeletonJoint enumeration. See the following sections for the mapping between configuration joint names and enumeration joint ids.

Joint Names

The following strings used in a tracker jointId field will map to the specified OmicronSkeletonJoint enum values:

  • head to Event::OMICRON_SKEL_HEAD
  • leftHand to Event::OMICRON_LEFT_HAND
  • rightHand to Event::OMICRON_RIGHT_HAND
  • leftFoot to Event::OMICRON_LEFT_FOOT
  • rightFoot to Event::OMICRON_RIGHT_FOOT

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