license: mit
size_categories:
- 100K<n<1M
commaSteeringControl
commaSteeringControl is a dataset of car steering information from ~12500 hours of driving with openpilot engaged. We control steering on most
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,
etc). Learning this relationship is essential to having accurate steering control in openpilot. commaSteeringControl is the largest controls dataset of its kind, spanning
hundreds of car models across 10+ brands.
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 and accelerates that effort.
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.
Timeline
- In 0.8.15, we introduced a new controller that leveraged the relationship between steering torque and lateral acceleration.
- In 0.9.0, we introduced torqued, which learns the relationship online.
- In 0.9.2, we introduced a non-linear feed-forward function.
- There has been extensive community effort to improve the controller (speed-based relationships, using neural networks, etc)
- We are working on similar techniques to further improve steering controls
Dataset
- Download the dataset from HuggingFace
- Checkout the example notebook at visualize.ipynb
# Data Structure
data/
├── Platform 1
| ├── Segment 1
| ├── ...
| └── Segment N
└── Platform M
├── Segment 1
└── ...
| | Fields | Description | Value Range |
|---:|:----------------------|:---------------------------------------------------------------------------------|:----------------|
| 0 | t | Time | [0, 60] |
| 1 | latActive | Is openpilot engaged? | {True, False} |
| 2 | steeringPressed | Is steering wheel pressed by the user? | {True, False} |
| 3 | vEgo | Forward velocity of the car (m/s) | [0, ∞] |
| 4 | aEgo | Forward acceleration of the car (m/s^2) | [-∞, ∞] |
| 5 | steeringAngleDeg | Steering Angle (Deg) | [-∞, ∞] |
| 6 | steer | Normalized steer torque | [-1, 1] |
| 7 | steerFiltered | Normalized, rate limited steer torque | [-1, 1] |
| 8 | roll | Road roll (rad) | [-0.174, 0.174] |
| 9 | latAccelSteeringAngle | Lateral acceleration requested from the planner | [-∞, ∞] |
| 10 | latAccelDesired | Lateral acceleration computed from the steering wheel angle and vehicle dynamics | [-∞, ∞] |
| 11 | latAccelLocalizer | Lateral acceleration from the localizer | [-∞, ∞] |
| 12 | epsFwVersion | EPS firmware version | str |
Notes
- All values from different messages are interpolated and synced to time
t - 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). - Steering torque is normalized in openpilot (to get
steer), and further rate limits are applied (to getsteerFiltered).steerFilteredis the best input signal. - The
latAccelSteeringAngleis computed using the vehicle model from openpilot (it usesroll). This is the best signal to predict aslatAccelLocalizercan be quite noisy. - 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).
- There may be a lag in openpilot fully regaining steering control after
steeringPressedwhich may have to be accounted for. - In some platforms, cars with different
epsFwVersionhave dramatically different steering behaviour, although this is not common. - 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.