S2024 dynamics add acceleration calibration utility to utils
- Implemented functions to extract measured and output acceleration, as well as speed data from txt files.
- Added friction modeling and curve fitting to calculate and plot friction forces based on speed, coefficients for speed-dependent friction terms can be found.
Quality Gate passed
Issues
1 New issue
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code
Add acceleration calibration components and configuration
This commit introduces several updates and new files to enhance the acceleration calibration capabilities of our GEMstack:
-
New Component:
acc_calibration_driver.pyis introduced inGEMstack/onboard/planning/. This component facilitates the collection of vehicle dynamics data (measured acceleration, output acceleration, and speed) by running the vehicle at a constant acceleration specified via the driver. -
Utilities Update: Modifications in
GEMstack/utils/acceleration_calibration.pyinclude new functionality to read data from a text file and perform curve fitting. This helps determine the friction coefficient for speed-dependent friction terms. -
Configuration File: Added
launch/acceleration_calibration.yamlwhich configures the vehicle to run at specified accelerations, thereby automating data collection for analysis. -
YAML Updates: Updated
GEMstack/knowledge/defaults/computation_graph.yamlto add a new component "driving_for calibration".
Rejected, low quality