Skip to content

Commit

Permalink
refactor(autoware_velocity_smoother): rework parameters
Browse files Browse the repository at this point in the history
Signed-off-by: batuhanbeytekin <[email protected]>
  • Loading branch information
batuhanbeytekin authored and oguzkaganozt committed Oct 3, 2024
1 parent 0effdfa commit 6c5f637
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**:
ros__parameters:
ego_nearest_dist_threshold: 0.3 # threshold to find the nearest point on the trajectory [m]
ego_nearest_yaw_threshold: 1.046 # threshold to find the nearest point on the trajectory [rad]
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
# ---- curve parameters ----
# - common parameters -
curvature_calculation_distance: 5.0 # distance of points while curvature is calculating for the steer rate and lateral acceleration limit [m]
ego_nearest_dist_threshold: 0.3 # threshold to find the nearest point on the trajectory [m]
ego_nearest_yaw_threshold: 1.046 # threshold to find the nearest point on the trajectory [rad]
algorithm_type: "JerkFiltered" # algorithm type for velocity smoother. "JerkFiltered" or "L2" or "Linf" or "Analytical"
algorithm_type: $(var velocity_smoother_type) # algorithm type for velocity smoother. "JerkFiltered" or "L2" or "Linf" or "Analytical"
# - lateral acceleration limit parameters -
enable_lateral_acc_limit: true # To toggle the lateral acc filter on and off. You can switch it dynamically at runtime.
max_lateral_accel: 0.8 # max lateral acceleration limit [m/ss]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Parameters for default_nearest_search_params",
"type": "object",
"definitions": {
"default_nearest_search_params": {
"type": "object",
"properties": {
"ego_nearest_dist_threshold": {
"type": "number",
"default": 0.3,
"description": "Threshold to find the nearest point on the trajectory [m]"
},
"ego_nearest_yaw_threshold": {
"type": "number",
"default": 1.046,
"description": "Threshold to find the nearest point on the trajectory [rad]"
}
},
"required": [
"ego_nearest_dist_threshold",
"ego_nearest_yaw_threshold"
]
}
},
"properties": {
"/**": {
"type": "object",
"properties": {
"ros__parameters": {
"$ref": "#/definitions/default_nearest_search_params"
}
},
"required": ["ros__parameters"]
}
},
"required": ["/**"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,6 @@
"default": 5.0,
"description": "Distance of points while curvature is calculating for the steer rate and lateral acceleration limit [m]"
},
"ego_nearest_dist_threshold": {
"type": "number",
"default": 0.3,
"description": "Threshold to find the nearest point on the trajectory [m]"
},
"ego_nearest_yaw_threshold": {
"type": "number",
"default": 1.046,
"description": "Threshold to find the nearest point on the trajectory [rad]"
},
"algorithm_type": {
"type": "string",
"enum": ["JerkFiltered", "L2", "Linf", "Analytical"],
Expand Down

0 comments on commit 6c5f637

Please sign in to comment.