-
Notifications
You must be signed in to change notification settings - Fork 16
VRPNService
Alessandro Febretti edited this page Aug 13, 2014
·
3 revisions
This service connects to a VRPN server and generates mocap events.
- Service type: Mocap
-
Event types:
Update
- Event data fields: position and orientation
-
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. usinggetExtraDataInt(0)
). The stored int value will use one of the values in theEvent::OmicronSkeletonJoint
enumeration. See the following sections for the mapping between configuration joint names and enumeration joint ids.
The following strings used in a tracker jointId
field will map to the specified OmicronSkeletonJoint
enum values:
-
head
toEvent::OMICRON_SKEL_HEAD
-
leftHand
toEvent::OMICRON_LEFT_HAND
-
rightHand
toEvent::OMICRON_RIGHT_HAND
-
leftFoot
toEvent::OMICRON_LEFT_FOOT
-
rightFoot
toEvent::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";
};
};
};