From 55e4a6b52767bd27cd5d4a4964cd4991ccc258e5 Mon Sep 17 00:00:00 2001 From: jvallve <jvallve@iri.upc.edu> Date: Thu, 4 Aug 2022 11:52:01 +0200 Subject: [PATCH] added prefix _ to schemas --- .../schema/SensorRangeBearing.schema | 12 ++-- schema/map/MapBase.schema | 18 +++--- schema/none.schema | 10 +-- schema/problem/Problem.schema | 40 ++++++------ schema/problem/SpecState.schema | 30 ++++----- schema/problem/SpecStateO2d.schema | 18 +++--- schema/problem/SpecStateO3d.schema | 18 +++--- schema/problem/SpecStateP2d.schema | 18 +++--- schema/problem/SpecStateP3d.schema | 18 +++--- schema/problem/SpecStateV2d.schema | 18 +++--- schema/problem/SpecStateV3d.schema | 18 +++--- schema/processor/MotionProvider.schema | 12 ++-- schema/processor/ProcessorBase.schema | 24 +++---- schema/processor/ProcessorMotion.schema | 30 ++++----- schema/processor/ProcessorOdom2d.schema | 6 +- schema/processor/ProcessorSequence.schema | 14 ++-- schema/processor/ProcessorTracker.schema | 12 ++-- schema/sensor/SensorBase.schema | 6 +- schema/sensor/SensorDiffDrive.schema | 52 +++++++-------- schema/sensor/SensorOdom2d.schema | 30 ++++----- schema/sensor/SensorOdom3d.schema | 52 +++++++-------- schema/sensor/SensorPose2d.schema | 12 ++-- schema/sensor/SensorPose3d.schema | 12 ++-- schema/sensor/SensorSequence.schema | 14 ++-- schema/sensor/SpecStateSensor.schema | 14 ++-- schema/sensor/SpecStateSensorO2d.schema | 30 ++++----- schema/sensor/SpecStateSensorO3d.schema | 30 ++++----- schema/sensor/SpecStateSensorP2d.schema | 30 ++++----- schema/sensor/SpecStateSensorP3d.schema | 30 ++++----- schema/solver/SolverCeres.schema | 64 +++++++++---------- schema/solver/SolverManager.schema | 36 +++++------ schema/tree_manager/TreeManagerBase.schema | 8 +-- .../TreeManagerSlidingWindow.schema | 26 ++++---- .../TreeManagerSlidingWindowDualRate.schema | 12 ++-- .../dummy/ProcessorTrackerFeatureDummy.schema | 6 +- test/dummy/SensorDummy2d.schema | 12 ++-- test/dummy/SensorDummy3d.schema | 12 ++-- test/dummy/SensorDummyPoia3d.schema | 48 +++++++------- test/dummy/TreeManagerDummy.schema | 6 +- 39 files changed, 429 insertions(+), 429 deletions(-) diff --git a/demos/hello_wolf/schema/SensorRangeBearing.schema b/demos/hello_wolf/schema/SensorRangeBearing.schema index bc40eef77..c6ce2e0f5 100644 --- a/demos/hello_wolf/schema/SensorRangeBearing.schema +++ b/demos/hello_wolf/schema/SensorRangeBearing.schema @@ -1,16 +1,16 @@ follow: SensorBase.schema noise_range_metres_std: - mandatory: true - type: double + _mandatory: true + _type: double yaml_type: scalar - doc: Standard deviation of the noise of the range measurements (meters) + _doc: Standard deviation of the noise of the range measurements (meters) noise_bearing_degrees_std: - mandatory: true - type: double + _mandatory: true + _type: double yaml_type: scalar - doc: Standard deviation of the noise of the bearing measurements (degrees) + _doc: Standard deviation of the noise of the bearing measurements (degrees) states: P: diff --git a/schema/map/MapBase.schema b/schema/map/MapBase.schema index 0b8f4dafc..f48322117 100644 --- a/schema/map/MapBase.schema +++ b/schema/map/MapBase.schema @@ -1,10 +1,10 @@ -type: - mandatory: false - type: string - default: MapBase - doc: Type of the Map used in the problem. +_type: + _mandatory: false + _type: string + _default: MapBase + _doc: Type of the Map used in the problem. plugin: - mandatory: false - type: string - default: core - doc: Name of the wolf plugin where the map type is implemented. \ No newline at end of file + _mandatory: false + _type: string + _default: core + _doc: Name of the wolf plugin where the map type is implemented. \ No newline at end of file diff --git a/schema/none.schema b/schema/none.schema index d3ba158a2..65b048024 100644 --- a/schema/none.schema +++ b/schema/none.schema @@ -1,6 +1,6 @@ -type: - mandatory: false - options: ["none"] - type: string +_type: + _mandatory: false + _options: ["none"] + _type: string yaml_type: scalar - doc: Nothing to say here + _doc: Nothing to say here diff --git a/schema/problem/Problem.schema b/schema/problem/Problem.schema index 3355230bc..effd88762 100644 --- a/schema/problem/Problem.schema +++ b/schema/problem/Problem.schema @@ -1,26 +1,26 @@ problem: tree_manager: - type: derived - base: TreeManagerBase.schema - mandatory: true - doc: Tree manager parameters + _type: derived + _base: TreeManagerBase.schema + _mandatory: true + _doc: Tree manager parameters dimension: - type: int - mandatory: true - options: [2, 3] - doc: Dimension of the problem. '2' for 2D or '3' for 3D + _type: int + _mandatory: true + _options: [2, 3] + _doc: Dimension of the problem. '2' for 2D or '3' for 3D map: - type: derived - base: MapBase.schema - mandatory: false - doc: The map used in the wolf problem. + _type: derived + _base: MapBase.schema + _mandatory: false + _doc: The map used in the wolf problem. sensors: - type: derived[] - base: SensorSequence.schema - mandatory: true - doc: A sequence of all the sensors. + _type: derived[] + _base: SensorSequence.schema + _mandatory: true + _doc: A sequence of all the sensors. processors: - type: derived[] - base: ProcessorSequence.schema - mandatory: true - doc: A sequence of all the processors. + _type: derived[] + _base: ProcessorSequence.schema + _mandatory: true + _doc: A sequence of all the processors. diff --git a/schema/problem/SpecState.schema b/schema/problem/SpecState.schema index e3e9a7549..59db3fe7f 100644 --- a/schema/problem/SpecState.schema +++ b/schema/problem/SpecState.schema @@ -1,18 +1,18 @@ -type: - type: string - mandatory: true - doc: The derived type of the StateBlock +_type: + _type: string + _mandatory: true + _doc: The derived type of the StateBlock state: - type: VectorXd - mandatory: true - doc: A vector containing the state values + _type: VectorXd + _mandatory: true + _doc: A vector containing the state values mode: - type: string - mandatory: true - options: ["fix", "factor", "initial_guess"] - doc: The prior mode can be 'factor' to add an absolute factor (requires 'noise_std'), 'fix' to set the values constant or 'initial_guess' to just set the values + _type: string + _mandatory: true + _options: ["fix", "factor", "initial_guess"] + _doc: The prior mode can be 'factor' to add an absolute factor (requires 'noise_std'), 'fix' to set the values constant or 'initial_guess' to just set the values noise_std: - type: VectorXd - mandatory: false - default: [] - doc: A vector containing the stdev values of the noise of the factor, i.e. the sqrt of the diagonal elements of the covariance matrix. \ No newline at end of file + _type: VectorXd + _mandatory: false + _default: [] + _doc: A vector containing the stdev values of the noise of the factor, i.e. the sqrt of the diagonal elements of the covariance matrix. \ No newline at end of file diff --git a/schema/problem/SpecStateO2d.schema b/schema/problem/SpecStateO2d.schema index f578fde61..c74b052d9 100644 --- a/schema/problem/SpecStateO2d.schema +++ b/schema/problem/SpecStateO2d.schema @@ -1,11 +1,11 @@ follow: SpecState.schema -type: - type: string - mandatory: false - default: StateAngle - options: [StateAngle] - doc: The derived type of the StateBlock +_type: + _type: string + _mandatory: false + _default: StateAngle + _options: [StateAngle] + _doc: The derived type of the StateBlock state: - type: Vector1d - mandatory: true - doc: A vector containing the state values \ No newline at end of file + _type: Vector1d + _mandatory: true + _doc: A vector containing the state values \ No newline at end of file diff --git a/schema/problem/SpecStateO3d.schema b/schema/problem/SpecStateO3d.schema index 803c6bed7..c3a71a80c 100644 --- a/schema/problem/SpecStateO3d.schema +++ b/schema/problem/SpecStateO3d.schema @@ -1,11 +1,11 @@ follow: SpecState.schema -type: - type: string - mandatory: false - default: StateQuaternion - options: [StateQuaternion] - doc: The derived type of the State in 'O' +_type: + _type: string + _mandatory: false + _default: StateQuaternion + _options: [StateQuaternion] + _doc: The derived type of the State in 'O' state: - type: Vector4d - mandatory: true - doc: A vector containing the state values. It should be a quaternion (i.e. four values and normalized) \ No newline at end of file + _type: Vector4d + _mandatory: true + _doc: A vector containing the state values. It should be a quaternion (i.e. four values and normalized) \ No newline at end of file diff --git a/schema/problem/SpecStateP2d.schema b/schema/problem/SpecStateP2d.schema index a6465f845..43429fa08 100644 --- a/schema/problem/SpecStateP2d.schema +++ b/schema/problem/SpecStateP2d.schema @@ -1,11 +1,11 @@ follow: SpecState.schema -type: - type: string - mandatory: false - default: StatePoint2d - options: [StatePoint2d] - doc: The derived type of the StateBlock +_type: + _type: string + _mandatory: false + _default: StatePoint2d + _options: [StatePoint2d] + _doc: The derived type of the StateBlock state: - type: Vector2d - mandatory: true - doc: A vector containing the state values \ No newline at end of file + _type: Vector2d + _mandatory: true + _doc: A vector containing the state values \ No newline at end of file diff --git a/schema/problem/SpecStateP3d.schema b/schema/problem/SpecStateP3d.schema index e7c9d9509..c376e118a 100644 --- a/schema/problem/SpecStateP3d.schema +++ b/schema/problem/SpecStateP3d.schema @@ -1,11 +1,11 @@ follow: SpecState.schema -type: - type: string - mandatory: false - default: StatePoint3d - options: [StatePoint3d] - doc: The derived type of the state in 'P' +_type: + _type: string + _mandatory: false + _default: StatePoint3d + _options: [StatePoint3d] + _doc: The derived type of the state in 'P' state: - type: Vector3d - mandatory: true - doc: A vector containing the state 'P' values \ No newline at end of file + _type: Vector3d + _mandatory: true + _doc: A vector containing the state 'P' values \ No newline at end of file diff --git a/schema/problem/SpecStateV2d.schema b/schema/problem/SpecStateV2d.schema index 9ff77d35d..010990f14 100644 --- a/schema/problem/SpecStateV2d.schema +++ b/schema/problem/SpecStateV2d.schema @@ -1,11 +1,11 @@ follow: SpecState.schema -type: - type: string - mandatory: false - default: StateVector2d - options: [StateVector2d] - doc: The derived type of the StateBlock +_type: + _type: string + _mandatory: false + _default: StateVector2d + _options: [StateVector2d] + _doc: The derived type of the StateBlock state: - type: Vector2d - mandatory: true - doc: A vector containing the state values \ No newline at end of file + _type: Vector2d + _mandatory: true + _doc: A vector containing the state values \ No newline at end of file diff --git a/schema/problem/SpecStateV3d.schema b/schema/problem/SpecStateV3d.schema index 99d34bf55..1dcf3d48e 100644 --- a/schema/problem/SpecStateV3d.schema +++ b/schema/problem/SpecStateV3d.schema @@ -1,11 +1,11 @@ follow: SpecState.schema -type: - type: string - mandatory: false - default: StateVector3d - options: [StateVector3d] - doc: The derived type of the state in 'V' +_type: + _type: string + _mandatory: false + _default: StateVector3d + _options: [StateVector3d] + _doc: The derived type of the state in 'V' state: - type: Vector3d - mandatory: true - doc: A vector containing the state 'V' values \ No newline at end of file + _type: Vector3d + _mandatory: true + _doc: A vector containing the state 'V' values \ No newline at end of file diff --git a/schema/processor/MotionProvider.schema b/schema/processor/MotionProvider.schema index eaa5d84cc..7ee7acbd6 100644 --- a/schema/processor/MotionProvider.schema +++ b/schema/processor/MotionProvider.schema @@ -1,8 +1,8 @@ state_provider: - mandatory: true - type: bool - doc: If the processor is used by the problem as provider of state. + _mandatory: true + _type: bool + _doc: If the processor is used by the problem as provider of state. state_provider_order: - mandatory: false - type: double - doc: The order number of this processor when problem gets the state (only used if state_provider = true). Two processors cannot have the same priority (if so, when installing the second is increased). \ No newline at end of file + _mandatory: false + _type: double + _doc: The order number of this processor when problem gets the state (only used if state_provider = true). Two processors cannot have the same priority (if so, when installing the second is increased). \ No newline at end of file diff --git a/schema/processor/ProcessorBase.schema b/schema/processor/ProcessorBase.schema index c7b855d90..ccab8c38c 100644 --- a/schema/processor/ProcessorBase.schema +++ b/schema/processor/ProcessorBase.schema @@ -1,20 +1,20 @@ name: - mandatory: true - type: string - doc: The processor's name. It has to be unique. + _mandatory: true + _type: string + _doc: The processor's name. It has to be unique. time_tolerance: - mandatory: true - type: double - doc: The time tolerance for joining captures into frames [s]. + _mandatory: true + _type: double + _doc: The time tolerance for joining captures into frames [s]. keyframe_vote: voting_active: - mandatory: true - type: bool - doc: If the processor is allowed to decide to create a frame. + _mandatory: true + _type: bool + _doc: If the processor is allowed to decide to create a frame. apply_loss_function: - mandatory: true - type: bool - doc: If the factors created by the processor have loss function. \ No newline at end of file + _mandatory: true + _type: bool + _doc: If the factors created by the processor have loss function. \ No newline at end of file diff --git a/schema/processor/ProcessorMotion.schema b/schema/processor/ProcessorMotion.schema index a6d9f6bae..3a55a522b 100644 --- a/schema/processor/ProcessorMotion.schema +++ b/schema/processor/ProcessorMotion.schema @@ -2,22 +2,22 @@ follow: ProcessorBase.schema follow: MotionProvider.schema keyframe_vote: max_time_span: - mandatory: true - type: double - doc: Time threshold to create a new frame [s]. + _mandatory: true + _type: double + _doc: Time threshold to create a new frame [s]. max_buff_length: - mandatory: true - type: unsigned int - doc: Maximum size of the buffer of motions. + _mandatory: true + _type: unsigned int + _doc: Maximum size of the buffer of motions. dist_traveled: - mandatory: true - type: double - doc: Threshold of distance traveled to create a new frame [m]. + _mandatory: true + _type: double + _doc: Threshold of distance traveled to create a new frame [m]. angle_turned: - mandatory: true - type: double - doc: Threshold of angle turned to create a new frame [rad]. + _mandatory: true + _type: double + _doc: Threshold of angle turned to create a new frame [rad]. unmeasured_perturbation_std: - mandatory: true - type: double - doc: Noise (standard deviation) of the integrated movement in the not observed directions. \ No newline at end of file + _mandatory: true + _type: double + _doc: Noise (standard deviation) of the integrated movement in the not observed directions. \ No newline at end of file diff --git a/schema/processor/ProcessorOdom2d.schema b/schema/processor/ProcessorOdom2d.schema index 35918ef4e..ff361291a 100644 --- a/schema/processor/ProcessorOdom2d.schema +++ b/schema/processor/ProcessorOdom2d.schema @@ -1,6 +1,6 @@ follow: ProcessorMotion.schema keyframe_vote: cov_det: - mandatory: true - type: double - doc: The determinant threshold of the covariance matrix of the integrated delta, to vote for a keyframe. \ No newline at end of file + _mandatory: true + _type: double + _doc: The determinant threshold of the covariance matrix of the integrated delta, to vote for a keyframe. \ No newline at end of file diff --git a/schema/processor/ProcessorSequence.schema b/schema/processor/ProcessorSequence.schema index 642aec847..2e2c25c8a 100644 --- a/schema/processor/ProcessorSequence.schema +++ b/schema/processor/ProcessorSequence.schema @@ -1,11 +1,11 @@ follow: ProcessorBase.schema -type: - mandatory: true - type: string - doc: The processor's class name. +_type: + _mandatory: true + _type: string + _doc: The processor's class name. plugin: - mandatory: true - type: string - doc: The name of the wolf plugin where the processor is implemented. \ No newline at end of file + _mandatory: true + _type: string + _doc: The name of the wolf plugin where the processor is implemented. \ No newline at end of file diff --git a/schema/processor/ProcessorTracker.schema b/schema/processor/ProcessorTracker.schema index 6ec2f90d2..0c60a6c2a 100644 --- a/schema/processor/ProcessorTracker.schema +++ b/schema/processor/ProcessorTracker.schema @@ -1,11 +1,11 @@ follow: ProcessorBase.schema keyframe_vote: min_features_for_keyframe: - mandatory: true - type: unsigned int - doc: Minimum number of features to vote for keyframe. + _mandatory: true + _type: unsigned int + _doc: Minimum number of features to vote for keyframe. max_new_features: - mandatory: true - type: int - doc: Maximum number of new features to be processed when adding a keyframe (-1=unlimited. 0=none.) + _mandatory: true + _type: int + _doc: Maximum number of new features to be processed when adding a keyframe (-1=unlimited. 0=none.) diff --git a/schema/sensor/SensorBase.schema b/schema/sensor/SensorBase.schema index d6a369356..de1f6dbaa 100644 --- a/schema/sensor/SensorBase.schema +++ b/schema/sensor/SensorBase.schema @@ -1,4 +1,4 @@ name: - mandatory: true - type: string - doc: The sensor's name. It has to be unique. \ No newline at end of file + _mandatory: true + _type: string + _doc: The sensor's name. It has to be unique. \ No newline at end of file diff --git a/schema/sensor/SensorDiffDrive.schema b/schema/sensor/SensorDiffDrive.schema index 3454b2f3d..76bb2fbc8 100644 --- a/schema/sensor/SensorDiffDrive.schema +++ b/schema/sensor/SensorDiffDrive.schema @@ -1,28 +1,28 @@ follow: SensorBase.schema -type: - mandatory: false - type: string - default: SensorDiffDrive - options: [SensorDiffDrive] - doc: The sensor's class name. +_type: + _mandatory: false + _type: string + _default: SensorDiffDrive + _options: [SensorDiffDrive] + _doc: The sensor's class name. plugin: - mandatory: false - type: string - default: core - options: [core] - doc: The name of the wolf plugin where the sensor is implemented. + _mandatory: false + _type: string + _default: core + _options: [core] + _doc: The name of the wolf plugin where the sensor is implemented. ticks_per_wheel_revolution: - mandatory: true - type: double - doc: ratio of displacement variance to displacement, for odometry noise calculation. + _mandatory: true + _type: double + _doc: ratio of displacement variance to displacement, for odometry noise calculation. ticks_std_factor: - mandatory: true - type: double - doc: ratio of displacement variance to rotation, for odometry noise calculation. + _mandatory: true + _type: double + _doc: ratio of displacement variance to rotation, for odometry noise calculation. states: P: @@ -31,16 +31,16 @@ states: follow: SpecStateSensorO2d.schema I: follow: SpecStateSensor.schema - type: - type: string - mandatory: false - default: StateParams3 - options: [StateParams3] - doc: The type of the SensorDiffDrive intrinsic parameters is StateParam3. + _type: + _type: string + _mandatory: false + _default: StateParams3 + _options: [StateParams3] + _doc: The type of the SensorDiffDrive intrinsic parameters is StateParam3. state: - type: Vector3d - mandatory: true - doc: A vector containing the intrinsic state values. 0=left wheel radius (m), 1=right wheel radius (m), 2=wheel separation (m) + _type: Vector3d + _mandatory: true + _doc: A vector containing the intrinsic state values. 0=left wheel radius (m), 1=right wheel radius (m), 2=wheel separation (m) diff --git a/schema/sensor/SensorOdom2d.schema b/schema/sensor/SensorOdom2d.schema index 317355b62..dd89f77c9 100644 --- a/schema/sensor/SensorOdom2d.schema +++ b/schema/sensor/SensorOdom2d.schema @@ -1,29 +1,29 @@ follow: SensorBase.schema k_disp_to_disp: - mandatory: true - type: double - doc: ratio of displacement variance to displacement, for odometry noise calculation. + _mandatory: true + _type: double + _doc: ratio of displacement variance to displacement, for odometry noise calculation. k_disp_to_rot: - mandatory: true - type: double - doc: ratio of displacement variance to rotation, for odometry noise calculation. + _mandatory: true + _type: double + _doc: ratio of displacement variance to rotation, for odometry noise calculation. k_rot_to_rot: - mandatory: true - type: double - doc: ratio of rotation variance to rotation, for odometry noise calculation. + _mandatory: true + _type: double + _doc: ratio of rotation variance to rotation, for odometry noise calculation. min_disp_var: - mandatory: true - type: double - doc: minimum displacement variance, for odometry noise calculation. + _mandatory: true + _type: double + _doc: minimum displacement variance, for odometry noise calculation. min_rot_var: - mandatory: true - type: double - doc: minimum rotation variance, for odometry noise calculation. + _mandatory: true + _type: double + _doc: minimum rotation variance, for odometry noise calculation. states: P: diff --git a/schema/sensor/SensorOdom3d.schema b/schema/sensor/SensorOdom3d.schema index a5107c094..b8fd02f4f 100644 --- a/schema/sensor/SensorOdom3d.schema +++ b/schema/sensor/SensorOdom3d.schema @@ -1,43 +1,43 @@ follow: SensorBase.schema -type: - mandatory: false - type: string - default: SensorOdom3d - options: [SensorOdom3d] - doc: The sensor's class name. +_type: + _mandatory: false + _type: string + _default: SensorOdom3d + _options: [SensorOdom3d] + _doc: The sensor's class name. plugin: - mandatory: false - type: string - default: core - options: [core] - doc: The name of the wolf plugin where the sensor is implemented. + _mandatory: false + _type: string + _default: core + _options: [core] + _doc: The name of the wolf plugin where the sensor is implemented. k_disp_to_disp: - mandatory: true - type: double - doc: ratio of displacement variance to displacement, for odometry noise calculation. + _mandatory: true + _type: double + _doc: ratio of displacement variance to displacement, for odometry noise calculation. k_disp_to_rot: - mandatory: true - type: double - doc: ratio of displacement variance to rotation, for odometry noise calculation. + _mandatory: true + _type: double + _doc: ratio of displacement variance to rotation, for odometry noise calculation. k_rot_to_rot: - mandatory: true - type: double - doc: ratio of rotation variance to rotation, for odometry noise calculation. + _mandatory: true + _type: double + _doc: ratio of rotation variance to rotation, for odometry noise calculation. min_disp_var: - mandatory: true - type: double - doc: minimum displacement variance, for odometry noise calculation. + _mandatory: true + _type: double + _doc: minimum displacement variance, for odometry noise calculation. min_rot_var: - mandatory: true - type: double - doc: minimum rotation variance, for odometry noise calculation. + _mandatory: true + _type: double + _doc: minimum rotation variance, for odometry noise calculation. states: P: diff --git a/schema/sensor/SensorPose2d.schema b/schema/sensor/SensorPose2d.schema index 8122490cc..3e8557e37 100644 --- a/schema/sensor/SensorPose2d.schema +++ b/schema/sensor/SensorPose2d.schema @@ -1,14 +1,14 @@ follow: SensorBase.schema std_p: - mandatory: true - type: double - doc: standard deviation of the position measurement. + _mandatory: true + _type: double + _doc: standard deviation of the position measurement. std_o: - mandatory: true - type: double - doc: standard deviation of the orientation measurement. + _mandatory: true + _type: double + _doc: standard deviation of the orientation measurement. states: P: diff --git a/schema/sensor/SensorPose3d.schema b/schema/sensor/SensorPose3d.schema index e68b9aa30..f00a9ef43 100644 --- a/schema/sensor/SensorPose3d.schema +++ b/schema/sensor/SensorPose3d.schema @@ -1,14 +1,14 @@ follow: SensorBase.schema std_p: - mandatory: true - type: double - doc: standard deviation of the position measurement. + _mandatory: true + _type: double + _doc: standard deviation of the position measurement. std_o: - mandatory: true - type: double - doc: standard deviation of the orientation measurement. + _mandatory: true + _type: double + _doc: standard deviation of the orientation measurement. states: P: diff --git a/schema/sensor/SensorSequence.schema b/schema/sensor/SensorSequence.schema index 30e981230..79e3e4115 100644 --- a/schema/sensor/SensorSequence.schema +++ b/schema/sensor/SensorSequence.schema @@ -1,11 +1,11 @@ follow: SensorBase.schema -type: - mandatory: true - type: string - doc: The sensor's class name. +_type: + _mandatory: true + _type: string + _doc: The sensor's class name. plugin: - mandatory: true - type: string - doc: The name of the wolf plugin where the sensor is implemented. \ No newline at end of file + _mandatory: true + _type: string + _doc: The name of the wolf plugin where the sensor is implemented. \ No newline at end of file diff --git a/schema/sensor/SpecStateSensor.schema b/schema/sensor/SpecStateSensor.schema index 0dc92906d..870d1f545 100644 --- a/schema/sensor/SpecStateSensor.schema +++ b/schema/sensor/SpecStateSensor.schema @@ -1,10 +1,10 @@ follow: SpecState.schema dynamic: - type: bool - mandatory: true - doc: If the state is dynamic, i.e. it changes along time. + _type: bool + _mandatory: true + _doc: If the state is dynamic, i.e. it changes along time. drift_std: - type: VectorXd - mandatory: false - default: [] - doc: A vector containing the stdev values of the noise of the drift factor (only if dynamic==true), i.e. the sqrt of the diagonal elements of the covariance matrix. \ No newline at end of file + _type: VectorXd + _mandatory: false + _default: [] + _doc: A vector containing the stdev values of the noise of the drift factor (only if dynamic==true), i.e. the sqrt of the diagonal elements of the covariance matrix. \ No newline at end of file diff --git a/schema/sensor/SpecStateSensorO2d.schema b/schema/sensor/SpecStateSensorO2d.schema index b0a05bce7..2b3c6e803 100644 --- a/schema/sensor/SpecStateSensorO2d.schema +++ b/schema/sensor/SpecStateSensorO2d.schema @@ -1,19 +1,19 @@ follow: SpecStateSensor.schema -type: - type: string - mandatory: false - default: StateAngle - options: [StateAngle] - doc: The derived type of the StateBlock +_type: + _type: string + _mandatory: false + _default: StateAngle + _options: [StateAngle] + _doc: The derived type of the StateBlock state: - type: Vector1d - mandatory: true - doc: A vector containing the state values + _type: Vector1d + _mandatory: true + _doc: A vector containing the state values noise_std: - type: Vector1d - mandatory: false - doc: A vector containing the stdev values of the noise of the factor, i.e. the sqrt of the diagonal elements of the covariance matrix. + _type: Vector1d + _mandatory: false + _doc: A vector containing the stdev values of the noise of the factor, i.e. the sqrt of the diagonal elements of the covariance matrix. drift_std: - type: Vector1d - mandatory: false - doc: A vector containing the stdev values of the noise of the drift factor (only if dynamic==true), i.e. the sqrt of the diagonal elements of the covariance matrix. \ No newline at end of file + _type: Vector1d + _mandatory: false + _doc: A vector containing the stdev values of the noise of the drift factor (only if dynamic==true), i.e. the sqrt of the diagonal elements of the covariance matrix. \ No newline at end of file diff --git a/schema/sensor/SpecStateSensorO3d.schema b/schema/sensor/SpecStateSensorO3d.schema index 7937ba035..df61ffd38 100644 --- a/schema/sensor/SpecStateSensorO3d.schema +++ b/schema/sensor/SpecStateSensorO3d.schema @@ -1,19 +1,19 @@ follow: SpecStateSensor.schema -type: - type: string - mandatory: false - default: StateQuaternion - options: [StateQuaternion] - doc: The derived type of the State in 'O' +_type: + _type: string + _mandatory: false + _default: StateQuaternion + _options: [StateQuaternion] + _doc: The derived type of the State in 'O' state: - type: Vector4d - mandatory: true - doc: A vector containing the state values. It should be a quaternion (i.e. four values and normalized) + _type: Vector4d + _mandatory: true + _doc: A vector containing the state values. It should be a quaternion (i.e. four values and normalized) noise_std: - type: Vector3d - mandatory: false - doc: A vector containing the stdev values of the noise of the factor, i.e. the sqrt of the diagonal elements of the covariance matrix. + _type: Vector3d + _mandatory: false + _doc: A vector containing the stdev values of the noise of the factor, i.e. the sqrt of the diagonal elements of the covariance matrix. drift_std: - type: Vector3d - mandatory: false - doc: A vector containing the stdev values of the noise of the drift factor (only if dynamic==true), i.e. the sqrt of the diagonal elements of the covariance matrix. \ No newline at end of file + _type: Vector3d + _mandatory: false + _doc: A vector containing the stdev values of the noise of the drift factor (only if dynamic==true), i.e. the sqrt of the diagonal elements of the covariance matrix. \ No newline at end of file diff --git a/schema/sensor/SpecStateSensorP2d.schema b/schema/sensor/SpecStateSensorP2d.schema index 006741b47..673aa3176 100644 --- a/schema/sensor/SpecStateSensorP2d.schema +++ b/schema/sensor/SpecStateSensorP2d.schema @@ -1,19 +1,19 @@ follow: SpecStateSensor.schema -type: - type: string - mandatory: false - default: StatePoint2d - options: [StatePoint2d] - doc: The derived type of the StateBlock +_type: + _type: string + _mandatory: false + _default: StatePoint2d + _options: [StatePoint2d] + _doc: The derived type of the StateBlock state: - type: Vector2d - mandatory: true - doc: A vector containing the state values + _type: Vector2d + _mandatory: true + _doc: A vector containing the state values noise_std: - type: Vector2d - mandatory: false - doc: A vector containing the stdev values of the noise of the factor, i.e. the sqrt of the diagonal elements of the covariance matrix. + _type: Vector2d + _mandatory: false + _doc: A vector containing the stdev values of the noise of the factor, i.e. the sqrt of the diagonal elements of the covariance matrix. drift_std: - type: Vector2d - mandatory: false - doc: A vector containing the stdev values of the noise of the drift factor (only if dynamic==true), i.e. the sqrt of the diagonal elements of the covariance matrix. \ No newline at end of file + _type: Vector2d + _mandatory: false + _doc: A vector containing the stdev values of the noise of the drift factor (only if dynamic==true), i.e. the sqrt of the diagonal elements of the covariance matrix. \ No newline at end of file diff --git a/schema/sensor/SpecStateSensorP3d.schema b/schema/sensor/SpecStateSensorP3d.schema index 9fa39264e..e1784ae9c 100644 --- a/schema/sensor/SpecStateSensorP3d.schema +++ b/schema/sensor/SpecStateSensorP3d.schema @@ -1,19 +1,19 @@ follow: SpecStateSensor.schema -type: - type: string - mandatory: false - default: StatePoint3d - options: [StatePoint3d] - doc: The derived type of the state in 'P' +_type: + _type: string + _mandatory: false + _default: StatePoint3d + _options: [StatePoint3d] + _doc: The derived type of the state in 'P' state: - type: Vector3d - mandatory: true - doc: A vector containing the state 'P' values + _type: Vector3d + _mandatory: true + _doc: A vector containing the state 'P' values noise_std: - type: Vector3d - mandatory: false - doc: A vector containing the stdev values of the noise of the factor, i.e. the sqrt of the diagonal elements of the covariance matrix. + _type: Vector3d + _mandatory: false + _doc: A vector containing the stdev values of the noise of the factor, i.e. the sqrt of the diagonal elements of the covariance matrix. drift_std: - type: Vector3d - mandatory: false - doc: A vector containing the stdev values of the noise of the drift factor (only if dynamic==true), i.e. the sqrt of the diagonal elements of the covariance matrix. \ No newline at end of file + _type: Vector3d + _mandatory: false + _doc: A vector containing the stdev values of the noise of the drift factor (only if dynamic==true), i.e. the sqrt of the diagonal elements of the covariance matrix. \ No newline at end of file diff --git a/schema/solver/SolverCeres.schema b/schema/solver/SolverCeres.schema index 3a956396f..019470bf3 100644 --- a/schema/solver/SolverCeres.schema +++ b/schema/solver/SolverCeres.schema @@ -1,42 +1,42 @@ follow: SolverManager.schema minimizer: - mandatory: true - type: string - options: [LEVENBERG_MARQUARDT, levenberg_marquardt, DOGLEG, dogleg, LBFGS, lbfgs, BFGS, bfgs] - doc: Type of minimizer. + _mandatory: true + _type: string + _options: [LEVENBERG_MARQUARDT, levenberg_marquardt, DOGLEG, dogleg, LBFGS, lbfgs, BFGS, bfgs] + _doc: Type of minimizer. interrupt_on_problem_change: - mandatory: true - type: bool - doc: If the solver has to interrupted each time the problem changes to rebuild the problem. + _mandatory: true + _type: bool + _doc: If the solver has to interrupted each time the problem changes to rebuild the problem. min_num_iterations: - mandatory: false - default: 0 - type: unsigned int - doc: Amount of solver iterations during which the solver cannot be interrupted (used in interrupt_on_problem_change == true). + _mandatory: false + _default: 0 + _type: unsigned int + _doc: Amount of solver iterations during which the solver cannot be interrupted (used in interrupt_on_problem_change == true). max_num_iterations: - mandatory: true - type: unsigned int - doc: Maximum amount of solver iterations. If the solver didn't converge after this amount of iterations, it stops anyway. + _mandatory: true + _type: unsigned int + _doc: Maximum amount of solver iterations. If the solver didn't converge after this amount of iterations, it stops anyway. function_tolerance: - mandatory: true - type: double - doc: "Function tolerance. Convergence criterion. Typical value: 1e-8" + _mandatory: true + _type: double + _doc: "Function tolerance. Convergence criterion. Typical value: 1e-8" gradient_tolerance: - mandatory: true - type: double - doc: "Gradient tolerance. Convergence criterion. Typical value: 1e-8" + _mandatory: true + _type: double + _doc: "Gradient tolerance. Convergence criterion. Typical value: 1e-8" n_threads: - mandatory: true - type: unsigned int - options: [1, 2, 3, 4] - doc: Amount of threads used by ceres. + _mandatory: true + _type: unsigned int + _options: [1, 2, 3, 4] + _doc: Amount of threads used by ceres. use_nonmonotonic_steps: - mandatory: false - default: false - type: bool - doc: If the solver is allowed to update the solution with non-monotonic steps. Only used in LEVENBERG_MARQUARDT and DOGLEG minimizers. + _mandatory: false + _default: false + _type: bool + _doc: If the solver is allowed to update the solution with non-monotonic steps. Only used in LEVENBERG_MARQUARDT and DOGLEG minimizers. max_consecutive_nonmonotonic_steps: - mandatory: false - default: 0 - type: unsigned int - doc: Amount of consecutive non-monotonic steps allowed. Only used in LEVENBERG_MARQUARDT and DOGLEG minimizers. \ No newline at end of file + _mandatory: false + _default: 0 + _type: unsigned int + _doc: Amount of consecutive non-monotonic steps allowed. Only used in LEVENBERG_MARQUARDT and DOGLEG minimizers. \ No newline at end of file diff --git a/schema/solver/SolverManager.schema b/schema/solver/SolverManager.schema index e79428bd0..a2395dbae 100644 --- a/schema/solver/SolverManager.schema +++ b/schema/solver/SolverManager.schema @@ -1,23 +1,23 @@ period: - mandatory: true - type: double - doc: Period of the solver thread. + _mandatory: true + _type: double + _doc: Period of the solver thread. verbose: - mandatory: true - type: int - options: [0, 1, 2] - doc: "Verbosity of the solver. 0: Nothing, 1: Brief report, 2: Full report." + _mandatory: true + _type: int + _options: [0, 1, 2] + _doc: "Verbosity of the solver. 0: Nothing, 1: Brief report, 2: Full report." compute_cov: - mandatory: true - type: bool - doc: If the solver has to compute any covariance matrix block. + _mandatory: true + _type: bool + _doc: If the solver has to compute any covariance matrix block. cov_enum: - mandatory: false - default: 0 - type: int - options: [0, 1, 2, 3, 4, 5] - doc: "Which covariance matrix blocks have to be computed. 0: All blocks and all cross-covariances. 1: All marginals. 2: Marginals of landmarks and current robot pose plus cross covariances of current robot and all landmarks. 3: Last frame P and V. 4: Last frame P, O, V and T. 5: Last frame P and T." + _mandatory: false + _default: 0 + _type: int + _options: [0, 1, 2, 3, 4, 5] + _doc: "Which covariance matrix blocks have to be computed. 0: All blocks and all cross-covariances. 1: All marginals. 2: Marginals of landmarks and current robot pose plus cross covariances of current robot and all landmarks. 3: Last frame P and V. 4: Last frame P, O, V and T. 5: Last frame P and T." cov_period: - mandatory: true - type: double - doc: Period of the covariance computation. \ No newline at end of file + _mandatory: true + _type: double + _doc: Period of the covariance computation. \ No newline at end of file diff --git a/schema/tree_manager/TreeManagerBase.schema b/schema/tree_manager/TreeManagerBase.schema index 0f863de9b..5ddf5a8b0 100644 --- a/schema/tree_manager/TreeManagerBase.schema +++ b/schema/tree_manager/TreeManagerBase.schema @@ -1,4 +1,4 @@ -type: - mandatory: true - type: string - doc: Type of the TreeManager. To keep all frames, use "none". \ No newline at end of file +_type: + _mandatory: true + _type: string + _doc: Type of the TreeManager. To keep all frames, use "none". \ No newline at end of file diff --git a/schema/tree_manager/TreeManagerSlidingWindow.schema b/schema/tree_manager/TreeManagerSlidingWindow.schema index 9ed1f5097..108b474e5 100644 --- a/schema/tree_manager/TreeManagerSlidingWindow.schema +++ b/schema/tree_manager/TreeManagerSlidingWindow.schema @@ -1,21 +1,21 @@ follow: TreeManagerBase.schema -type: - mandatory: true - type: string - doc: Type of the TreeManager. To keep all frames, use "none". +_type: + _mandatory: true + _type: string + _doc: Type of the TreeManager. To keep all frames, use "none". n_frames: - mandatory: true - type: unsigned int - doc: Total number of frames of the sliding window. + _mandatory: true + _type: unsigned int + _doc: Total number of frames of the sliding window. n_fix_first_frames: - mandatory: true - type: unsigned int - doc: Amount of frames fixed at the begining of the sliding window. + _mandatory: true + _type: unsigned int + _doc: Amount of frames fixed at the begining of the sliding window. viral_remove_empty_parent: - mandatory: true - type: bool - doc: If the other wolf nodes (landmarks) have to be removed when removing frames. Otherwise, they will remain alive but unconstrained. + _mandatory: true + _type: bool + _doc: If the other wolf nodes (landmarks) have to be removed when removing frames. Otherwise, they will remain alive but unconstrained. diff --git a/schema/tree_manager/TreeManagerSlidingWindowDualRate.schema b/schema/tree_manager/TreeManagerSlidingWindowDualRate.schema index dbce64d14..43b22457f 100644 --- a/schema/tree_manager/TreeManagerSlidingWindowDualRate.schema +++ b/schema/tree_manager/TreeManagerSlidingWindowDualRate.schema @@ -1,11 +1,11 @@ follow: TreeManagerSlidingWindow.schema n_frames_recent: - mandatory: true - type: unsigned int - doc: Amount of frames kept in the recent part of the sliding window. + _mandatory: true + _type: unsigned int + _doc: Amount of frames kept in the recent part of the sliding window. rate_old_frames: - mandatory: true - type: unsigned int - doc: Rate of keyframes that are kept from the recent part to the sparse part of the sliding window. One of each 'rate_old_frames' will be kept. \ No newline at end of file + _mandatory: true + _type: unsigned int + _doc: Rate of keyframes that are kept from the recent part to the sparse part of the sliding window. One of each 'rate_old_frames' will be kept. \ No newline at end of file diff --git a/test/dummy/ProcessorTrackerFeatureDummy.schema b/test/dummy/ProcessorTrackerFeatureDummy.schema index f5dcdeed9..e70a21d59 100644 --- a/test/dummy/ProcessorTrackerFeatureDummy.schema +++ b/test/dummy/ProcessorTrackerFeatureDummy.schema @@ -1,6 +1,6 @@ follow: ProcessorTrackerFeature.schema n_tracks_lost: - mandatory: true - type: unsigned int + _mandatory: true + _type: unsigned int yaml_type: scalar - doc: dummy parameter. \ No newline at end of file + _doc: dummy parameter. \ No newline at end of file diff --git a/test/dummy/SensorDummy2d.schema b/test/dummy/SensorDummy2d.schema index c45f3d5b3..43577b1b1 100644 --- a/test/dummy/SensorDummy2d.schema +++ b/test/dummy/SensorDummy2d.schema @@ -5,12 +5,12 @@ states: O: follow: SpecStateSensorO2d.schema noise_p_std: - mandatory: true - type: double + _mandatory: true + _type: double yaml_type: scalar - doc: noise std in p. + _doc: noise std in p. noise_o_std: - mandatory: true - type: double + _mandatory: true + _type: double yaml_type: scalar - doc: noise std in p. \ No newline at end of file + _doc: noise std in p. \ No newline at end of file diff --git a/test/dummy/SensorDummy3d.schema b/test/dummy/SensorDummy3d.schema index 588905e62..a93e10358 100644 --- a/test/dummy/SensorDummy3d.schema +++ b/test/dummy/SensorDummy3d.schema @@ -5,12 +5,12 @@ states: O: follow: SpecStateSensorO3d.schema noise_p_std: - mandatory: true - type: double + _mandatory: true + _type: double yaml_type: scalar - doc: noise std in P. + _doc: noise std in P. noise_o_std: - mandatory: true - type: double + _mandatory: true + _type: double yaml_type: scalar - doc: noise std in O. \ No newline at end of file + _doc: noise std in O. \ No newline at end of file diff --git a/test/dummy/SensorDummyPoia3d.schema b/test/dummy/SensorDummyPoia3d.schema index a36247c84..4ccad67ae 100644 --- a/test/dummy/SensorDummyPoia3d.schema +++ b/test/dummy/SensorDummyPoia3d.schema @@ -6,39 +6,39 @@ states: follow: SpecStateSensorO3d.schema I: follow: SpecStateSensor.schema - type: - type: string + _type: + _type: string yaml_type: scalar - mandatory: false - default: StateParams5 - options: [StateParams5] - doc: The derived type of the state in 'I' + _mandatory: false + _default: StateParams5 + _options: [StateParams5] + _doc: The derived type of the state in 'I' state: - type: Vector5d + _type: Vector5d yaml_type: scalar - mandatory: true - doc: A vector containing the state 'I' values + _mandatory: true + _doc: A vector containing the state 'I' values A: follow: SpecStateSensor.schema - type: - type: string + _type: + _type: string yaml_type: scalar - mandatory: false - default: StateQuaternion - options: [StateQuaternion] - doc: The derived type of the state in 'A' + _mandatory: false + _default: StateQuaternion + _options: [StateQuaternion] + _doc: The derived type of the state in 'A' state: - type: Vector4d + _type: Vector4d yaml_type: scalar - mandatory: true - doc: A vector containing the state 'A' values + _mandatory: true + _doc: A vector containing the state 'A' values noise_p_std: - mandatory: true - type: double + _mandatory: true + _type: double yaml_type: scalar - doc: noise std in p. + _doc: noise std in p. noise_o_std: - mandatory: true - type: double + _mandatory: true + _type: double yaml_type: scalar - doc: noise std in o. \ No newline at end of file + _doc: noise std in o. \ No newline at end of file diff --git a/test/dummy/TreeManagerDummy.schema b/test/dummy/TreeManagerDummy.schema index 32f690f19..8d2301cd9 100644 --- a/test/dummy/TreeManagerDummy.schema +++ b/test/dummy/TreeManagerDummy.schema @@ -1,6 +1,6 @@ follow: TreeManagerBase.schema toy_param: - mandatory: true - type: double + _mandatory: true + _type: double yaml_type: scalar - doc: a toy parameter. \ No newline at end of file + _doc: a toy parameter. \ No newline at end of file -- GitLab