Skip to content

Commit 91b8a35

Browse files
style(pre-commit): autofix
1 parent 6a50576 commit 91b8a35

File tree

4 files changed

+92
-93
lines changed

4 files changed

+92
-93
lines changed

control/autoware_trajectory_follower_node/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ Giving the longitudinal controller information about steer convergence allows it
139139
- `autoware_control_msgs/ControlHorizon`: message containing both lateral and longitudinal horizon commands. this is NOT published by default. by using this, the performance of vehicle control may be improved, and by turning the default on, it can be used as an experimental topic.
140140
141141
#### Parameter
142+
142143
{{ json_to_markdown("control/autoware_trajectory_follower_node/schema/simple_trajectory_follower.schema.json") }}
143144
144145
## Debugging

control/autoware_trajectory_follower_node/config/controller_node.param.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
timeout_thr_sec: $(var timeout_thr_sec)
55
enable_control_cmd_horizon_pub: $(var enable_control_cmd_horizon_pub)
66
lateral_controller_mode: $(var lateral_controller_mode)
7-
longitudinal_controller_mode: $(var longitudinal_controller_mode)
7+
longitudinal_controller_mode: $(var longitudinal_controller_mode)
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,56 @@
11
{
2-
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"title": "autoware_trajectory_follower_node parameters",
4-
"type": "object",
5-
"definitions": {
6-
"controller_node": {
7-
"type": "object",
8-
"properties": {
9-
"ctrl_period": {
10-
"type": "number",
11-
"description": "Control period in seconds.",
12-
"default": 0.0
13-
},
14-
"timeout_thr_sec": {
15-
"type": "number",
16-
"description": "Timeout threshold in seconds.",
17-
"default": 0.0
18-
},
19-
"enable_control_cmd_horizon_pub": {
20-
"type": "boolean",
21-
"description": "Indicates whether to enable the publication of the control command horizon.",
22-
"default": false
23-
},
24-
"lateral_controller_mode": {
25-
"type": "string",
26-
"description": "The mode of the lateral controller, e.g., 'mpc' or 'pure_pursuit'.",
27-
"default": ""
28-
},
29-
"longitudinal_controller_mode": {
30-
"type": "string",
31-
"description": "The mode of the longitudinal controller, e.g., 'pid'.",
32-
"default": ""
33-
}
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "autoware_trajectory_follower_node parameters",
4+
"type": "object",
5+
"definitions": {
6+
"controller_node": {
7+
"type": "object",
8+
"properties": {
9+
"ctrl_period": {
10+
"type": "number",
11+
"description": "Control period in seconds.",
12+
"default": 0.0
3413
},
35-
"required": [
36-
"ctrl_period",
37-
"timeout_thr_sec",
38-
"enable_control_cmd_horizon_pub",
39-
"lateral_controller_mode",
40-
"longitudinal_controller_mode"
41-
]
42-
}
43-
},
44-
"properties": {
45-
"/**": {
46-
"type": "object",
47-
"properties": {
48-
"ros__parameters": {
49-
"$ref": "#/definitions/controller_node"
50-
}
14+
"timeout_thr_sec": {
15+
"type": "number",
16+
"description": "Timeout threshold in seconds.",
17+
"default": 0.0
5118
},
52-
"required": ["ros__parameters"]
53-
}
54-
},
55-
"required": ["/**"]
56-
}
57-
19+
"enable_control_cmd_horizon_pub": {
20+
"type": "boolean",
21+
"description": "Indicates whether to enable the publication of the control command horizon.",
22+
"default": false
23+
},
24+
"lateral_controller_mode": {
25+
"type": "string",
26+
"description": "The mode of the lateral controller, e.g., 'mpc' or 'pure_pursuit'.",
27+
"default": ""
28+
},
29+
"longitudinal_controller_mode": {
30+
"type": "string",
31+
"description": "The mode of the longitudinal controller, e.g., 'pid'.",
32+
"default": ""
33+
}
34+
},
35+
"required": [
36+
"ctrl_period",
37+
"timeout_thr_sec",
38+
"enable_control_cmd_horizon_pub",
39+
"lateral_controller_mode",
40+
"longitudinal_controller_mode"
41+
]
42+
}
43+
},
44+
"properties": {
45+
"/**": {
46+
"type": "object",
47+
"properties": {
48+
"ros__parameters": {
49+
"$ref": "#/definitions/controller_node"
50+
}
51+
},
52+
"required": ["ros__parameters"]
53+
}
54+
},
55+
"required": ["/**"]
56+
}
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,40 @@
11
{
2-
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"title": "autoware_trajectory_follower_node parameters",
4-
"type": "object",
5-
"definitions": {
6-
"simple_trajectory_follower": {
7-
"type": "object",
8-
"properties": {
9-
"use_external_target_vel": {
10-
"type": "boolean",
11-
"description": "Indicates whether to use an external target velocity.",
12-
"default": false
13-
},
14-
"external_target_vel": {
15-
"type": "number",
16-
"description": "The value of the external target velocity in m/s.",
17-
"default": 0.0
18-
},
19-
"lateral_deviation": {
20-
"type": "number",
21-
"description": "The allowed lateral deviation in meters.",
22-
"default": 0.0
23-
}
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "autoware_trajectory_follower_node parameters",
4+
"type": "object",
5+
"definitions": {
6+
"simple_trajectory_follower": {
7+
"type": "object",
8+
"properties": {
9+
"use_external_target_vel": {
10+
"type": "boolean",
11+
"description": "Indicates whether to use an external target velocity.",
12+
"default": false
2413
},
25-
"required": ["use_external_target_vel", "external_target_vel", "lateral_deviation"]
26-
}
27-
},
28-
"properties": {
29-
"/**": {
30-
"type": "object",
31-
"properties": {
32-
"ros__parameters": {
33-
"$ref": "#/definitions/simple_trajectory_follower"
34-
}
14+
"external_target_vel": {
15+
"type": "number",
16+
"description": "The value of the external target velocity in m/s.",
17+
"default": 0.0
3518
},
36-
"required": ["ros__parameters"]
37-
}
38-
},
39-
"required": ["/**"]
40-
}
41-
19+
"lateral_deviation": {
20+
"type": "number",
21+
"description": "The allowed lateral deviation in meters.",
22+
"default": 0.0
23+
}
24+
},
25+
"required": ["use_external_target_vel", "external_target_vel", "lateral_deviation"]
26+
}
27+
},
28+
"properties": {
29+
"/**": {
30+
"type": "object",
31+
"properties": {
32+
"ros__parameters": {
33+
"$ref": "#/definitions/simple_trajectory_follower"
34+
}
35+
},
36+
"required": ["ros__parameters"]
37+
}
38+
},
39+
"required": ["/**"]
40+
}

0 commit comments

Comments
 (0)