Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(pure_pursuit): rework parameters #8196

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions control/autoware_pure_pursuit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ Return LateralOutput which contains the following to the controller node
- LateralSyncData
- steer angle convergence
- `autoware_planning_msgs/Trajectory`: predicted path for ego vehicle

## Parameters

{{json_to_markdown("control/autoware_pure_pursuit/schema/pure_pursuit.schema.json")}}
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
curvature_calculation_distance: 4.0
enable_path_smoothing: false
path_filter_moving_ave_num: 25
control_period: 0.03
116 changes: 116 additions & 0 deletions control/autoware_pure_pursuit/schema/pure_pursuit.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Parameters for pure_pursuit",
"type": "object",
"definitions": {
"pure_pursuit_params": {
"type": "object",
"properties": {
"ld_velocity_ratio": {
"type": "number",
"default": 2.4,
"description": "Velocity ratio for lookahead distance."
},
"ld_lateral_error_ratio": {
"type": "number",
"default": 3.6,
"description": "Lateral error ratio for lookahead distance."
},
"ld_curvature_ratio": {
"type": "number",
"default": 120.0,
"description": "Curvature ratio for lookahead distance."
},
"long_ld_lateral_error_threshold": {
"type": "number",
"default": 0.5,
"description": "Threshold for lateral error in long lookahead distance."
},
"min_lookahead_distance": {
"type": "number",
"default": 4.35,
"description": "Minimum lookahead distance."
},
"max_lookahead_distance": {
"type": "number",
"default": 15.0,
"description": "Maximum lookahead distance."
},
"converged_steer_rad": {
"type": "number",
"default": 0.1,
"description": "Steering angle considered as converged."
},
"reverse_min_lookahead_distance": {
"type": "number",
"default": 7.0,
"description": "Minimum lookahead distance for reversing."
},
"prediction_ds": {
"type": "number",
"default": 0.3,
"description": "Prediction step size."
},
"prediction_distance_length": {
"type": "number",
"default": 21.0,
"description": "Prediction distance length."
},
"resampling_ds": {
"type": "number",
"default": 0.1,
"description": "Resampling step size."
},
"curvature_calculation_distance": {
"type": "number",
"default": 4.0,
"description": "Distance for curvature calculation."
},
"enable_path_smoothing": {
"type": "boolean",
"default": false,
"description": "Enable or disable path smoothing."
},
"path_filter_moving_ave_num": {
"type": "number",
"default": 25,
"description": "Number of points for moving average path filter."
},
"control_period": {
"type": "number",
"default": 0.03,
"description": "Control period."
}
},
"required": [
"ld_velocity_ratio",
"ld_lateral_error_ratio",
"ld_curvature_ratio",
"long_ld_lateral_error_threshold",
"min_lookahead_distance",
"max_lookahead_distance",
"converged_steer_rad",
"reverse_min_lookahead_distance",
"prediction_ds",
"prediction_distance_length",
"resampling_ds",
"curvature_calculation_distance",
"enable_path_smoothing",
"path_filter_moving_ave_num",
"control_period"
]
}
},
"properties": {
"/**": {
"type": "object",
"properties": {
"ros__parameters": {
"$ref": "#/definitions/pure_pursuit_params"
}
},
"required": ["ros__parameters"]
}
},
"required": ["/**"]
}
Loading