Fake tracking system as a simulator
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:
FakeTrackerAcquisitionRate: (Optional, default:
30)LocalTimeOffsetSec: (Optional, default:
0)ToolReferenceFrame: (Optional, default:
Tracker)Mode: The possible modes have different simulation behaviour: (Optional, default:
Undefined)DefaultSpins the tools around different axis to fake movementSmoothMovePivotCalibrationMoves around a stylus with the tip fixed to a positionRecordPhantomLandmarksTouches some positions with 1 sec differenceToolStateChanges the state of the tool from time to time
PhantomDefinition: (Required) if Mode is
RecordPhantomLandmarks.Geometry: or Landmarks
Position: Landmark 3D position specified as a vector
0.0, 0.0, 0.0
DataSources: One
DataSourcechild element for each tool. (Required)DataSource: (Required)
PortName: (Required)
0Reference1Stylus
BufferSize: (Optional, default:
150)AveragedItemsForFiltering: (Optional, default:
20)
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>