Simulates a fake tracking system with tools that have predetermined behavior. This allows someone who doesn't have access to a tracking system to test code that relies on having one active.
Device configuration settings
-
Type =
"FakeTracker"
-
AcquisitionRate
Default = "30"
-
LocalTimeOffsetSec
Default = "0"
-
ToolReferenceFrame
Default = "Tracker"
-
Mode The possible modes have different simulation behaviour:
Default = "Undefined"
Default
Spins the tools around different axis to fake movement
SmoothMove
PivotCalibration
Moves around a stylus with the tip fixed to a position
RecordPhantomLandmarks
Touches some positions with 1 sec difference
ToolState
Changes the state of the tool from time to time
-
PhantomDefinition:
if Mode =
"RecordPhantomLandmarks"
.
-
Geometry or Landmarks
-
Position Landmark 3D position specified as a vector
"0.0,0.0,0.0"
-
DataSources One
DataSource
child element for each tool.
Example configuration file PlusDeviceSet_FakeTracker_ToolState.xml
<PlusConfiguration version="2.1">
<DataCollection StartupDelaySec="1.0">
<DeviceSet
Name="TEST No Video with Fake tracker in Tool state mode"
Description="ToolStateDisplayWidgetTest uses this configuration" />
<Device
Id="TrackerDevice"
Type="FakeTracker"
AcquisitionRate="50"
Mode="ToolState" >
<DataSources>
<DataSource Type="Tool" Id="Test" PortName="0" />
</DataSources>
<OutputChannels>
<OutputChannel Id="TrackerStream" >
<DataSource Id="Test"/>
</OutputChannel>
</OutputChannels>
</Device>
</DataCollection>
</PlusConfiguration>