Skip to content

Commit 2df9f45

Browse files
style(pre-commit): autofix
1 parent 77512b8 commit 2df9f45

6 files changed

+640
-647
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,140 +1,146 @@
11
{
2-
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"title": "Parameters for analytical",
4-
"type": "object",
5-
"definitions": {
6-
"analytical_params": {
7-
"type": "object",
8-
"properties": {
9-
"resample": {
10-
"type": "object",
11-
"properties": {
12-
"ds_resample": {
13-
"type": "number",
14-
"default": 0.1,
15-
"description": "Enable resampling"
16-
},
17-
"num_resample": {
18-
"type": "number",
19-
"default": 1,
20-
"description": "Resample interval"
21-
},
22-
"delta_yaw_threshold": {
23-
"type": "number",
24-
"default": 0.785,
25-
"description": "Threshold for yaw change"
26-
}
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "Parameters for analytical",
4+
"type": "object",
5+
"definitions": {
6+
"analytical_params": {
7+
"type": "object",
8+
"properties": {
9+
"resample": {
10+
"type": "object",
11+
"properties": {
12+
"ds_resample": {
13+
"type": "number",
14+
"default": 0.1,
15+
"description": "Enable resampling"
2716
},
28-
"required": ["ds_resample", "num_resample", "delta_yaw_threshold"],
29-
"additionalProperties": false
30-
},
31-
"latacc": {
32-
"type": "object",
33-
"properties": {
34-
"enable_constant_velocity_while_turning": {
35-
"type": "boolean",
36-
"default": false,
37-
"description": "Enable constant velocity while turning"
38-
},
39-
"constant_velocity_dist_threshold": {
40-
"type": "number",
41-
"default": 2.0,
42-
"description": "Threshold for constant velocity"
43-
}
17+
"num_resample": {
18+
"type": "number",
19+
"default": 1,
20+
"description": "Resample interval"
4421
},
45-
"required": [
46-
"enable_constant_velocity_while_turning",
47-
"constant_velocity_dist_threshold"
48-
],
49-
"additionalProperties": false
22+
"delta_yaw_threshold": {
23+
"type": "number",
24+
"default": 0.785,
25+
"description": "Threshold for yaw change"
26+
}
5027
},
51-
"forward": {
52-
"type": "object",
53-
"properties": {
54-
"max_acc": {
55-
"type": "number",
56-
"default": 1.0,
57-
"description": "Maximum forward acceleration"
58-
},
59-
"min_acc": {
60-
"type": "number",
61-
"default": -1.0,
62-
"description": "Minimum forward acceleration"
63-
},
64-
"max_jerk": {
65-
"type": "number",
66-
"default": 0.3,
67-
"description": "Maximum forward jerk"
68-
},
69-
"min_jerk": {
70-
"type": "number",
71-
"default": -0.3,
72-
"description": "Minimum forward jerk"
73-
},
74-
"kp": {
75-
"type": "number",
76-
"default": 0.3,
77-
"description": "Proportional gain for forward control"
78-
}
28+
"required": ["ds_resample", "num_resample", "delta_yaw_threshold"],
29+
"additionalProperties": false
30+
},
31+
"latacc": {
32+
"type": "object",
33+
"properties": {
34+
"enable_constant_velocity_while_turning": {
35+
"type": "boolean",
36+
"default": false,
37+
"description": "Enable constant velocity while turning"
7938
},
80-
"required": ["max_acc", "min_acc", "max_jerk", "min_jerk", "kp"],
81-
"additionalProperties": false
39+
"constant_velocity_dist_threshold": {
40+
"type": "number",
41+
"default": 2.0,
42+
"description": "Threshold for constant velocity"
43+
}
8244
},
83-
"backward": {
84-
"type": "object",
85-
"properties": {
86-
"start_jerk": {
87-
"type": "number",
88-
"default": -0.1,
89-
"description": "Jerk at the start of backward motion"
90-
},
91-
"min_jerk_mild_stop": {
92-
"type": "number",
93-
"default": -0.3,
94-
"description": "Minimum jerk for mild stopping"
95-
},
96-
"min_jerk": {
97-
"type": "number",
98-
"default": -1.5,
99-
"description": "Minimum backward jerk"
100-
},
101-
"min_acc_mild_stop": {
102-
"type": "number",
103-
"default": -1.0,
104-
"description": "Minimum acceleration for mild stopping"
105-
},
106-
"min_acc": {
107-
"type": "number",
108-
"default": -2.5,
109-
"description": "Minimum backward acceleration"
110-
},
111-
"span_jerk": {
112-
"type": "number",
113-
"default": -0.01,
114-
"description": "Span jerk value for backward motion"
115-
}
116-
},
117-
"required": ["start_jerk", "min_jerk_mild_stop", "min_jerk", "min_acc_mild_stop", "min_acc", "span_jerk"],
118-
"additionalProperties": false
119-
}
45+
"required": [
46+
"enable_constant_velocity_while_turning",
47+
"constant_velocity_dist_threshold"
48+
],
49+
"additionalProperties": false
12050
},
121-
"required": ["resample", "latacc", "forward", "backward"],
122-
"additionalProperties": false
123-
}
124-
},
125-
"properties": {
126-
"/**": {
127-
"type": "object",
128-
"properties": {
129-
"ros__parameters": {
130-
"$ref": "#/definitions/analytical_params"
131-
}
51+
"forward": {
52+
"type": "object",
53+
"properties": {
54+
"max_acc": {
55+
"type": "number",
56+
"default": 1.0,
57+
"description": "Maximum forward acceleration"
58+
},
59+
"min_acc": {
60+
"type": "number",
61+
"default": -1.0,
62+
"description": "Minimum forward acceleration"
63+
},
64+
"max_jerk": {
65+
"type": "number",
66+
"default": 0.3,
67+
"description": "Maximum forward jerk"
68+
},
69+
"min_jerk": {
70+
"type": "number",
71+
"default": -0.3,
72+
"description": "Minimum forward jerk"
73+
},
74+
"kp": {
75+
"type": "number",
76+
"default": 0.3,
77+
"description": "Proportional gain for forward control"
78+
}
79+
},
80+
"required": ["max_acc", "min_acc", "max_jerk", "min_jerk", "kp"],
81+
"additionalProperties": false
13282
},
133-
"required": ["ros__parameters"],
134-
"additionalProperties": false
135-
}
136-
},
137-
"required": ["/**"],
138-
"additionalProperties": false
139-
}
140-
83+
"backward": {
84+
"type": "object",
85+
"properties": {
86+
"start_jerk": {
87+
"type": "number",
88+
"default": -0.1,
89+
"description": "Jerk at the start of backward motion"
90+
},
91+
"min_jerk_mild_stop": {
92+
"type": "number",
93+
"default": -0.3,
94+
"description": "Minimum jerk for mild stopping"
95+
},
96+
"min_jerk": {
97+
"type": "number",
98+
"default": -1.5,
99+
"description": "Minimum backward jerk"
100+
},
101+
"min_acc_mild_stop": {
102+
"type": "number",
103+
"default": -1.0,
104+
"description": "Minimum acceleration for mild stopping"
105+
},
106+
"min_acc": {
107+
"type": "number",
108+
"default": -2.5,
109+
"description": "Minimum backward acceleration"
110+
},
111+
"span_jerk": {
112+
"type": "number",
113+
"default": -0.01,
114+
"description": "Span jerk value for backward motion"
115+
}
116+
},
117+
"required": [
118+
"start_jerk",
119+
"min_jerk_mild_stop",
120+
"min_jerk",
121+
"min_acc_mild_stop",
122+
"min_acc",
123+
"span_jerk"
124+
],
125+
"additionalProperties": false
126+
}
127+
},
128+
"required": ["resample", "latacc", "forward", "backward"],
129+
"additionalProperties": false
130+
}
131+
},
132+
"properties": {
133+
"/**": {
134+
"type": "object",
135+
"properties": {
136+
"ros__parameters": {
137+
"$ref": "#/definitions/analytical_params"
138+
}
139+
},
140+
"required": ["ros__parameters"],
141+
"additionalProperties": false
142+
}
143+
},
144+
"required": ["/**"],
145+
"additionalProperties": false
146+
}
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,58 @@
11
{
2-
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"title": "Parameters for JerkFiltered",
4-
"type": "object",
5-
"definitions": {
6-
"jerk_filtered_params": {
7-
"type": "object",
8-
"properties": {
9-
"jerk_weight": {
10-
"type": "number",
11-
"default": 10.0,
12-
"description": "Weight for 'smoothness' cost for jerk"
13-
},
14-
"over_v_weight": {
15-
"type": "number",
16-
"default": 100000.0,
17-
"description": "Weight for 'over speed limit' cost"
18-
},
19-
"over_a_weight": {
20-
"type": "number",
21-
"default": 5000.0,
22-
"description": "Weight for 'over accel limit' cost"
23-
},
24-
"over_j_weight": {
25-
"type": "number",
26-
"default": 2000.0,
27-
"description": "Weight for 'over jerk limit' cost"
28-
},
29-
"jerk_filter_ds": {
30-
"type": "number",
31-
"default": 0.1,
32-
"description": "Resampling ds for jerk filter"
33-
}
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "Parameters for JerkFiltered",
4+
"type": "object",
5+
"definitions": {
6+
"jerk_filtered_params": {
7+
"type": "object",
8+
"properties": {
9+
"jerk_weight": {
10+
"type": "number",
11+
"default": 10.0,
12+
"description": "Weight for 'smoothness' cost for jerk"
3413
},
35-
"required": [
36-
"jerk_weight",
37-
"over_v_weight",
38-
"over_a_weight",
39-
"over_j_weight",
40-
"jerk_filter_ds"
41-
]
42-
}
43-
},
44-
"properties": {
45-
"/**": {
46-
"type": "object",
47-
"properties": {
48-
"ros__parameters": {
49-
"$ref": "#/definitions/jerk_filtered_params"
50-
}
14+
"over_v_weight": {
15+
"type": "number",
16+
"default": 100000.0,
17+
"description": "Weight for 'over speed limit' cost"
5118
},
52-
"required": ["ros__parameters"],
53-
"additionalProperties": false
54-
}
55-
},
56-
"required": ["/**"],
57-
"additionalProperties": false
58-
}
59-
19+
"over_a_weight": {
20+
"type": "number",
21+
"default": 5000.0,
22+
"description": "Weight for 'over accel limit' cost"
23+
},
24+
"over_j_weight": {
25+
"type": "number",
26+
"default": 2000.0,
27+
"description": "Weight for 'over jerk limit' cost"
28+
},
29+
"jerk_filter_ds": {
30+
"type": "number",
31+
"default": 0.1,
32+
"description": "Resampling ds for jerk filter"
33+
}
34+
},
35+
"required": [
36+
"jerk_weight",
37+
"over_v_weight",
38+
"over_a_weight",
39+
"over_j_weight",
40+
"jerk_filter_ds"
41+
]
42+
}
43+
},
44+
"properties": {
45+
"/**": {
46+
"type": "object",
47+
"properties": {
48+
"ros__parameters": {
49+
"$ref": "#/definitions/jerk_filtered_params"
50+
}
51+
},
52+
"required": ["ros__parameters"],
53+
"additionalProperties": false
54+
}
55+
},
56+
"required": ["/**"],
57+
"additionalProperties": false
58+
}

0 commit comments

Comments
 (0)