Commit
Β·
881c0d3
1
Parent(s):
d8e3372
Update README.md
Browse files
README.md
CHANGED
|
@@ -4,4 +4,74 @@ size_categories:
|
|
| 4 |
- 100K<n<1M
|
| 5 |
---
|
| 6 |
|
| 7 |
-
# commaSteeringControl
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
- 100K<n<1M
|
| 5 |
---
|
| 6 |
|
| 7 |
+
# commaSteeringControl
|
| 8 |
+
|
| 9 |
+
`commaSteeringControl` is a dataset of car steering information from ~12500 hours of driving with openpilot engaged. We control steering on most
|
| 10 |
+
cars in openpilot using `steeringTorque`. This results in some lateral acceleration depending on both the car's internal vehicle dynamics and external factors (car speed, road roll,
|
| 11 |
+
etc). Learning this relationship is essential to having accurate steering control in openpilot. `commaSteeringControl` is the largest controls dataset of its kind, spanning
|
| 12 |
+
hundreds of car models across 10+ brands.
|
| 13 |
+
|
| 14 |
+
The main purpose of this dataset is to give the community access to the data needed to model the steering of their car, and with that make a more accurate steering controller in openpilot to improve openpilot's performance on that car. We hope this dataset aids
|
| 15 |
+
and accelerates that effort.
|
| 16 |
+
|
| 17 |
+
This is the largest dataset of vehicle dynamics ever released. It can also be used to develop or verify practical vehicle dynamics models for tire slip, road roll, lateral acceleration, understeer/oversteer, etc. We may add more fields for this goal in the future.
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
## Timeline
|
| 23 |
+
- In [0.8.15](https://blog.comma.ai/0815release/#torque-controller),
|
| 24 |
+
we introduced a [new controller](https://github.com/commaai/openpilot/blob/master/selfdrive/controls/lib/latcontrol_torque.py) that leveraged the relationship between
|
| 25 |
+
steering torque and lateral acceleration.
|
| 26 |
+
- In [0.9.0](https://blog.comma.ai/090release/#torqued-an-auto-tuner-for-lateral-control), we introduced
|
| 27 |
+
[torqued](https://github.com/commaai/openpilot/blob/master/selfdrive/locationd/torqued.py), which learns the relationship online.
|
| 28 |
+
- In [0.9.2](https://blog.comma.ai/092release/#chevrolet-bolt-euv), we introduced a non-linear feed-forward function.
|
| 29 |
+
- There has been [extensive community effort](https://github.com/twilsonco/openpilot/tree/log-info) to improve the controller (speed-based relationships, using neural networks, etc)
|
| 30 |
+
- We are working on similar techniques to further improve steering controls
|
| 31 |
+
|
| 32 |
+
## Dataset
|
| 33 |
+
- Download the dataset from [HuggingFace](https://huggingface.co/datasets/commaai/commaSteeringControl/tree/main/data)
|
| 34 |
+
- Checkout the example notebook at `visualize.ipynb`
|
| 35 |
+
```
|
| 36 |
+
# Data Structure
|
| 37 |
+
data/
|
| 38 |
+
βββ Platform 1
|
| 39 |
+
| βββ Segment 1
|
| 40 |
+
| βββ ...
|
| 41 |
+
| βββ Segment N
|
| 42 |
+
βββ Platform M
|
| 43 |
+
βββ Segment 1
|
| 44 |
+
βββ ...
|
| 45 |
+
|
| 46 |
+
| | Fields | Description | Value Range |
|
| 47 |
+
|---:|:----------------------|:---------------------------------------------------------------------------------|:----------------|
|
| 48 |
+
| 0 | t | Time | [0, 60] |
|
| 49 |
+
| 1 | latActive | Is openpilot engaged? | {True, False} |
|
| 50 |
+
| 2 | steeringPressed | Is steering wheel pressed by the user? | {True, False} |
|
| 51 |
+
| 3 | vEgo | Forward velocity of the car (m/s) | [0, β] |
|
| 52 |
+
| 4 | aEgo | Forward acceleration of the car (m/s^2) | [-β, β] |
|
| 53 |
+
| 5 | steeringAngleDeg | Steering Angle (Deg) | [-β, β] |
|
| 54 |
+
| 6 | steer | Normalized steer torque | [-1, 1] |
|
| 55 |
+
| 7 | steerFiltered | Normalized, rate limited steer torque | [-1, 1] |
|
| 56 |
+
| 8 | roll | Road roll (rad) | [-0.174, 0.174] |
|
| 57 |
+
| 9 | latAccelSteeringAngle | Lateral acceleration requested from the planner | [-β, β] |
|
| 58 |
+
| 10 | latAccelDesired | Lateral acceleration computed from the steering wheel angle and vehicle dynamics | [-β, β] |
|
| 59 |
+
| 11 | latAccelLocalizer | Lateral acceleration from the localizer | [-β, β] |
|
| 60 |
+
| 12 | epsFwVersion | EPS firmware version | str |
|
| 61 |
+
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+

|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
## Notes
|
| 68 |
+
- All values from different messages are interpolated and synced to time `t`
|
| 69 |
+
- In `torqued`, we assume that the gravity adjusted lateral acceleration has a linear dependence wrt. the steer command. We fit a Total-Least-Squares solution to obtain the factor. We also assume an error-dependant friction value (causes the hysteresis).
|
| 70 |
+
- Steering torque is normalized in openpilot (to get `steer`), and further rate limits are applied (to get `steerFiltered`). `steerFiltered` is the best input signal.
|
| 71 |
+
- The `latAccelSteeringAngle` is computed using the vehicle model from openpilot (it uses `roll`). This is the best signal to predict as `latAccelLocalizer` can be quite noisy.
|
| 72 |
+
- In reality (especially for some cars), the relationship is non-linear depending on vehicle speed, and is temporally correlated (there is a lag between the signals).
|
| 73 |
+
- There may be a lag in openpilot fully regaining steering control after `steeringPressed` which may have to be accounted for.
|
| 74 |
+
- In some platforms, cars with different `epsFwVersion` have dramatically different steering behaviour, although this is not common.
|
| 75 |
+
- Any algorithm that could be upstreamed to openpilot needs to be simple, fast, and reliable - similar to `torqued`, simple non-linear functions, or simple MLPs etc.
|
| 76 |
+
|
| 77 |
+

|