{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "UnverifiedPlex",
  "description": "An Unverified Plex structure. These are usually read in from another source, like a JSON file or\na string. One must use Plex::try_from(unverified_plex) to create a Plex.",
  "type": "object",
  "properties": {
    "components": {
      "description": "Any and all components that make up our plex",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Component"
      }
    },
    "creation_timestamp": {
      "description": "The first valid timestamp in this Plex's existence",
      "type": "integer",
      "format": "int64"
    },
    "formations": {
      "description": "An arbitrary grouping of one or more components, usually used by users to designate a set of\ncomponents as performing some sort of task",
      "type": "array",
      "default": [],
      "items": {
        "$ref": "#/$defs/Formation"
      }
    },
    "spatial_constraints": {
      "description": "Extrinsics between components, as well as covariance values",
      "type": "array",
      "default": [],
      "items": {
        "$ref": "#/$defs/SpatialConstraint"
      }
    },
    "temporal_constraints": {
      "description": "Synchronization and resolution settings between component clocks",
      "type": "array",
      "default": [],
      "items": {
        "$ref": "#/$defs/TemporalConstraint"
      }
    },
    "uuid": {
      "description": "The unique identifier of this Plex",
      "type": "string",
      "format": "uuid"
    }
  },
  "required": [
    "components",
    "uuid",
    "creation_timestamp"
  ],
  "$defs": {
    "Camera": {
      "description": "Type used for representing a standard full-frame camera.",
      "type": "object",
      "properties": {
        "covariance": {
          "description": "Covariance matrix for the camera's intrinsics.\n\nNOTE: A requirement for correctly deserializing a `Camera` is that the dimensions of the\ndeserialized matrix must be equivalent to the encoded size of the camera intrinsics.",
          "$ref": "#/$defs/ComponentCovariance"
        },
        "intrinsics": {
          "description": "The intrinsics that characterize this camera.",
          "$ref": "#/$defs/CameraIntrinsics"
        },
        "name": {
          "description": "A user-friendly name for the specific component. Required to be unique within the Plex.",
          "type": "string"
        },
        "pixel_pitch": {
          "description": "The size of a pixel.\n\nThis may be in metric space, or, if this is unavailable, may be 1 (i.e. units of pixels are\nrequired). This can sometimes be helpful when comparing cameras, as e.g. N-pixels of\nreprojection error isn't necessarily congruent or comparable between two models of camera.",
          "type": "number",
          "format": "double"
        },
        "pixel_readout": {
          "description": "The camera's pixel readout kind\n\nSee the docs for [`PixelReadout`] for more info about pixel readout and how it is expressed\nin Tangram's systems.",
          "$ref": "#/$defs/PixelReadout",
          "default": "Global"
        },
        "uuid": {
          "description": "The UUID for this particular component.",
          "type": "string",
          "format": "uuid"
        }
      },
      "required": [
        "uuid",
        "name",
        "intrinsics",
        "covariance",
        "pixel_pitch"
      ]
    },
    "CameraIntrinsics": {
      "description": "Type for modeling the intrinsics (interior orientation) of a camera.",
      "oneOf": [
        {
          "description": "Pinhole projection + No Distortion. All cameras correct to this model",
          "type": "object",
          "properties": {
            "no-distortion": {
              "$ref": "#/$defs/NoDistortion"
            }
          },
          "additionalProperties": false,
          "required": [
            "no-distortion"
          ]
        },
        {
          "description": "Pinhole projection + Inverse Brown Conrady distortion",
          "type": "object",
          "properties": {
            "pinhole-with-brown-conrady": {
              "$ref": "#/$defs/PinholeWithBrownConrady"
            }
          },
          "additionalProperties": false,
          "required": [
            "pinhole-with-brown-conrady"
          ]
        },
        {
          "description": "Pinhole projection + Inverse Kannala Brandt distortion",
          "type": "object",
          "properties": {
            "pinhole-with-kannala-brandt": {
              "$ref": "#/$defs/PinholeWithKannalaBrandt"
            }
          },
          "additionalProperties": false,
          "required": [
            "pinhole-with-kannala-brandt"
          ]
        },
        {
          "description": "Pinhole projection + Forward Brown Conrady distortion, as described by OpenCV",
          "type": "object",
          "properties": {
            "opencv-radtan": {
              "$ref": "#/$defs/opencv_radtan"
            }
          },
          "additionalProperties": false,
          "required": [
            "opencv-radtan"
          ]
        },
        {
          "description": "Pinhole projection + Fisheye lens distortion, as implemented by OpenCV",
          "type": "object",
          "properties": {
            "opencv-fisheye": {
              "$ref": "#/$defs/opencv_fisheye"
            }
          },
          "additionalProperties": false,
          "required": [
            "opencv-fisheye"
          ]
        },
        {
          "description": "Pinhole projection + Forward Brown Conrady distortion as implemented by OpenCV, with an\nextended coefficient set that modifies the radial distortion term",
          "type": "object",
          "properties": {
            "opencv-rational": {
              "$ref": "#/$defs/opencv_rational"
            }
          },
          "additionalProperties": false,
          "required": [
            "opencv-rational"
          ]
        },
        {
          "description": "Extended/Enhanced unified camera model",
          "type": "object",
          "properties": {
            "eucm": {
              "$ref": "#/$defs/Eucm"
            }
          },
          "additionalProperties": false,
          "required": [
            "eucm"
          ]
        },
        {
          "description": "Double Sphere camera model for lenses with ultra-wide FOV (>180 degrees)",
          "type": "object",
          "properties": {
            "double-sphere": {
              "$ref": "#/$defs/DoubleSphere"
            }
          },
          "additionalProperties": false,
          "required": [
            "double-sphere"
          ]
        },
        {
          "description": "Omnidirectional camera model",
          "type": "object",
          "properties": {
            "omni": {
              "$ref": "#/$defs/Omni"
            }
          },
          "additionalProperties": false,
          "required": [
            "omni"
          ]
        },
        {
          "description": "Pinhole + Power Law Distortion",
          "type": "object",
          "properties": {
            "power-law": {
              "$ref": "#/$defs/power_law"
            }
          },
          "additionalProperties": false,
          "required": [
            "power-law"
          ]
        }
      ]
    },
    "Component": {
      "description": "Type enumerating the various kinds of components that can be stored within a plex.",
      "oneOf": [
        {
          "description": "Variant of component describing a full-frame camera.",
          "type": "object",
          "properties": {
            "camera": {
              "$ref": "#/$defs/Camera"
            }
          },
          "additionalProperties": false,
          "required": [
            "camera"
          ]
        },
        {
          "description": "Variant of component describing a LiDAR.",
          "type": "object",
          "properties": {
            "lidar": {
              "$ref": "#/$defs/Lidar"
            }
          },
          "additionalProperties": false,
          "required": [
            "lidar"
          ]
        },
        {
          "description": "Variant of component describing an IMU.",
          "type": "object",
          "properties": {
            "imu": {
              "$ref": "#/$defs/Imu"
            }
          },
          "additionalProperties": false,
          "required": [
            "imu"
          ]
        },
        {
          "description": "Variant of component describing a RADAR.",
          "type": "object",
          "properties": {
            "radar": {
              "$ref": "#/$defs/Radar"
            }
          },
          "additionalProperties": false,
          "required": [
            "radar"
          ]
        },
        {
          "description": "Variant of component describing an local navigation system",
          "type": "object",
          "properties": {
            "local_navigation_system": {
              "$ref": "#/$defs/LocalNavigationSystem"
            }
          },
          "additionalProperties": false,
          "required": [
            "local_navigation_system"
          ]
        },
        {
          "description": "Variant of component describing anything that produces a transform tree",
          "type": "object",
          "properties": {
            "transform_tree": {
              "$ref": "#/$defs/TransformTree"
            }
          },
          "additionalProperties": false,
          "required": [
            "transform_tree"
          ]
        }
      ]
    },
    "ComponentCovariance": {
      "description": "Struct representing the covariance for a component. Mostly here for backwards compatibility.",
      "type": "object",
      "properties": {
        "data": {
          "description": "The covariance matrix of this component, represented as a flat row-wise vector",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          }
        },
        "ncols": {
          "description": "the number of cols in this covariance matrix",
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "nrows": {
          "description": "the number of rows in this covariance matrix",
          "type": "integer",
          "format": "uint",
          "minimum": 0
        }
      },
      "required": [
        "data",
        "nrows",
        "ncols"
      ]
    },
    "DoubleSphere": {
      "description": "Double Sphere camera model for lenses with ultra-wide FOV (>180 degrees).\n\nReference: <https://cvg.cit.tum.de/_media/spezial/bib/usenko18double-sphere.pdf>",
      "type": "object",
      "properties": {
        "alpha": {
          "description": "The distortion parameter that relates second sphere and pinhole projection",
          "type": "number",
          "format": "double"
        },
        "cx": {
          "description": "Principal point offset along the horizontal direction.",
          "type": "number",
          "format": "double"
        },
        "cy": {
          "description": "Principal point offset along the vertical direction.",
          "type": "number",
          "format": "double"
        },
        "f": {
          "description": "Principal distance for this camera.",
          "type": "number",
          "format": "double"
        },
        "height": {
          "description": "height of the images described by this model, in pixels.",
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "width": {
          "description": "width of the images described by this model, in pixels.",
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "xi": {
          "description": "The distortion parameter corresponding to distance between spheres",
          "type": "number",
          "format": "double"
        }
      },
      "required": [
        "f",
        "cx",
        "cy",
        "xi",
        "alpha",
        "width",
        "height"
      ]
    },
    "Eucm": {
      "description": "Extended unified camera model\n\nNote the restrictions on a valid EUCM camera model:\n\n- alpha must be within the range [0.0, 1.0]\n- beta must be strictly positive (> 0.0)\n\nAny calibrations that fall outside of this are not valid, and are indications of poor input\ndata.",
      "type": "object",
      "properties": {
        "alpha": {
          "description": "The distortion parameter that relates ellipsoid and pinhole projection",
          "type": "number",
          "format": "double"
        },
        "beta": {
          "description": "The distortion parameter that controls the ellipsoid shape",
          "type": "number",
          "format": "double"
        },
        "cx": {
          "description": "Principal point offset along the horizontal direction.",
          "type": "number",
          "format": "double"
        },
        "cy": {
          "description": "Principal point offset along the vertical direction.",
          "type": "number",
          "format": "double"
        },
        "f": {
          "description": "Principal distance for this camera.",
          "type": "number",
          "format": "double"
        },
        "height": {
          "description": "height of the images described by this model, in pixels.",
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "width": {
          "description": "width of the images described by this model, in pixels.",
          "type": "integer",
          "format": "uint",
          "minimum": 0
        }
      },
      "required": [
        "f",
        "cx",
        "cy",
        "alpha",
        "beta",
        "width",
        "height"
      ]
    },
    "ExtrinsicCovariance": {
      "description": "Type describing the covariance between extrinsics.",
      "anyOf": [
        {
          "description": "Natural JSON structure of [`ExtrinsicCovariance`]",
          "type": "object",
          "properties": {
            "raw_se3": {
              "description": "Internal representation of the extrinsic covariance.\n\nInitially stored as a 6x6 representing the covariance of an se3 group to match the\n[`Extrinsics`] type.",
              "type": "array",
              "items": {
                "type": "number",
                "format": "double"
              }
            }
          },
          "required": [
            "raw_se3"
          ]
        },
        {
          "description": "Derive this struct from an array. This is an older serialization format",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          }
        }
      ]
    },
    "Formation": {
      "description": "Type describing a purposeful grouping of one or more components.\n\nFormations serve the explicit purpose of relating multiple components together in an\nabstract way. This could be representative of any number of things:\n\n- Device-level relationships, i.e. all on the same sensor suite\n- Functional relationships, i.e. all used in the same job-to-be-done\n- Structural relationships, i.e. “these components are all painted blue”\n\nFormations are meant to be interpreted and applied at the user or application level, not by\nthe plex directly. That being said, most formations have a grounding in the physical world.\n\n# Requirements and Restrictions\n\nFormations should only group components; they don’t include constraints. We leave it to the\nplex API to derive the appropriate constraints at the formations’ time of use (if\nnecessary). We can look at a hypothetical two-component formation in a three-component plex\nas explanation. If we were to group two components and the constraint between them, that\nconstraint might be calibrated away if there were no co-observable features in a calibration\nscene. However, the two components might still be connected through the third, in what would\namount to a two-constraint, two-component system. The formation relationship should remain\nvalid even in this second case.\n\nBeyond this requirement, Formations are assigned a String, which acts as a non-unique\nidentifier for purpose or function, and a UUID of their own to simplify unique identification in\nthe plex (since there can be an arbitrary number of them!). The only requirement for\nFormations to be successfully created is the existence of all of its specified components in\nthe plex at hand.\n\n# Recommended Formation Indicators\n\nSince Formations can be named anything, it's recommended that algorithms that seek to use\nFormation designations clarify what strings or substrings they expect when looking up a\ngroup of components; these can be considered \"default\" keywords.\n\nFor example, any process looking to use a stereo rectification algorithm might expect to find a\nformation group with the substring \"stereo_depth\" or \"stereo_pair\" in the plex. This\nrecommended convention can be noted in the documentation of the algorithm, binary, or library.",
      "type": "object",
      "properties": {
        "components": {
          "description": "Components in these formations",
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          },
          "uniqueItems": true
        },
        "name": {
          "description": "The name for these formations. Usually indicates the purpose or function of the group.",
          "type": "string"
        },
        "uuid": {
          "description": "The unique identifier for these formations.",
          "type": "string",
          "format": "uuid"
        }
      },
      "required": [
        "components",
        "name",
        "uuid"
      ]
    },
    "Imu": {
      "description": "Type used for representing an IMU.",
      "type": "object",
      "properties": {
        "bias": {
          "description": "The bias associated with this IMU",
          "$ref": "#/$defs/ImuBias"
        },
        "bias_covariance": {
          "description": "The bias covariance",
          "$ref": "#/$defs/ComponentCovariance"
        },
        "intrinsic_covariance": {
          "description": "The specific force bias covariance",
          "$ref": "#/$defs/ComponentCovariance"
        },
        "intrinsics": {
          "description": "The intrinsic parameters associated with this IMU",
          "$ref": "#/$defs/ImuIntrinsics"
        },
        "name": {
          "description": "A user-friendly name for the specific component. Required to be unique within the Plex.",
          "type": "string"
        },
        "noise_parameters": {
          "description": "The noise parameters associated with this IMU",
          "$ref": "#/$defs/ImuNoise"
        },
        "uuid": {
          "description": "The UUID for this particular component.",
          "type": "string",
          "format": "uuid"
        }
      },
      "required": [
        "uuid",
        "name",
        "bias",
        "intrinsics",
        "noise_parameters",
        "bias_covariance",
        "intrinsic_covariance"
      ]
    },
    "ImuBias": {
      "description": "Type for modeling the bias of an Imu\n\nIn the model\n```text\ny(t) = x(t) + b(t)\n```\n\nWhere\n- `y(t)`: is the noise-free bias uncorrected signal\n- `x(t)`: is the true ideal signal\n- `b(t)`: is the bias of the signal\n\nNote these biases are inherently time-varying due to electrical and thermal properties of\nMEMS IMUs. As such, use of these quantities should be performed with great care, understanding\nand taking into account the uncertainty of the bias and its evolution.",
      "type": "object",
      "properties": {
        "gyro_bias": {
          "description": "Bias on the gyroscope measurements\n\nThis is a time-varying quantity and as such this bias should only be used within a small\nhorizon close to the inference time of this quantity.\n\nGyro bias is expressed in rads/s",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        },
        "specific_force_bias": {
          "description": "Bias on the specific force measurements\n\nThis is a time-varying quantity and as such this bias should only be used within a small\nhorizon close to the inference time of this quantity.\n\nSpecific force bias is expressed in m/s^2",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        }
      },
      "required": [
        "gyro_bias",
        "specific_force_bias"
      ]
    },
    "ImuIntrinsics": {
      "description": "Type for modeling the time-invariant intrinsics of an IMU. Note that this specifically\ndoes not include the wandering bias, which is assumed to be time-varying.",
      "oneOf": [
        {
          "description": "Scale",
          "type": "object",
          "properties": {
            "scale": {
              "$ref": "#/$defs/Scale"
            }
          },
          "additionalProperties": false,
          "required": [
            "scale"
          ]
        },
        {
          "description": "Scale and Shear,",
          "type": "object",
          "properties": {
            "scale-shear": {
              "$ref": "#/$defs/ScaleShear"
            }
          },
          "additionalProperties": false,
          "required": [
            "scale-shear"
          ]
        },
        {
          "description": "Scale, Shear and Rotation",
          "type": "object",
          "properties": {
            "scale-shear-rotation": {
              "$ref": "#/$defs/ScaleShearRotation"
            }
          },
          "additionalProperties": false,
          "required": [
            "scale-shear-rotation"
          ]
        },
        {
          "description": "Scale, Shear, Rotation and G-Sensitivity",
          "type": "object",
          "properties": {
            "scale-shear-rotation-g-sensitivity": {
              "$ref": "#/$defs/ScaleShearRotationGSensitivity"
            }
          },
          "additionalProperties": false,
          "required": [
            "scale-shear-rotation-g-sensitivity"
          ]
        }
      ]
    },
    "ImuNoise": {
      "description": "Type describing the various uncertainty parameters of an Imu\n\nBoth the gyroscope and specific force measurements are given a model of\n\n```text\ny(t) = x(t) + n(t) + b(t) + k(t)\n```\n\nWhere\n- `y(t)`: is the measured noisy signal\n- `x(t)`: is the true ideal signal\n- `n(t)`: is the component of the noise attributed to additive white-noise (constant PSD)\n- `b(t)`: is the component of the noise attributed to additive pink-noise (1/f PSD)\n- `k(t)`: is the component of the noise attributed to additive brown-noise (1/f^2 PSD). This can\n  be thought of as integrated white noise\n\nHere we explicitly ignore noise sources associated with quantization noise\n(flicker noise on integration, f-noise) and rate ramp (flicker noise on differentiation, 1/f^3\nnoise) as they are difficult to measure and also provide little if any benefit to the\nadjustment.",
      "type": "object",
      "properties": {
        "accelerometer_bias_instability": {
          "description": "Continuous-Time accelerometer bias instability noise coefficient (B)\n\nThis is the coefficient of the component of the specific force noise which determines the\nprecision with which we can infer the bias parameter. This component also determines the\nshort-term drift of the bias (typically on the order of 10s). In a power spectrum\ndecomposition, this component is proportional to 1/f (pink noise, flicker noise). This\nvalue can only be found on datasheets for relatively high-quality IMUs. It is typically an\norder of magnitude or two smaller than the angular random walk noise.\n\nIn the tangram ecosystem, this parameter has units of m/s^w. However, this value, if\nreported, is typically given in units of mg (milli-g's) and so proper conversion should be\napplied prior to creating this struct.\n\nIf this coefficient is not given in an IMU datasheet, it can be extracted by taking the\nminimum value of the Allan Deviation plot and then dividing by sqrt(2 * ln 2 / pi) ~=\n0.664.",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        },
        "accelerometer_correlation_time_constant": {
          "description": "Continuous-Time acceleration correlation time constant\n\nThis is the correlation time-constant associated with the pink-noise process for the\naccelerometer. This is typically not given as part of the datasheet for an imu. As a heuristic\nset this time constant equal to tau/1.89 where tau is the the value where the Allan Deviation\nreaches its minimum.\n\nSince this is a time constant it is a unitless quantity, however, a common interpretation\nis the time elapsed in seconds for the bias to decay by 63% in a noiseless environment.",
          "type": "number",
          "format": "double"
        },
        "accelerometer_rate_random_walk": {
          "description": "Continuous-Time accelerometer rate random walk noise coefficient (K)\n\nThis is the coefficient of the component of the specific force noise that determines the\nlong-term drift of the bias (typically on the order of 100s). In a power spectrum\ndecomposition, this component is proportional to 1/f^2 (brown noise). This value\ncan typically be found on datasheets under accelerometer rate random walk. It is typically\nthe same magnitude or an order of magnitude smaller than the accelerometer bias instability.\n\nIn the tangram ecosystem, this parameter has units of m/s^(5/2) or equivalently\n(m/s^2)sqrt(hz). However, this value is typically given in in mg sqrt(hz) where mg denotes\nmilli-g's and so proper conversion should be applied prior to creating this struct.\n\nIf this coefficient is is not given in an IMU datasheet, it can be extracted from the\nlog-log Allan Deviation plot, fitting a line of slope 1/2 to the plot for large values of\ntau and then evaluating this fit line at tau = 3.",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        },
        "accelerometer_turn_on_bias_uncertainty": {
          "description": "Turn on bias uncertainty\n\nThis is the initial uncertainty for the bias of the gyroscope. This value can typically\nbe found in datasheets under the turn on bias stability or turn on bias repeatability.\n\nIn the tangram ecosystem, this parameter has units of m/s^2.",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        },
        "angular_random_walk": {
          "description": "Continuous-Time angular random walk noise coefficient (N)\n\nThis is the coefficient that contributes to the component of gyroscope noise which induces a\nangular random walk. In a power spectrum decomposition, this component is proportional to 1\n(no frequency depencence, white noise). On datasheets,this coefficient can typically be\nfound under \"angular random walk\" sections.\n\nIn the tangram ecosystem, this parameter has units of rads/s^(1/2) or equivalently\n(rads/s)/sqrt(hz). However, this coefficient is typically reported on datasheets in\n(deg/hr)/sqrt(hz) and so the proper conversion should be applied prior to creating this\nstruct.\n\nIf this coefficient is is not given in an IMU datasheet, it can be extracted from the\nlog-log Allan Deviation plot, fitting a line of slope -1/2 to the plot for small values of\ntau and then evaluating this fit line at tau = 1.\n\nSince this value has units rads/s^(1/2), its discrete-time contribution to the gyroscope\nmeasurement scales with 1 / dt^(1/2) where dt is sampling period of the gyroscope.",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        },
        "gyro_bias_instability": {
          "description": "Continuous-Time gyroscope bias instability noise coefficient (B)\n\nThis is the coefficient of the component of the gyroscope noise which determines the\nprecision with which we can infer the bias parameter. This component also determines the\nshort-term drift of the bias (typically on the order of 10s). In a power spectrum\ndecomposition, this component is proportional to 1/f (pink noise, flicker noise). This\nvalue can only be found on datasheets for relatively high-quality IMUs. It is typically an\norder of magnitude or two smaller than the angular random walk noise.\n\nIn the tangram ecosystem, this parameter has units of rads/s. However, this value, if\nreported, is typically given in units of deg/hr and so proper conversion should be\napplied prior to creating this struct.\n\nIf this coefficient is not given in an IMU datasheet, it can be extracted by taking the\nminimum value of the Allan Deviation plot and then dividing by sqrt(2 * ln 2 / pi) ~=\n0.664.",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        },
        "gyro_correlation_time_constant": {
          "description": "Continuous-Time gyroscope correlation time constant\n\nThis is the correlation time-constant associated with the pink-noise process for the\ngyroscope. This is typically not given as part of the datasheet for an imu. As a heuristic\nset this time constant equal to tau/1.89 where tau is the the value where the Allan Deviation\nreaches its minimum.\n\nSince this is a time constant it is a unitless quantity, however, a common interpretation\nis the time elapsed in seconds for the bias to decay by 63% in a noiseless environment.",
          "type": "number",
          "format": "double"
        },
        "gyro_rate_random_walk": {
          "description": "Continuous-Time gyroscope rate random walk noise coefficient (K)\n\nThis is the coefficient of the component of the gyroscope noise that determines the\nlong-term drift of the bias (typically on the order of 100s). In a power spectrum\ndecomposition, this component is proportional to 1/f^2 (brown noise). This value\ncan typically be found on datasheets under gyroscope rate random walk. It is typically\nthe same magnitude or an order of magnitude smaller than the gyro bias instability.\n\nIn the tangram ecosystem, this parameter has units of rads/s^(3/2) or equivalently\n(rads/s)sqrt(hz). However, this value is typically given in in (deg/hr)sqrt(hz) and so\nproper conversion should be applied prior to creating this struct.\n\nIf this coefficient is is not given in an IMU datasheet, it can be extracted from the\nlog-log Allan Deviation plot, fitting a line of slope 1/2 to the plot for large values of\ntau and then evaluating this fit line at tau = 3.",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        },
        "gyro_turn_on_bias_uncertainty": {
          "description": "Turn on bias uncertainty\n\nThis is the initial uncertainty for the bias of the gyroscope. This value can typically\nbe found in datasheets under the turn on bias stability or turn on bias repeatability.\n\nIn the tangram ecosystem, this parameter has units of rads/s.",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        },
        "velocity_random_walk": {
          "description": "Continuous-Time velocity random walk noise coefficient (N)\n\nThis is the coefficient that contributes to the component of specific force noise which\ninduces a velocity random walk. In a power spectrum decomposition, this component is\nproportional to 1 (no frequency depencence, white noise). On datasheets,this coefficient\ncan typically be found under \"velocity random walk\" sections.\n\nIn the tangram ecosystem, this parameter has units of m/s^(3/2) or equivalently\n(m/s^2)/sqrt(hz). However, this coefficient is typically reported on datasheets in\nmg/sqrt(hz) where mg denotes milli-g's and so the proper conversion should be applied\nprior to creating this struct.\n\nIf this coefficient is is not given in an IMU datasheet, it can be extracted from the\nlog-log Allan Deviation plot, fitting a line of slope -1/2 to the plot for small values of\ntau and then evaluating this fit line at tau = 1.\n\nSince this value has units m/s^(3/2), its discrete-time contribution to the specific force\nmeasurement scales with 1 / dt^(1/2) where dt is sampling period of the accelerometer.",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        }
      },
      "required": [
        "angular_random_walk",
        "gyro_bias_instability",
        "gyro_correlation_time_constant",
        "gyro_rate_random_walk",
        "gyro_turn_on_bias_uncertainty",
        "velocity_random_walk",
        "accelerometer_bias_instability",
        "accelerometer_correlation_time_constant",
        "accelerometer_rate_random_walk",
        "accelerometer_turn_on_bias_uncertainty"
      ]
    },
    "Lidar": {
      "description": "Type used for representing a LiDAR.",
      "type": "object",
      "properties": {
        "name": {
          "description": "A user-friendly name for the specific component. Required to be unique within the plex.",
          "type": "string"
        },
        "uuid": {
          "description": "The UUID for this particular component.",
          "type": "string",
          "format": "uuid"
        }
      },
      "required": [
        "uuid",
        "name"
      ]
    },
    "LocalNavigationSystem": {
      "description": "Type used for representing a local navigation system, which is a component that has no specific\n\"intrinsics\" but represents something that emits pose, twist, or pose and twist (odometry)\nobservations.\n\nA local navigation system can comprise a full combination of GNSS / INS data, or can be purely\nbased on IMU data alone. In many cases it is better to calibrate to an IMU directly; however,\nlocal nav systems may be the output of a cohesive motion model or tracking model of some kind.\nTherefore, they exist as sort of a stop-gap to being able to register extrinsics to e.g. a\nlocal reference point on a platform or robot.",
      "type": "object",
      "properties": {
        "name": {
          "description": "A user-friendly name for the specific component. Required to be unique within the Plex.",
          "type": "string"
        },
        "uuid": {
          "description": "The UUID for this particular component.",
          "type": "string",
          "format": "uuid"
        }
      },
      "required": [
        "uuid",
        "name"
      ]
    },
    "NoDistortion": {
      "description": "An intrinsics model that represents Identity. It is a pinhole projection with no distortion or\naffine effects.\n\nAll correction of Camera models reduces to an image with `NoDistortion`.",
      "type": "object",
      "properties": {
        "cx": {
          "description": "Principal point offset along the horizontal direction.",
          "type": "number",
          "format": "double"
        },
        "cy": {
          "description": "Principal point offset along the vertical direction.",
          "type": "number",
          "format": "double"
        },
        "f": {
          "description": "Principal distance for this camera.",
          "type": "number",
          "format": "double"
        },
        "height": {
          "description": "height of the images described by this model, in pixels.",
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "width": {
          "description": "width of the images described by this model, in pixels.",
          "type": "integer",
          "format": "uint",
          "minimum": 0
        }
      },
      "required": [
        "f",
        "cx",
        "cy",
        "width",
        "height"
      ]
    },
    "Omni": {
      "description": "Omnidirectional camera model for lenses with ultra-wide FOV (>180 degrees) and catadioptric\nprojection.\n\nReference: <https://www.robots.ox.ac.uk/~cmei/articles/single_viewpoint_calib_mei_07.pdf>",
      "type": "object",
      "properties": {
        "cx": {
          "description": "Principal point offset along the horizontal direction.",
          "type": "number",
          "format": "double"
        },
        "cy": {
          "description": "Principal point offset along the vertical direction.",
          "type": "number",
          "format": "double"
        },
        "f": {
          "description": "Principal distance for this camera. Note that this is not a \"true\" focal length, but a\n\"generalized\" focal length. It is a combined term described by `f * eta`, where eta is a\ncollineation factor that depends on the lens + mirror combination. For projection purposes,\nthis value can be treated as a conventional focal length.",
          "type": "number",
          "format": "double"
        },
        "height": {
          "description": "height of the images described by this model, in pixels.",
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "k1": {
          "description": "The first radial distortion parameter",
          "type": "number",
          "format": "double"
        },
        "k2": {
          "description": "The second radial distortion parameter",
          "type": "number",
          "format": "double"
        },
        "p1": {
          "description": "The first tangential distortion parameter",
          "type": "number",
          "format": "double"
        },
        "p2": {
          "description": "The second tangential distortion parameter",
          "type": "number",
          "format": "double"
        },
        "width": {
          "description": "width of the images described by this model, in pixels.",
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "xi": {
          "description": "In \"A Unifying Theory for Central Panoramic Systems and Practical Implications\" (Geyer,\nDaniilidis), the authors show that all mirror surfaces can be modeled with a projection from\nthe unit sphere to the plane where the projection center is on a sphere diameter and the\nplane perpendicular to it. xi is the distance between these two spheres.",
          "type": "number",
          "format": "double"
        }
      },
      "required": [
        "f",
        "cx",
        "cy",
        "xi",
        "k1",
        "k2",
        "p1",
        "p2",
        "width",
        "height"
      ]
    },
    "PinholeWithBrownConrady": {
      "description": "The \"complete\" Brown-Conrady distortion correction model.\n\nThis model covers both radial and tangential distortion of light between the lens and image\nplane. Tangential distortion is sometimes referred to as decentering distortion, because\ntangential effects are modeled as tangential shifts from the principal point due to lens\nassembly misalignment.\n\nThe Brown-Conrady model uses a separate set of coefficients for both radial\n(k-coefficients) and tangential (p-coefficients) distortions. These coefficients\napproximate a Taylor-series expansion of the radial and tangential components of\nsemi-spherical lens distortion. The approximation of this Taylor series assumes some amount\nof \"small-angle approximation.\" This assumption of small angle approximation often breaks\ndown when dealing with lenses that have extreme distortions at the periphery (e.g. fish-eye\nor ultra-wide angle lenses). However, the model is fairly robust for standard view lenses\nand is resilient to distortion overfitting when used on standard view lenses.\n\nSee the [original Conrady paper](https://doi.org/10.1093%2Fmnras%2F79.5.384) for a more\nthorough description of the model, or the [original Brown\npaper](http://www.close-range.com/docs/Decentering_Distortion_of_Lenses_Brown_1966_may_444-462.pdf).\n\nWhile we do advertise this as the \"complete\" Brown-Conrady model, it is only complete\ninsofar as it considers the most significant parametric coefficients seen in most cameras.\nAs far as additional parameters go, one could have [k1 kN] for some arbitrarily large N, or\n[p1 pM] for some arbitrarily large M. In practice, however, one should find that the\nprovided model below suffices for most standard lens types.",
      "type": "object",
      "properties": {
        "cx": {
          "description": "Principal point offset along the horizontal direction.",
          "type": "number",
          "format": "double"
        },
        "cy": {
          "description": "Principal point offset along the vertical direction.",
          "type": "number",
          "format": "double"
        },
        "f": {
          "description": "Principal distance for this camera.",
          "type": "number",
          "format": "double"
        },
        "height": {
          "description": "height of the images described by this model, in pixels.",
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "k1": {
          "description": "First order radial distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "k2": {
          "description": "Second order radial distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "k3": {
          "description": "Third order radial distortion correction coefficient.\n\nIn most cases, this coefficient should probably go unused. If you do find yourself\nutilizing higher order components for radial lens distortion, there is a good chance\nyou want to use the Kannala-Brandt model instead.",
          "type": "number",
          "format": "double"
        },
        "p1": {
          "description": "First order tangential (decentering) distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "p2": {
          "description": "Second order tangential (decentering) distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "width": {
          "description": "width of the images described by this model, in pixels.",
          "type": "integer",
          "format": "uint",
          "minimum": 0
        }
      },
      "required": [
        "f",
        "cx",
        "cy",
        "k1",
        "k2",
        "k3",
        "p1",
        "p2",
        "width",
        "height"
      ]
    },
    "PinholeWithKannalaBrandt": {
      "description": "The complete Kannala-Brandt distortion correction model.\n\nThis model bundles radial and tangential distortions in a combined form, treating the final\ncorrection as a series of coefficients describing a singular conic. Because we are fitting\na full conic, there is no \"small-angle approximation\" in the underlying model, which makes\nthis model a better fit for fish-eye, wide, or ultra-wide angle lenses. However, this model\nis less applicable to standard view lenses, as it can be subject to overfitting of the\nunderlying distortion. This typically demonstrates an artefact of trying to fit a broader\nconic to a small line segment of noisy data.\n\nSee the [original\npaper](http://close-range.com/docs/A_GENERIC_CAMERA_MODEL_AND_CALIBRATION_METHOD_Kannala-Brandt_pdf697.pdf)\nfor more details.\n\nWhile we do advertise this as the \"complete\" Kannala-Brandt model, it is only complete\ninsofar as it considers the most significant parametric coefficients used for most\nwide and ultra-wide angle lens configurations. While arbitrarily large numbers of\ncoefficients could be used to describe the conical model of the lens, in practice the\nprovided model below suffices for the majority of lenses.",
      "type": "object",
      "properties": {
        "cx": {
          "description": "Principal point offset along the horizontal direction.",
          "type": "number",
          "format": "double"
        },
        "cy": {
          "description": "Principal point offset along the vertical direction.",
          "type": "number",
          "format": "double"
        },
        "f": {
          "description": "Principal distance for this camera.",
          "type": "number",
          "format": "double"
        },
        "height": {
          "description": "height of the images described by this model, in pixels.",
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "k1": {
          "description": "First order KB distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "k2": {
          "description": "Second order KB distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "k3": {
          "description": "Third order KB distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "k4": {
          "description": "Fourth order KB distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "width": {
          "description": "width of the images described by this model, in pixels.",
          "type": "integer",
          "format": "uint",
          "minimum": 0
        }
      },
      "required": [
        "f",
        "cx",
        "cy",
        "k1",
        "k2",
        "k3",
        "k4",
        "width",
        "height"
      ]
    },
    "PixelReadout": {
      "description": "Describes the way pixels or pixel rows (or columns!) are read from the imaging sensor on a\ncamera.\n\nOften cameras are categorized according to being \"rolling shutter\" or \"global shutter\" cameras,\nwhich describes how some digital CMOS cameras would read out the \"pixel grid\" in accordance to\nthe shutter movement of a camera. As the shutter would \"roll\" across the imaging sensor, it\nwould expose only a limited range of pixels on the grid, and rows (or columns, dependent on how\nyou want to orient it) would be read out sequentially. This meant that the exposure time of any\ngiven row is \"rolling\" and as such subsequent rows would have different exposure periods.\n\nConversely, \"global\" shutter cameras expose the entire pixel grid at once, so that every row\n(or again, column) of the pixel grid shares the same exposure period.\n\nIn most cases, care needs to be taken with \"rolling\" shutters because the image contains\nmultiple different exposures, which are stitched together into a single image. This may\nsometimes appear as a wobbling artefact in the final image.\n\nHowever, shutter mechanisms such as this are:\n\n1. Not always actually available for a camera\n2. A physical mechanism that is meant to correspond to a digital readout of a CMOS (or similar)\n   sensor.\n\nIn modern digital cameras, there may not be a physical shutter mechanism that exposes the\npixels in an rolling way, but the problem of pixel readout and different exposures-per-row of\nthe pixel grid can still be replicated without the shutter effect. For that reason, this type\nis not named \"shutter kind\" but rather \"pixel readout,\"  as these effects can still be\ndescribed in the system without necessarily corresponding to an actual physical shutter.\n\nThe intent of fields of this type is to describe the system as it functions. Algorithms\ndownstream MAY choose to implement differing corrections or logic based on the readout of a\nparticular camera, but are not required to do so.",
      "oneOf": [
        {
          "description": "The pixel readout on the image sensor is global, and all exposures across rows/columns are\nsynchronized.\n\nSee [type docs](PixelReadout) for more information on how this relates to other variants.",
          "type": "string",
          "const": "Global"
        },
        {
          "description": "The pixel readout on the image sensor are rolling, and exposures across rows/columns are\nnot guaranteed to be synchronized.\n\nPrimarily, it is assumed that this means top-to-bottom readout of the image sensor, as is\ntypically default in perception cameras.\n\nSee [type docs](PixelReadout) for more information on how this relates to other variants.",
          "type": "string",
          "const": "Rolling"
        }
      ]
    },
    "Radar": {
      "description": "Type used for representing a RADAR.\n\nThe constituent resolutions should be acquired from the hardware data sheet if possible.",
      "type": "object",
      "properties": {
        "azimuth_resolution": {
          "description": "Azimuth resolution in radians",
          "type": "number",
          "format": "double"
        },
        "elevation_resolution": {
          "description": "Elevation resolution in radians",
          "type": "number",
          "format": "double"
        },
        "name": {
          "description": "A user-friendly name for the specific component. Required to be unique within the Plex.",
          "type": "string"
        },
        "range_rate_resolution": {
          "description": "Range-rate resolution in m/s",
          "type": "number",
          "format": "double"
        },
        "range_resolution": {
          "description": "Range resolution in meters",
          "type": "number",
          "format": "double"
        },
        "uuid": {
          "description": "The UUID for this particular component.",
          "type": "string",
          "format": "uuid"
        }
      },
      "required": [
        "uuid",
        "name",
        "azimuth_resolution",
        "elevation_resolution",
        "range_resolution",
        "range_rate_resolution"
      ]
    },
    "SE3": {
      "description": "Isometry type which represents its local coordinates with a mixed translation and rotation.",
      "type": "object",
      "properties": {
        "rotation": {
          "description": "The rotation component of this extrinsic, as a quaternion tuple. Order: [x, y, z, w]",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 4,
          "minItems": 4
        },
        "translation": {
          "description": "The translation component of this extrinsic",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        }
      },
      "required": [
        "translation",
        "rotation"
      ]
    },
    "Scale": {
      "description": "Imu intrinsics for performing scale corrections on IMU measurements\n\nSpecifically, these are scale factors that are applied to the bias shifted measurements\n\nIn the model\n```text\ny(t) = Tx(t) + b(t)\n```\n\nWhere\n- `y(t)`: is the noise-free uncorrected signal\n- `x(t)`: is the true ideal signal\n- `b(t)`: is the bias of the signal\n- `T`: is the scale factor modeling matrix\n\nHere, we store D = T^{-1}, since we are interested in correcting the bias shifted measurements\nAs such we have the correcting model of\n```text\nx(t) = D(y(t) - b(t))\n```\n\nD is given by the matrix\n```text\nD = [scale_x 0       0      ]\n    [0       scale_y 0      ]\n    [0       0       scale_z]\n```",
      "type": "object",
      "properties": {
        "gyro_scale": {
          "description": "Scale factors for specific gyroscope measurements\nSpecifically, these are the corrective scale factors that take an uncalibrated\nand bias corrected gyroscope measurement and scale them correctly",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        },
        "specific_force_scale": {
          "description": "Scale factors for specific gyroscope measurements\nSpecifically, these are the corrective scale factors that take an uncalibrated\nand bias corrected specific force measurement and scale them correctly",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        }
      },
      "required": [
        "gyro_scale",
        "specific_force_scale"
      ]
    },
    "ScaleShear": {
      "description": "Imu intrinsics for performing scale and shear corrections on IMU measurements\n\nSpecifically, these are scale factors that are applied to the bias shifted measurements\n\nIn the model\n```text\ny(t) = Tx(t) + b(t)\n```\n\nWhere\n- `y(t)`: is the noise-free uncorrected signal\n- `x(t)`: is the true ideal signal\n- `b(t)`: is the bias of the signal\n- `T`: is the scale factor modeling matrix\n\nHere, we store D = T^{-1}, since we are interested in correcting the bias shifted measurements\nAs such we have the correcting model of\n```text\nx(t) = D(y(t) - b(t))\n```\n\nD is given by the matrix\n```text\nD = [scale_x shear_xy shear_xz]\n    [0       scale_y  shear_yz]\n    [0       0        scale_z ]\n```",
      "type": "object",
      "properties": {
        "gyro_scale": {
          "description": "Scale factors for specific gyroscope measurements\nSpecifically, these are the corrective scale factors that take an uncalibrated\nand bias corrected gyroscope measurement and scale them correctly",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        },
        "gyro_shear": {
          "description": "Shear factors for gyroscope measurements\nSpecifically, these are the corrective shear factors that take an uncalibrated\nand bias corrected gyroscope measurement and shear them correctly",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        },
        "specific_force_scale": {
          "description": "Scale factors for specific gyroscope measurements\nSpecifically, these are the corrective scale factors that take an uncalibrated\nand bias corrected specific force measurement and scale them correctly",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        },
        "specific_force_shear": {
          "description": "Shear factors for specific force measurements\nSpecifically, these are the corrective shear factors that take an uncalibrated\nand bias corrected specific force measurement and shear them correctly",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        }
      },
      "required": [
        "gyro_scale",
        "specific_force_scale",
        "gyro_shear",
        "specific_force_shear"
      ]
    },
    "ScaleShearRotation": {
      "description": "Imu intrinsics for performing scale, shear and rotation corrections on IMU measurements\n\nSpecifically, these are scale factors that are applied to the bias shifted measurements\n\nIn the model\n```text\ny(t) = TRx(t) + b(t)\n```\n\nWhere\n- `y(t)`: is the noise-free uncorrected signal\n- `x(t)`: is the true ideal signal\n- `b(t)`: is the bias of the signal\n- `T`: is the scale factor modeling matrix\n- `R`: is the rotation matrix taking the sensor frame (gyroscope, accelerometer) to the imu frame.\n  In the case of the gyroscope, this is the identity matrix. In the case of the accelerometer,\n  it is accel_from_gyro_rot. It is assumed that the accelerometer and gyroscope are physically\n  attached to the same platform, and as such the translation between the two frames is zero.\n\n\nHere, we store D = T^{-1}, since we are interested in correcting the bias shifted measurements\nAs such we have the correcting model of\n```text\nx(t) = R^TD(y(t) - b(t))\n```\n\nD is given by the matrix\n```text\nD = [scale_x shear_xy shear_xz]\n    [0       scale_y  shear_yz]\n    [0       0        scale_z ]\n```",
      "type": "object",
      "properties": {
        "accel_from_gyro_rot": {
          "description": "Rotational extrinsics between gyro and accelerometer\nHere we have the specific assumption that there is a negligible\nand unobservable translation difference",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 4,
          "minItems": 4
        },
        "gyro_scale": {
          "description": "Scale factors for specific gyroscope measurements\nSpecifically, these are the corrective scale factors that take an uncalibrated\nand bias corrected gyroscope measurement and scale them correctly",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        },
        "gyro_shear": {
          "description": "Shear factors for gyroscope measurements\nSpecifically, these are the corrective shear factors that take an uncalibrated\nand bias corrected gyroscope measurement and shear them correctly",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        },
        "specific_force_scale": {
          "description": "Scale factors for specific gyroscope measurements\nSpecifically, these are the corrective scale factors that take an uncalibrated\nand bias corrected specific force measurement and scale them correctly",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        },
        "specific_force_shear": {
          "description": "Shear factors for specific force measurements\nSpecifically, these are the corrective shear factors that take an uncalibrated\nand bias corrected specific force measurement and shear them correctly",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        }
      },
      "required": [
        "gyro_scale",
        "specific_force_scale",
        "gyro_shear",
        "specific_force_shear",
        "accel_from_gyro_rot"
      ]
    },
    "ScaleShearRotationGSensitivity": {
      "description": "Imu intrinsics for performing scale, shear and rotation corrections on IMU measurements\n\nIn the model\n```text\ny(t) = TRx(t) + b(t)\n```\n\nWhere\n- `y(t)`: is the noise-free uncorrected signal\n- `x(t)`: is the true ideal signal\n- `b(t)`: is the bias of the signal\n- `T`: is the scale factor modeling matrix\n- `R`: is the rotation matrix taking the sensor frame (gyroscope, accelerometer) to the imu frame.\n  In the case of the gyroscope, this is the identity matrix. In the case of the accelerometer,\n  it is accel_from_gyro_rot. It is assumed that the accelerometer and gyroscope are physically\n  attached to the same platform, and as such the translation between the two frames is zero.\n\n\nHere, we store D = T^{-1}, since we are interested in correcting the bias shifted measurements\nAs such we have the correcting model of\n```text\nx(t) = R^TD(y(t) - b(t))\n```\n\nD is given by the matrix\n```text\nD = [scale_x shear_xy shear_xz]\n    [0       scale_y  shear_yz]\n    [0       0        scale_z ]\n```\n\nAdditionally the bias has an additional additive term for G sensitivity given by Ga(t) where\n`a(t)` is the specific force in the imu frame\nand G is the gravitational sensitivity matrix\n```text\nG = [g_sensitivity_x g_sensitivity_xy g_sensitivity_xz]\n    [0              g_sensitivity_y  g_sensitivity_yz]\n    [0              0                g_sensitivity_z ]\n```",
      "type": "object",
      "properties": {
        "accel_from_gyro_rot": {
          "description": "Rotational extrinsics between gyro and accelerometer\nHere we have the specific assumption that there is a negligible\nand unobservable translation difference",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 4,
          "minItems": 4
        },
        "g_sensitivity": {
          "description": "Gyroscope gravitational sensitivity",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        },
        "g_sensitivity_cross_axis": {
          "description": "Gyroscope gravitational sensitivity cross axis",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        },
        "gyro_scale": {
          "description": "Scale factors for specific gyroscope measurements\nSpecifically, these are the corrective scale factors that take an uncalibrated\nand bias corrected gyroscope measurement and scale them correctly",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        },
        "gyro_shear": {
          "description": "Shear factors for gyroscope measurements\nSpecifically, these are the corrective shear factors that take an uncalibrated\nand bias corrected gyroscope measurement and shear them correctly",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        },
        "specific_force_scale": {
          "description": "Scale factors for specific gyroscope measurements\nSpecifically, these are the corrective scale factors that take an uncalibrated\nand bias corrected specific force measurement and scale them correctly",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        },
        "specific_force_shear": {
          "description": "Shear factors for specific force measurements\nSpecifically, these are the corrective shear factors that take an uncalibrated\nand bias corrected specific force measurement and shear them correctly",
          "type": "array",
          "items": {
            "type": "number",
            "format": "double"
          },
          "maxItems": 3,
          "minItems": 3
        }
      },
      "required": [
        "gyro_scale",
        "specific_force_scale",
        "gyro_shear",
        "specific_force_shear",
        "accel_from_gyro_rot",
        "g_sensitivity",
        "g_sensitivity_cross_axis"
      ]
    },
    "SpatialConstraint": {
      "description": "Type describing a spatial (extrinsic) constraint between two components.\n\n`from` and `to` serve to indicate the coordinate reference of the extrinsics.\n\nExtrinsics are recorded in the frame of the \"`to` from `from`\" frame. Example: if `to` relates\nto a depth camera component, and `from` relates to a color camera component, then the\nextrinsics are \"depth from color\" extrinsics. See [the\ndocumentation](https://www.notion.so/tangramvision/Plexes-5dedf69dd9da40978f428ea544f6634c) for\nmore.",
      "type": "object",
      "properties": {
        "covariance": {
          "description": "Covariance matrix of the extrinsics. This is a 6x6 matrix representing the uncertainty in\nthe extrinsics as a Lie group. Translation is represented in the first three rows/columns,\nwhile rotation is represented in the last three rows/columns.",
          "$ref": "#/$defs/ExtrinsicCovariance"
        },
        "extrinsics": {
          "description": "Extrinsics between components. This is represented as an SE(3) Lie group, translation\nfollowed by rotation.",
          "$ref": "#/$defs/SE3"
        },
        "from": {
          "description": "The UUID of the component that extrinsics must be applied to.",
          "type": "string",
          "format": "uuid"
        },
        "to": {
          "description": "The UUID of the component whose coordinate frame we transform into when applying the\nextrinsics (to the coordinate frame of the `from` component).",
          "type": "string",
          "format": "uuid"
        }
      },
      "required": [
        "extrinsics",
        "covariance",
        "from",
        "to"
      ]
    },
    "Synchronization": {
      "description": "A type describing how to relate timestamps between two different clocks, C1 and C2.\n\nUses the terminology from [this\npaper](https://www.iol.unh.edu/sites/default/files/knowledgebase/1588/clock_synchronization_terminology.pdf).\nThis effectively is a type describing the following relationship between two clocks:\n\n```text\ntime_c2 = (1_000_000_000 + skew) * time_c1 + offset\n```\n\nwhere the relation is a C2 &larr; C1 (C2 from C1) temporal constraint. Note that the above\nassumes every unit is in integer nanoseconds.\n\nThis tells us how to relate two timestamps to be in the same temporal frame-of-reference.\n\nSynchronization behaves according to the following model:\n\n  y = (1 + a) x + b\n\n  - y: time_to       -- unit: ns\n  - a: skew          -- unit: unitless\n  - x: time_from     -- unit: ns\n  - b: offset        -- unit: ns\n\nDue to the use of integer mathematics, the application of this formula in code is not\nintuitive.  We don't use floating point numbers in an effort to preserve precision. Therefore,\nwe convert everything into integer space.\n\nSince we're dealing in nanoseconds, we have chosen a factor of 1e9 to perform this\ntransformation, because it preserves integer operations to the nanosecond. Anything less than a\nnanosecond will be truncated.\n\nApplying this transformation to our synchronization formula produces the following equation:\n\n```text\ny = 1e9 [(1 + a) x + b]\n    -------------------\n           1e9\n```\n\nWhich simplifies (a little) into:\n\n```text\ny = (1e9 + 1e9 * a) x + b\n    -----------------\n          1e9\n```\n\nGiven this, you'll see a few non-intuitive considerations in our code:\n\n- The `skew` term is actually stored as `1e9 * a` in our struct for ease of compute.\n- We must add and divide by a factor of 1e9 in order to maintain correct units during\n  composition.\n\nIt's all for the precision.",
      "type": "object",
      "properties": {
        "offset": {
          "description": "The epoch offset between two clocks.\n\nIn units of integer nanoseconds.",
          "type": "integer",
          "format": "int64"
        },
        "skew": {
          "description": "The scale offset between two clocks.\n\nSee the [`Synchronization`] type description for how we represent this unitless factor.",
          "type": "integer",
          "format": "int64"
        }
      },
      "required": [
        "offset",
        "skew"
      ]
    },
    "TemporalConstraint": {
      "description": "Type describing a temporal (synchronization) constraint between two components.\n\n`from` and `to` serve to indicate the direction that any synchronization should be applied\nbetween the two components.\n\nIf you're wondering how to apply the synchronization strategy, consider:\n\n```text\nclock_to = fn(strategy, clock_from);\n```\n\nWhich is the direction that this constraint should be applied in order to correctly synchronize\nthe `to` and `from` component clocks.",
      "type": "object",
      "properties": {
        "from": {
          "description": "The UUID of the component that the synchronization strategy must be applied to.",
          "type": "string",
          "format": "uuid"
        },
        "resolution": {
          "description": "The resolution to which synchronization should be applied.\n\nCan also colloquially describe the confidence - a smaller resolution is a higher confidence\ncheck during synchronization.\n\n# Examples\n\nIf you have a camera at 30FPS, you would probably describe the resolution as 16ms, or\n16_000_000 ns. Resolution is the magnitude of the half-interval span of time that you would\nexpect to match observations. However, this would more or less approximate \"nearest\nneighbour\" synchronization where you just pick the closest frame in your resolution. This\nis because you would be setting your resolution according to your frame-rate, and not\naccording to any real knowledge of how close the clocks actually are.\n\nIf you're measuring synchronization (as opposed to just querying it or making it up), you\ncan probably determine roughly what the resolution is independent of the frame-rate, which\nis strictly better in most cases. This gives you an idea of how different two clocks\nactually are, and should provide more confidence in the final matching of observations.\n\nNOTE: In most cases you should probably expect that resolution doesn't get worse than the\nhalf interval related to the frame-rate of your device. In such cases, you probably have a\nbroken clock.",
          "type": "integer",
          "format": "uint64",
          "minimum": 0
        },
        "synchronization": {
          "description": "The strategy to achieve known synchronization between these two components in the plex.",
          "$ref": "#/$defs/Synchronization"
        },
        "to": {
          "description": "The UUID of the component whose clock we synchronize into by applying our synchronization\nstrategy (to the `from` component).",
          "type": "string",
          "format": "uuid"
        }
      },
      "required": [
        "synchronization",
        "resolution",
        "from",
        "to"
      ]
    },
    "TransformTree": {
      "description": "Variant of component describing anything that produces a transform tree.\n\nThis is usually tied to anything with a kinematic chain, like a robotic arm.",
      "type": "object",
      "properties": {
        "name": {
          "description": "A user-friendly name for the specific component. Required to be unique within the Plex.",
          "type": "string"
        },
        "uuid": {
          "description": "The UUID for this particular component.",
          "type": "string",
          "format": "uuid"
        }
      },
      "required": [
        "uuid",
        "name"
      ]
    },
    "opencv_fisheye": {
      "description": "Fisheye lens distortion as implemented by OpenCV.",
      "type": "object",
      "properties": {
        "cx": {
          "description": "Principal point offset along the horizontal direction.",
          "type": "number",
          "format": "double"
        },
        "cy": {
          "description": "Principal point offset along the vertical direction.",
          "type": "number",
          "format": "double"
        },
        "f": {
          "description": "Principal distance for this camera.",
          "type": "number",
          "format": "double"
        },
        "height": {
          "description": "height of the images described by this model, in pixels.",
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "k1": {
          "description": "First order KB distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "k2": {
          "description": "Second order KB distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "k3": {
          "description": "Third order KB distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "k4": {
          "description": "Fourth order KB distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "width": {
          "description": "width of the images described by this model, in pixels.",
          "type": "integer",
          "format": "uint",
          "minimum": 0
        }
      },
      "required": [
        "f",
        "cx",
        "cy",
        "k1",
        "k2",
        "k3",
        "k4",
        "width",
        "height"
      ]
    },
    "opencv_radtan": {
      "description": "Brown-Conrady distortion as implemented by OpenCV. This is their familiar\n5-parameter distortion model in the non-Fisheye namespace. It contains\nthree radial distortion parameters and two tangential distortion parameters",
      "type": "object",
      "properties": {
        "cx": {
          "description": "Principal point offset along the horizontal direction.",
          "type": "number",
          "format": "double"
        },
        "cy": {
          "description": "Principal point offset along the vertical direction.",
          "type": "number",
          "format": "double"
        },
        "f": {
          "description": "Principal distance for this camera.",
          "type": "number",
          "format": "double"
        },
        "height": {
          "description": "height of the images described by this model, in pixels.",
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "k1": {
          "description": "First order radial distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "k2": {
          "description": "Second order radial distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "k3": {
          "description": "Third order radial distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "p1": {
          "description": "Tangential (decentering) distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "p2": {
          "description": "Tangential (decentering) distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "width": {
          "description": "width of the images described by this model, in pixels.",
          "type": "integer",
          "format": "uint",
          "minimum": 0
        }
      },
      "required": [
        "f",
        "cx",
        "cy",
        "k1",
        "k2",
        "k3",
        "p1",
        "p2",
        "width",
        "height"
      ]
    },
    "opencv_rational": {
      "description": "Brown-Conrady distortion as implemented by OpenCV, with an extended coefficient set that\nmodifies the radial disortion term.\n\nIt contains six radial distortion parameters and two tangential distortion parameters.",
      "type": "object",
      "properties": {
        "cx": {
          "description": "Principal point offset along the horizontal direction.",
          "type": "number",
          "format": "double"
        },
        "cy": {
          "description": "Principal point offset along the vertical direction.",
          "type": "number",
          "format": "double"
        },
        "f": {
          "description": "Principal distance for this camera.",
          "type": "number",
          "format": "double"
        },
        "height": {
          "description": "height of the images described by this model, in pixels.",
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "k1": {
          "description": "First order radial distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "k2": {
          "description": "Second order radial distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "k3": {
          "description": "Third order radial distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "k4": {
          "description": "Fourth order radial distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "k5": {
          "description": "Fifth order radial distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "k6": {
          "description": "Sixth order radial distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "p1": {
          "description": "Tangential (decentering) distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "p2": {
          "description": "Tangential (decentering) distortion correction coefficient.",
          "type": "number",
          "format": "double"
        },
        "width": {
          "description": "width of the images described by this model, in pixels.",
          "type": "integer",
          "format": "uint",
          "minimum": 0
        }
      },
      "required": [
        "f",
        "cx",
        "cy",
        "k1",
        "k2",
        "k3",
        "p1",
        "p2",
        "k4",
        "k5",
        "k6",
        "width",
        "height"
      ]
    },
    "power_law": {
      "description": "Pihole projection + power law distortion. This model describes distortion as a power law,\nincreasing in magnitude exponentially according to the `alpha` term. The `beta` term is a linear\nparameter on the radial distance.\n\nThe full form is\n\n```text\nr = sqrt(u^2 + v^2)\nu' = u - beta * r^(alpha) * (u / r)\nv' = v - beta * r^(alpha) * (v / r)\n```\n\nWhen simplified, this comes out to the formulas implemented in this file:\n\n```text\ndist_radial = 1 - b * r^(a-1)\n(u', v') = (u * dist_radial, v * dist_radial)\n```\n\nNote that alpha must be strictly greater than 1.0, or else our exponent drops below 0.0 and we\nget a little imaginary.",
      "type": "object",
      "properties": {
        "alpha": {
          "description": "Exponential distortion parameter",
          "type": "number",
          "format": "double"
        },
        "beta": {
          "description": "Linear distortion parameter",
          "type": "number",
          "format": "double"
        },
        "cx": {
          "description": "Principal point offset along the horizontal direction.",
          "type": "number",
          "format": "double"
        },
        "cy": {
          "description": "Principal point offset along the vertical direction.",
          "type": "number",
          "format": "double"
        },
        "f": {
          "description": "Principal distance for this camera.",
          "type": "number",
          "format": "double"
        },
        "height": {
          "description": "height of the images described by this model, in pixels.",
          "type": "integer",
          "format": "uint",
          "minimum": 0
        },
        "width": {
          "description": "width of the images described by this model, in pixels.",
          "type": "integer",
          "format": "uint",
          "minimum": 0
        }
      },
      "required": [
        "f",
        "cx",
        "cy",
        "alpha",
        "beta",
        "width",
        "height"
      ]
    }
  }
}