Skip to content

Commit b5874e2

Browse files
pre-commit-ci[bot]xmfcx
authored andcommitted
style(pre-commit): autofix
1 parent 093446c commit b5874e2

File tree

7 files changed

+88
-253
lines changed

7 files changed

+88
-253
lines changed

vehicle/learning_based_vehicle_calibration/README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Here we present the software structure, data collection, data preprocessing and
6060
## Input Data Software
6161

6262
Launch Autoware as follows:
63+
6364
```bash
6465
./autoware.sh
6566
```
@@ -103,8 +104,6 @@ You can have a look at the following examples:
103104

104105
![data_monitor_error](./imgs/data_monitor_error.png)
105106

106-
107-
108107
## 1. Longitudinal Dynamics
109108

110109
### Record Data Software Case
@@ -217,8 +216,6 @@ Finally, the script will also plot the distribution of velocity, throttling/brak
217216

218217
![dioss](./imgs/dioss.png)
219218

220-
221-
222219
### Evaluation and Results
223220

224221
In order to evaluate our calibration table for the longitudinal dynamic, we are going to check the speed error of the vehicle while driving in autonomous driving mode.

vehicle/learning_based_vehicle_calibration/launch/calibration_launch.py

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
23
import launch
34
from launch.actions import OpaqueFunction
45
import launch.substitutions
@@ -116,11 +117,7 @@ def generate_launch_description():
116117
output="screen",
117118
parameters=[
118119
{"max_data": launch.substitutions.LaunchConfiguration("max_data")},
119-
{
120-
"num_of_queue": launch.substitutions.LaunchConfiguration(
121-
"num_of_queue"
122-
)
123-
},
120+
{"num_of_queue": launch.substitutions.LaunchConfiguration("num_of_queue")},
124121
{
125122
"speed_threshold": launch.substitutions.LaunchConfiguration(
126123
"speed_threshold"
@@ -136,16 +133,8 @@ def generate_launch_description():
136133
"throttle_deadzone"
137134
)
138135
},
139-
{
140-
"brake_deadzone": launch.substitutions.LaunchConfiguration(
141-
"brake_deadzone"
142-
)
143-
},
144-
{
145-
"max_velocity": launch.substitutions.LaunchConfiguration(
146-
"max_velocity"
147-
)
148-
},
136+
{"brake_deadzone": launch.substitutions.LaunchConfiguration("brake_deadzone")},
137+
{"max_velocity": launch.substitutions.LaunchConfiguration("max_velocity")},
149138
{
150139
"throttle_threshold1": launch.substitutions.LaunchConfiguration(
151140
"throttle_threshold1"
@@ -171,11 +160,7 @@ def generate_launch_description():
171160
"consistency_threshold"
172161
)
173162
},
174-
{
175-
"pitch_topic": launch.substitutions.LaunchConfiguration(
176-
"pitch_topic"
177-
)
178-
},
163+
{"pitch_topic": launch.substitutions.LaunchConfiguration("pitch_topic")},
179164
{
180165
"actuation_status_topic": launch.substitutions.LaunchConfiguration(
181166
"actuation_status_topic"
@@ -191,16 +176,8 @@ def generate_launch_description():
191176
"velocity_status_topic"
192177
)
193178
},
194-
{
195-
"imu_topic": launch.substitutions.LaunchConfiguration(
196-
"imu_topic"
197-
)
198-
},
199-
{
200-
"Recovery_Mode": launch.substitutions.LaunchConfiguration(
201-
"Recovery_Mode"
202-
)
203-
},
179+
{"imu_topic": launch.substitutions.LaunchConfiguration("imu_topic")},
180+
{"Recovery_Mode": launch.substitutions.LaunchConfiguration("Recovery_Mode")},
204181
],
205182
),
206183
]

0 commit comments

Comments
 (0)