Skip to content

Commit 847885a

Browse files
refactor(autoware_velocity_smoother): rework parameters
Signed-off-by: batuhanbeytekin <batuhanbeytekin@gmail.com>
1 parent 7b6058e commit 847885a

4 files changed

+43
-13
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**:
2+
ros__parameters:
3+
ego_nearest_dist_threshold: 0.3 # threshold to find the nearest point on the trajectory [m]
4+
ego_nearest_yaw_threshold: 1.046 # threshold to find the nearest point on the trajectory [rad]

planning/autoware_velocity_smoother/config/default_velocity_smoother.param.yaml

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
# ---- curve parameters ----
1111
# - common parameters -
1212
curvature_calculation_distance: 5.0 # distance of points while curvature is calculating for the steer rate and lateral acceleration limit [m]
13-
ego_nearest_dist_threshold: 0.3 # threshold to find the nearest point on the trajectory [m]
14-
ego_nearest_yaw_threshold: 1.046 # threshold to find the nearest point on the trajectory [rad]
15-
algorithm_type: "JerkFiltered" # algorithm type for velocity smoother. "JerkFiltered" or "L2" or "Linf" or "Analytical"
13+
algorithm_type: $(var velocity_smoother_type) # algorithm type for velocity smoother. "JerkFiltered" or "L2" or "Linf" or "Analytical"
1614
# - lateral acceleration limit parameters -
1715
enable_lateral_acc_limit: true # To toggle the lateral acc filter on and off. You can switch it dynamically at runtime.
1816
max_lateral_accel: 0.8 # max lateral acceleration limit [m/ss]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "Parameters for default_nearest_search_params",
4+
"type": "object",
5+
"definitions": {
6+
"default_nearest_search_params": {
7+
"type": "object",
8+
"properties": {
9+
"ego_nearest_dist_threshold": {
10+
"type": "number",
11+
"default": 0.3,
12+
"description": "Threshold to find the nearest point on the trajectory [m]"
13+
},
14+
"ego_nearest_yaw_threshold": {
15+
"type": "number",
16+
"default": 1.046,
17+
"description": "Threshold to find the nearest point on the trajectory [rad]"
18+
}
19+
},
20+
"required": [
21+
"ego_nearest_dist_threshold",
22+
"ego_nearest_yaw_threshold"
23+
]
24+
}
25+
},
26+
"properties": {
27+
"/**": {
28+
"type": "object",
29+
"properties": {
30+
"ros__parameters": {
31+
"$ref": "#/definitions/default_nearest_search_params"
32+
}
33+
},
34+
"required": ["ros__parameters"]
35+
}
36+
},
37+
"required": ["/**"]
38+
}

planning/autoware_velocity_smoother/schema/default_velocity_smoother.schema.json

-10
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,6 @@
2626
"default": 5.0,
2727
"description": "Distance of points while curvature is calculating for the steer rate and lateral acceleration limit [m]"
2828
},
29-
"ego_nearest_dist_threshold": {
30-
"type": "number",
31-
"default": 0.3,
32-
"description": "Threshold to find the nearest point on the trajectory [m]"
33-
},
34-
"ego_nearest_yaw_threshold": {
35-
"type": "number",
36-
"default": 1.046,
37-
"description": "Threshold to find the nearest point on the trajectory [rad]"
38-
},
3929
"algorithm_type": {
4030
"type": "string",
4131
"enum": ["JerkFiltered", "L2", "Linf", "Analytical"],

0 commit comments

Comments
 (0)