public class SoTrackerReader extends Inventor
SoTrackerReader
is a class that interfaces to trackdAPI from VRCO. It provides access functions to the coordinate data from the tracking system (position, matrix, and Euler angles). SoTrackerReader
can convert the raw data from trackd with a transformation matrix (provided by the user in the application or provided during calibration). SoTrackerReader
is instantiated by the SbConfig class, if the configuration file specifies the use of a tracking system (by providing shared memory keys). See SbConfig.getTrackerReader.
NOTE: trackd from VRCO (www.vrco.com) is not included with Open Inventor. If trackd exists on the system, Open Inventor will dynamically load it at run time. See trackd documentation for information about the values returned.
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoTrackerReader(int name_27892)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SbVec3f |
getEulerAngles(int id)
Gets the Euler angle values for sensor identified by id.
|
SbMatrix |
getMatrix(int id)
Gets the transformation matrix for sensor identified by id.
|
int |
getNumberOfSensors()
Returns the number of sensors the tracker daemon is storing.
|
SbVec3f |
getPosition(int id)
Gets the position values for the sensor identified by id.
|
SbMatrix |
getTransformMatrix(int id)
Returns the transformation matrix applied to the coordinates from the tracking system.
|
float |
getUnitScaleFactor()
Returns the unit scale factor.
|
boolean |
isInitSuccess()
Returns true if Inventor was able to retrieve all the trackdAPI functions.
|
boolean |
isLoadSuccess()
Returns true if libtrackd.so was loaded successfully.
|
void |
setTransformMatrix(int id,
SbMatrix RealToWorld)
Sets the transformation matrix applied to the coordinates from the tracking system.
|
void |
setUnitScaleFactor(float name_27905)
Sets the unit scale factor.
|
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SoTrackerReader(int name_27892)
public void setUnitScaleFactor(float name_27905)
public SbVec3f getPosition(int id)
public float getUnitScaleFactor()
public int getNumberOfSensors()
public boolean isInitSuccess()
public SbMatrix getMatrix(int id)
public void setTransformMatrix(int id, SbMatrix RealToWorld)
public boolean isLoadSuccess()
public SbMatrix getTransformMatrix(int id)
public SbVec3f getEulerAngles(int id)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com