Skip to content

JSON Config stuff

Jakob Bornecrantz requested to merge wallbraker/monado:jakob-config-json into master

The MR is ready to be tested and reviewed.

First off the prober looks for the config file here ~/.config/monado/config_v0.json or in $XDG_CONFIG_HOME/monado/config_v0.json.

The JSON looks like this, there is a version field in the tracking part as each part is doing their own thing. Simple put this is just all of the hardcoded stuff put into a JSON file. Below is what the configuration looks for my ELP fisheye 3D camera.

{
	"tracking": {
		"version": 0,
		"camera_name": "3D USB Camera",
		"camera_mode": 2,
		"camera_type": "regular_sbs",
		"calibration_path": "/home/user/.config/monado/ELP.calibration"
	}
}

2020-04-08

  • You can now both save and load the new config format.
  • All changelog snippets are in place.

2020-04-05

  • You can now set the name of the calibration file in the calibration gui, going to make it update the json config as well.
  • Added some file helpers to create files in the config directory.
  • Also made the settings be a public xrt interface, as there was a lot of different code that was either producing it or consuming it.
  • Also a commit that should fix some a minor bug in the gui interface.

2020-04-03

This is just to get some comments on the directions for the config file.

  • Initial RFC MR.
Edited by Jakob Bornecrantz

Merge request reports