Skip to content

Commit

Permalink
style(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Feb 2, 2024
1 parent 15dacad commit dda33fd
Show file tree
Hide file tree
Showing 8 changed files with 248 additions and 266 deletions.
100 changes: 48 additions & 52 deletions localization/ekf_localizer/schema/ekf_localizer.schema.json
Original file line number Diff line number Diff line change
@@ -1,56 +1,52 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "EKF Localizer Configuration",
"type": "object",
"properties": {
"/**": {
"type": "object",
"properties": {
"ros__parameters": {
"type": "object",
"properties": {
"node": {
"$ref": "subschema/node.subschema.json#/definitions/node"
},
"pose_measurement": {
"$ref": "subschema/pose_measurement.subschema.json#/definitions/pose_measurement"
},
"twist_measurement": {
"$ref": "subschema/twist_measurement.subschema.json#/definitions/twist_measurement"
},
"process_noise": {
"$ref": "subschema/process_noise.subschema.json#/definitions/process_noise"
},
"simple_1d_filter_parameters": {
"$ref": "subschema/simple_1d_filter_parameters.subschema.json#/definitions/simple_1d_filter_parameters"
},
"diagnostics": {
"$ref": "subschema/diagnostics.subschema.json#/definitions/diagnostics"
},
"misc": {
"$ref": "subschema/misc.subschema.json#/definitions/misc"
}
},
"required": [
"node",
"pose_measurement",
"twist_measurement",
"process_noise",
"simple_1d_filter_parameters",
"diagnostics",
"misc"
],
"additionalProperties": false
}
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "EKF Localizer Configuration",
"type": "object",
"properties": {
"/**": {
"type": "object",
"properties": {
"ros__parameters": {
"type": "object",
"properties": {
"node": {
"$ref": "subschema/node.subschema.json#/definitions/node"

Check warning on line 13 in localization/ekf_localizer/schema/ekf_localizer.schema.json

View workflow job for this annotation

GitHub Actions / spell-check-partial

Unknown word (subschema)

Check warning on line 13 in localization/ekf_localizer/schema/ekf_localizer.schema.json

View workflow job for this annotation

GitHub Actions / spell-check-partial

Unknown word (subschema)
},
"required": [
"ros__parameters"
],
"additionalProperties": false
"pose_measurement": {
"$ref": "subschema/pose_measurement.subschema.json#/definitions/pose_measurement"

Check warning on line 16 in localization/ekf_localizer/schema/ekf_localizer.schema.json

View workflow job for this annotation

GitHub Actions / spell-check-partial

Unknown word (subschema)

Check warning on line 16 in localization/ekf_localizer/schema/ekf_localizer.schema.json

View workflow job for this annotation

GitHub Actions / spell-check-partial

Unknown word (subschema)
},
"twist_measurement": {
"$ref": "subschema/twist_measurement.subschema.json#/definitions/twist_measurement"

Check warning on line 19 in localization/ekf_localizer/schema/ekf_localizer.schema.json

View workflow job for this annotation

GitHub Actions / spell-check-partial

Unknown word (subschema)
},
"process_noise": {
"$ref": "subschema/process_noise.subschema.json#/definitions/process_noise"
},
"simple_1d_filter_parameters": {
"$ref": "subschema/simple_1d_filter_parameters.subschema.json#/definitions/simple_1d_filter_parameters"
},
"diagnostics": {
"$ref": "subschema/diagnostics.subschema.json#/definitions/diagnostics"
},
"misc": {
"$ref": "subschema/misc.subschema.json#/definitions/misc"
}
},
"required": [
"node",
"pose_measurement",
"twist_measurement",
"process_noise",
"simple_1d_filter_parameters",
"diagnostics",
"misc"
],
"additionalProperties": false
}
},
"required": [
"/**"
],
"additionalProperties": false
},
"required": ["ros__parameters"],
"additionalProperties": false
}
},
"required": ["/**"],
"additionalProperties": false
}
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "EKF Localizer Configuration for Diagnostics",
"definitions": {
"diagnostics": {
"type": "object",
"properties": {
"pose_no_update_count_threshold_warn": {
"type": "integer",
"description": "The threshold at which a WARN state is triggered due to the Pose Topic update not happening continuously for a certain number of times",
"default": 50
},
"pose_no_update_count_threshold_error": {
"type": "integer",
"description": "The threshold at which an ERROR state is triggered due to the Pose Topic update not happening continuously for a certain number of times",
"default": 100
},
"twist_no_update_count_threshold_warn": {
"type": "integer",
"description": "The threshold at which a WARN state is triggered due to the Twist Topic update not happening continuously for a certain number of times",
"default": 50
},
"twist_no_update_count_threshold_error": {
"type": "integer",
"description": "The threshold at which an ERROR state is triggered due to the Twist Topic update not happening continuously for a certain number of times",
"default": 100
}
},
"required": [
"pose_no_update_count_threshold_warn",
"pose_no_update_count_threshold_error",
"twist_no_update_count_threshold_warn",
"twist_no_update_count_threshold_error"
],
"additionalProperties": false
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "EKF Localizer Configuration for Diagnostics",
"definitions": {
"diagnostics": {
"type": "object",
"properties": {
"pose_no_update_count_threshold_warn": {
"type": "integer",
"description": "The threshold at which a WARN state is triggered due to the Pose Topic update not happening continuously for a certain number of times",
"default": 50
},
"pose_no_update_count_threshold_error": {
"type": "integer",
"description": "The threshold at which an ERROR state is triggered due to the Pose Topic update not happening continuously for a certain number of times",
"default": 100
},
"twist_no_update_count_threshold_warn": {
"type": "integer",
"description": "The threshold at which a WARN state is triggered due to the Twist Topic update not happening continuously for a certain number of times",
"default": 50
},
"twist_no_update_count_threshold_error": {
"type": "integer",
"description": "The threshold at which an ERROR state is triggered due to the Twist Topic update not happening continuously for a certain number of times",
"default": 100
}
},
"required": [
"pose_no_update_count_threshold_warn",
"pose_no_update_count_threshold_error",
"twist_no_update_count_threshold_warn",
"twist_no_update_count_threshold_error"
],
"additionalProperties": false
}
}
}
30 changes: 14 additions & 16 deletions localization/ekf_localizer/schema/subschema/misc.subschema.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "EKF Localizer Configuration for MISC",
"definitions": {
"misc": {
"type": "object",
"properties": {
"threshold_observable_velocity_mps": {
"type": "number",
"description": "Minimum value for velocity that will be used for EKF. Mainly used for dead zone in velocity sensor [m/s] (0.0 means disabled)",
"default": 0.0
}
},
"required": [
"threshold_observable_velocity_mps"
],
"additionalProperties": false
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "EKF Localizer Configuration for MISC",
"definitions": {
"misc": {
"type": "object",
"properties": {
"threshold_observable_velocity_mps": {
"type": "number",
"description": "Minimum value for velocity that will be used for EKF. Mainly used for dead zone in velocity sensor [m/s] (0.0 means disabled)",
"default": 0.0
}
},
"required": ["threshold_observable_velocity_mps"],
"additionalProperties": false
}
}
}
92 changes: 46 additions & 46 deletions localization/ekf_localizer/schema/subschema/node.subschema.json
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "EKF Localizer Configuration for node",
"definitions": {
"node": {
"type": "object",
"properties": {
"show_debug_info": {
"type": "boolean",
"description": "Flag to display debug info",
"default": false
},
"predict_frequency": {
"type": "number",
"description": "Frequency for filtering and publishing [Hz]",
"default": 50.0
},
"tf_rate": {
"type": "number",
"description": "Frequency for tf broadcasting [Hz]",
"default": 50.0
},
"publish_tf": {
"type": "boolean",
"description": "Whether to publish tf",
"default": true
},
"extend_state_step": {
"type": "integer",
"description": "Max delay step which can be dealt with in EKF. Large number increases computational cost.",
"default": 50
},
"enable_yaw_bias_estimation": {
"type": "boolean",
"description": "Flag to enable yaw bias estimation",
"default": true
}
},
"required": [
"show_debug_info",
"predict_frequency",
"tf_rate",
"publish_tf",
"extend_state_step",
"enable_yaw_bias_estimation"
],
"additionalProperties": false
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "EKF Localizer Configuration for node",
"definitions": {
"node": {
"type": "object",
"properties": {
"show_debug_info": {
"type": "boolean",
"description": "Flag to display debug info",
"default": false
},
"predict_frequency": {
"type": "number",
"description": "Frequency for filtering and publishing [Hz]",
"default": 50.0
},
"tf_rate": {
"type": "number",
"description": "Frequency for tf broadcasting [Hz]",
"default": 50.0
},
"publish_tf": {
"type": "boolean",
"description": "Whether to publish tf",
"default": true
},
"extend_state_step": {
"type": "integer",
"description": "Max delay step which can be dealt with in EKF. Large number increases computational cost.",
"default": 50
},
"enable_yaw_bias_estimation": {
"type": "boolean",
"description": "Flag to enable yaw bias estimation",
"default": true
}
},
"required": [
"show_debug_info",
"predict_frequency",
"tf_rate",
"publish_tf",
"extend_state_step",
"enable_yaw_bias_estimation"
],
"additionalProperties": false
}
}
}
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "EKF Localizer Configuration for Pose Measurement",
"definitions": {
"pose_measurement": {
"type": "object",
"properties": {
"pose_additional_delay": {
"type": "number",
"description": "Additional delay time for pose measurement [s]",
"default": 0.0
},
"pose_measure_uncertainty_time": {
"type": "number",
"description": "Measured time uncertainty used for covariance calculation [s]",
"default": 0.01
},
"pose_smoothing_steps": {
"type": "integer",
"description": "A value for smoothing steps",
"default": 5
},
"pose_gate_dist": {
"type": "number",
"description": "Limit of Mahalanobis distance used for outliers detection",
"default": 10000.0
}
},
"required": [
"pose_additional_delay",
"pose_measure_uncertainty_time",
"pose_smoothing_steps",
"pose_gate_dist"
],
"additionalProperties": false
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "EKF Localizer Configuration for Pose Measurement",
"definitions": {
"pose_measurement": {
"type": "object",
"properties": {
"pose_additional_delay": {
"type": "number",
"description": "Additional delay time for pose measurement [s]",
"default": 0.0
},
"pose_measure_uncertainty_time": {
"type": "number",
"description": "Measured time uncertainty used for covariance calculation [s]",
"default": 0.01
},
"pose_smoothing_steps": {
"type": "integer",
"description": "A value for smoothing steps",
"default": 5
},
"pose_gate_dist": {
"type": "number",
"description": "Limit of Mahalanobis distance used for outliers detection",
"default": 10000.0
}
},
"required": [
"pose_additional_delay",
"pose_measure_uncertainty_time",
"pose_smoothing_steps",
"pose_gate_dist"
],
"additionalProperties": false
}
}
}
Loading

0 comments on commit dda33fd

Please sign in to comment.