This script gives the wheel rotation angle information corresponding to the steering angle by transforming 3 different points obtained in the Cartesian coordinate system corresponding to the steering column angle given in the .csv file.
❗The distance between the steering column and the rear axle must be entered correctly. Otherwise, all values will be calculated incorrectly.
- Python 3.x
-
Install Python from the official website: Python.org
-
Install the required libraries using pip:
pip install -r requirements.txt
CSV file: The script expects a CSV file named 'data_log_format.csv' in the same directory. The file should have the following columns:
- Steering wheel angle(degree) -> actual steering angle
- P1x(m) -> first position of x axes
- P1y(m) -> first position of y axes
- P2x(m) -> second position of x axes
- P2y(m) -> second positionof y axes
- P3x(m) -> third position of x axes
- P3y(m) -> third position of y axes
Distance: The distance between the steering column and the rear axle of the vehicle
- steering_map.h header file that include steering to tire map
- steering_tire_map.csv .csv file that include steering to tire map
Clone the repository or download the script files.
Install the required dependencies using the installation steps mentioned above.
Open a terminal or command prompt and navigate to the directory containing the script.
Run the script using the following command:
python map.py