Skip to content

Commit 3b7fd58

Browse files
Ariieeskyoichi-sugahara
authored andcommitted
refactor(autoware_obstacle_stop_planner): rework parameters (autowarefoundation#7795)
Signed-off-by: Ariiees <yuxw@udel.edu>
1 parent be454ee commit 3b7fd58

File tree

4 files changed

+629
-0
lines changed

4 files changed

+629
-0
lines changed

planning/autoware_obstacle_stop_planner/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131

3232
### Common Parameter
3333

34+
{{ json_to_markdown("planning/autoware_obstacle_stop_planner/schema/common.schema.json") }}
35+
3436
| Parameter | Type | Description |
3537
| -------------------------------------- | ------ | ----------------------------------------------------------------------------------------- |
3638
| `enable_slow_down` | bool | enable slow down planner [-] |
@@ -103,6 +105,8 @@ stopped due to other factors.
103105

104106
### Parameters
105107

108+
{{ json_to_markdown("planning/autoware_obstacle_stop_planner/schema/obstacle_stop_planner.schema.json") }}
109+
106110
#### Stop position
107111

108112
| Parameter | Type | Description |
@@ -186,6 +190,8 @@ down section.
186190

187191
### Parameters
188192

193+
{{ json_to_markdown("planning/autoware_obstacle_stop_planner/schema/adaptive_cruise_control.schema.json") }}
194+
189195
#### Slow down section
190196

191197
| Parameter | Type | Description |
Lines changed: 216 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,216 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "Parameter for adaptive cruise control",
4+
"type": "object",
5+
"definitions": {
6+
"adaptive_cruise_control": {
7+
"type": "object",
8+
"properties": {
9+
"adaptive_cruise_control": {
10+
"type": "object",
11+
"properties": {
12+
"use_object_to_estimate_vel": {
13+
"type": "boolean",
14+
"description": "use tracking objects for estimating object velocity or not",
15+
"default": "true"
16+
},
17+
"use_pcl_to_estimate_vel": {
18+
"type": "boolean",
19+
"description": "use pcl for estimating object velocity or not",
20+
"default": "true"
21+
},
22+
"consider_obj_velocity": {
23+
"type": "boolean",
24+
"description": "consider forward vehicle velocity to ACC or not",
25+
"default": "true"
26+
},
27+
"obstacle_velocity_thresh_to_start_acc": {
28+
"type": "number",
29+
"description": "start adaptive cruise control when the velocity of the forward obstacle exceeds this value [m/s]",
30+
"default": "1.5"
31+
},
32+
"obstacle_velocity_thresh_to_stop_acc": {
33+
"type": "number",
34+
"description": "stop adaptive cruise control when the velocity of the forward obstacle falls below this value [m/s]",
35+
"default": "1.0"
36+
},
37+
"emergency_stop_acceleration": {
38+
"type": "number",
39+
"description": "supposed minimum acceleration (deceleration) in emergency stop [m/ss]",
40+
"default": "-5.0"
41+
},
42+
"emergency_stop_idling_time": {
43+
"type": "number",
44+
"description": "supposed idling time to start emergency stop [s]",
45+
"default": "0.5"
46+
},
47+
"min_dist_stop": {
48+
"type": "number",
49+
"description": "minimum distance of emergency stop [m]",
50+
"default": "4.0"
51+
},
52+
"obstacle_emergency_stop_acceleration": {
53+
"type": "number",
54+
"description": "supposed minimum acceleration (deceleration) in emergency stop [m/ss]",
55+
"default": "-5.0"
56+
},
57+
"max_standard_acceleration": {
58+
"type": "number",
59+
"description": "supposed maximum acceleration in active cruise control [m/ss]",
60+
"default": "0.5"
61+
},
62+
"min_standard_acceleration": {
63+
"type": "number",
64+
"description": "supposed minimum acceleration (deceleration) in active cruise control",
65+
"default": "-1.0"
66+
},
67+
"standard_idling_time": {
68+
"type": "number",
69+
"description": "supposed idling time to react object in active cruise control [s]",
70+
"default": "0.5"
71+
},
72+
"min_dist_standard": {
73+
"type": "number",
74+
"description": "minimum distance in active cruise control [m]",
75+
"default": "4.0"
76+
},
77+
"obstacle_min_standard_acceleration": {
78+
"type": "number",
79+
"description": "supposed minimum acceleration of forward obstacle [m/ss]",
80+
"default": "-1.5"
81+
},
82+
"margin_rate_to_change_vel": {
83+
"type": "number",
84+
"description": "margin to insert upper velocity [-]",
85+
"default": "0.3"
86+
},
87+
"use_time_compensation_to_calc_distance": {
88+
"type": "boolean",
89+
"description": "use time-compensation to calculate distance to forward vehicle",
90+
"default": "true"
91+
},
92+
"p_coefficient_positive": {
93+
"type": "number",
94+
"description": "coefficient P in PID control (used when target dist -current_dist >=0) [-]",
95+
"default": "0.1"
96+
},
97+
"p_coefficient_negative": {
98+
"type": "number",
99+
"description": "coefficient P in PID control (used when target dist -current_dist <0) [-]",
100+
"default": "0.3"
101+
},
102+
"d_coefficient_positive": {
103+
"type": "number",
104+
"description": "coefficient D in PID control (used when delta_dist >=0) [-]",
105+
"default": "0.0"
106+
},
107+
"d_coefficient_negative": {
108+
"type": "number",
109+
"description": "coefficient D in PID control (used when delta_dist <0) [-]",
110+
"default": "0.2"
111+
},
112+
"object_polygon_length_margin": {
113+
"type": "number",
114+
"description": "The distance to extend the polygon length the object in pointcloud-object matching [m]",
115+
"default": "2.0"
116+
},
117+
"object_polygon_width_margin": {
118+
"type": "number",
119+
"description": "The distance to extend the polygon width the object in pointcloud-object matching [m]",
120+
"default": "0.5"
121+
},
122+
"valid_estimated_vel_diff_time": {
123+
"type": "number",
124+
"description": "Maximum time difference treated as continuous points in speed estimation using a point cloud [s]",
125+
"default": "1.0"
126+
},
127+
"valid_vel_que_time": {
128+
"type": "number",
129+
"description": "Time width of information used for speed estimation in speed estimation using a point cloud [s]",
130+
"default": "0.5"
131+
},
132+
"valid_estimated_vel_max": {
133+
"type": "number",
134+
"description": "Maximum value of valid speed estimation results in speed estimation using a point cloud [m/s]",
135+
"default": "20.0"
136+
},
137+
"valid_estimated_vel_min": {
138+
"type": "number",
139+
"description": "Minimum value of valid speed estimation results in speed estimation using a point cloud [m/s]",
140+
"default": "-20.0"
141+
},
142+
"thresh_vel_to_stop": {
143+
"type": "number",
144+
"description": "Embed a stop line if the maximum speed calculated by ACC is lower than this speed [m/s]",
145+
"default": "1.5"
146+
},
147+
"lowpass_gain_of_upper_velocity": {
148+
"type": "number",
149+
"description": "Lowpass-gain of upper velocity",
150+
"default": "0.75"
151+
},
152+
"use_rough_velocity_estimation": {
153+
"type": "boolean",
154+
"description": "Use rough estimated velocity if the velocity estimation is failed (#### If this parameter is true, the vehicle may collide with the front car. Be careful. ####)",
155+
"default": "false"
156+
},
157+
"rough_velocity_rate": {
158+
"type": "number",
159+
"description": "In the rough velocity estimation, the velocity of front car is estimated as self current velocity * this value",
160+
"default": "0.9"
161+
}
162+
},
163+
"required": [
164+
"use_object_to_estimate_vel",
165+
"use_pcl_to_estimate_vel",
166+
"consider_obj_velocity",
167+
"obstacle_velocity_thresh_to_start_acc",
168+
"obstacle_velocity_thresh_to_stop_acc",
169+
"emergency_stop_acceleration",
170+
"emergency_stop_idling_time",
171+
"min_dist_stop",
172+
"obstacle_emergency_stop_acceleration",
173+
"max_standard_acceleration",
174+
"min_standard_acceleration",
175+
"standard_idling_time",
176+
"min_dist_standard",
177+
"obstacle_min_standard_acceleration",
178+
"margin_rate_to_change_vel",
179+
"use_time_compensation_to_calc_distance",
180+
"p_coefficient_positive",
181+
"p_coefficient_negative",
182+
"d_coefficient_positive",
183+
"d_coefficient_negative",
184+
"object_polygon_length_margin",
185+
"object_polygon_width_margin",
186+
"valid_estimated_vel_diff_time",
187+
"valid_vel_que_time",
188+
"valid_estimated_vel_max",
189+
"valid_estimated_vel_min",
190+
"thresh_vel_to_stop",
191+
"lowpass_gain_of_upper_velocity",
192+
"use_rough_velocity_estimation",
193+
"rough_velocity_rate"
194+
],
195+
"additionalProperties": false
196+
}
197+
},
198+
"required": ["adaptive_cruise_control"],
199+
"additionalProperties": false
200+
}
201+
},
202+
"properties": {
203+
"/**": {
204+
"type": "object",
205+
"properties": {
206+
"ros__parameters": {
207+
"$ref": "#/definitions/adaptive_cruise_control"
208+
}
209+
},
210+
"required": ["ros__parameters"],
211+
"additionalProperties": false
212+
}
213+
},
214+
"required": ["/**"],
215+
"additionalProperties": false
216+
}
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "Parameter for common in autoware_obstacle_stop_planner",
4+
"type": "object",
5+
"definitions": {
6+
"common": {
7+
"type": "object",
8+
"properties": {
9+
"max_vel": {
10+
"type": "number",
11+
"description": "max velocity limit [m/s]",
12+
"default": "11.1"
13+
},
14+
"normal": {
15+
"type": "object",
16+
"properties": {
17+
"min_acc": {
18+
"type": "number",
19+
"description": "min deceleration [m/ss]",
20+
"default": "-0.5"
21+
},
22+
"max_acc": {
23+
"type": "number",
24+
"description": "max acceleration [m/ss]",
25+
"default": "1.0"
26+
},
27+
"min_jerk": {
28+
"type": "number",
29+
"description": "min jerk [m/sss]",
30+
"default": "-0.5"
31+
},
32+
"max_jerk": {
33+
"type": "number",
34+
"description": "max jerk [m/sss]",
35+
"default": "1.0"
36+
}
37+
},
38+
"required": ["min_acc", "max_acc", "min_jerk", "max_jerk"]
39+
},
40+
"limit": {
41+
"type": "object",
42+
"properties": {
43+
"min_acc": {
44+
"type": "number",
45+
"description": "min deceleration limit [m/ss]",
46+
"default": "-2.5"
47+
},
48+
"max_acc": {
49+
"type": "number",
50+
"description": "max acceleration [m/ss]",
51+
"default": "1.0"
52+
},
53+
"min_jerk": {
54+
"type": "number",
55+
"description": "min jerk [m/sss]",
56+
"default": "-1.5"
57+
},
58+
"max_jerk": {
59+
"type": "number",
60+
"description": "max jerk [m/sss]",
61+
"default": "1.5"
62+
}
63+
},
64+
"required": ["min_acc", "max_acc", "min_jerk", "max_jerk"]
65+
}
66+
},
67+
"required": ["max_vel", "normal", "limit"],
68+
"additionalProperties": false
69+
}
70+
},
71+
"properties": {
72+
"/**": {
73+
"type": "object",
74+
"properties": {
75+
"ros__parameters": {
76+
"$ref": "#/definitions/common"
77+
}
78+
},
79+
"required": ["ros__parameters"],
80+
"additionalProperties": false
81+
}
82+
},
83+
"required": ["/**"],
84+
"additionalProperties": false
85+
}

0 commit comments

Comments
 (0)