forked from autowarefoundation/autoware.universe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(pose_initializer): rework parameters (autowarefoundation#5773)
* refactor(pose_initializer): rework parameters Signed-off-by: PhoebeWu21 <[email protected]> * refactor(pose_initializer): rework parameters Signed-off-by: PhoebeWu21 <[email protected]> * refactor(pose_initializer): rework parameters Signed-off-by: PhoebeWu21 <[email protected]> * style(pre-commit): autofix * refactor(pose_initializer): rework parameters Signed-off-by: PhoebeWu21 <[email protected]> * refactor(pose_initializer): rework parameters Signed-off-by: PhoebeWu21 <[email protected]> --------- Signed-off-by: PhoebeWu21 <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
358ebc1
commit a20b354
Showing
4 changed files
with
93 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
localization/pose_initializer/schema/pose_initializer.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Parameters for Pose Initializer Node", | ||
"type": "object", | ||
"definitions": { | ||
"pose_initializer": { | ||
"type": "object", | ||
"properties": { | ||
"gnss_pose_timeout": { | ||
"type": "number", | ||
"description": "The duration that the GNSS pose is valid. [sec]", | ||
"default": "3.0", | ||
"minimum": 0.0 | ||
}, | ||
"stop_check_enabled": { | ||
"type": "string", | ||
"description": "If true, initialization is accepted only when the vehicle is stopped.", | ||
"default": "true" | ||
}, | ||
"stop_check_duration": { | ||
"type": "number", | ||
"description": "The duration used for the stop check above. [sec]", | ||
"default": "3.0", | ||
"minimum": 0.0 | ||
}, | ||
"ekf_enabled": { | ||
"type": "string", | ||
"description": "If true, EKF localizer is activated.", | ||
"default": "true" | ||
}, | ||
"gnss_enabled": { | ||
"type": "string", | ||
"description": "If true, use the GNSS pose when no pose is specified.", | ||
"default": "true" | ||
}, | ||
"yabloc_enabled": { | ||
"type": "string", | ||
"description": "If true, YabLocModule is used.", | ||
"default": "true" | ||
}, | ||
"ndt_enabled": { | ||
"type": "string", | ||
"description": "If true, the pose will be estimated by NDT scan matcher, otherwise it is passed through.", | ||
"default": "true" | ||
}, | ||
"gnss_particle_covariance": { | ||
"type": "array", | ||
"description": "gnss particle covariance", | ||
"default": "[1.0, 0.0, 0.0, 0.0, 0.0, 0.0,\n 0.0, 1.0, 0.0, 0.0, 0.0, 0.0,\n 0.0, 0.0, 0.01, 0.0, 0.0, 0.0,\n 0.0, 0.0, 0.0, 0.01, 0.0, 0.0,\n 0.0, 0.0, 0.0, 0.0, 0.01, 0.0,\n 0.0, 0.0, 0.0, 0.0, 0.0, 10.0]" | ||
}, | ||
"output_pose_covariance": { | ||
"type": "array", | ||
"description": "output pose covariance", | ||
"default": "[1.0, 0.0, 0.0, 0.0, 0.0, 0.0,\n 0.0, 1.0, 0.0, 0.0, 0.0, 0.0,\n 0.0, 0.0, 0.01, 0.0, 0.0, 0.0,\n 0.0, 0.0, 0.0, 0.01, 0.0, 0.0,\n 0.0, 0.0, 0.0, 0.0, 0.01, 0.0,\n 0.0, 0.0, 0.0, 0.0, 0.0, 0.2]" | ||
} | ||
}, | ||
"required": [ | ||
"gnss_pose_timeout", | ||
"stop_check_duration", | ||
"ekf_enabled", | ||
"gnss_enabled", | ||
"yabloc_enabled", | ||
"ndt_enabled", | ||
"stop_check_enabled", | ||
"gnss_particle_covariance", | ||
"output_pose_covariance" | ||
], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"properties": { | ||
"/**": { | ||
"type": "object", | ||
"properties": { | ||
"ros__parameters": { | ||
"$ref": "#/definitions/pose_initializer" | ||
} | ||
}, | ||
"required": ["ros__parameters"], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"required": ["/**"], | ||
"additionalProperties": false | ||
} |