25 #ifndef INCLUDED_ConfigurationParser_h_GUID_933C79EE_3392_4C8D_74D5_D9A72580DA6A 26 #define INCLUDED_ConfigurationParser_h_GUID_933C79EE_3392_4C8D_74D5_D9A72580DA6A 34 #include <json/value.h> 44 config.
debug = root.get(
"showDebug",
false).asBool();
50 "headToFrontBeaconOriginDistance");
52 "backPanelMeasurementError");
56 if (config.includeRearPanel) {
57 config.offsetToCentroid =
false;
64 "additionalPrediction");
67 "initialBeaconError");
74 "streamBeaconDebugInfo");
76 if (!config.offsetToCentroid) {
78 "manualBeaconOffset");
83 "beaconProcessNoise");
85 "processNoiseAutocorrelation");
87 "linearVelocityDecayCoefficient");
89 "angularVelocityDecayCoefficient");
91 "measurementVarianceScaleFactor");
93 "highResidualVariancePenalty");
95 "boundingBoxFilterRatio");
98 "shouldSkipBrightLeds");
101 if (root.isMember(
"blobParams")) {
102 parseBlobParams(root[
"blobParams"], config.blobParams);
110 #endif // INCLUDED_ConfigurationParser_h_GUID_933C79EE_3392_4C8D_74D5_D9A72580DA6A The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
ConfigParams parseConfigParams(Json::Value const &root)
Definition: ConfigurationParser.h:88
void getOptionalParameter(T &dest, Json::Value const &obj, const char *key)
Gets an optional parameter from a JSON object: if it's not present, the existing value is left there...
Definition: GetOptionalParameter.h:60
bool debug
Whether to show the debug windows and debug messages.
Definition: ConfigParams.h:137