Hi everyone from TUM! Thanks for publishing this code publicly, it works very well. I've cloned the code and I am going to use it for a personal project. I've found this issue with generating friction maps, please see below.
Thanks,
Matt
Description
I tried to generate a friction map using the included tracks (berlin_2018, etc.) and the script fails with the following output:
(.env) PS C:\Users\PC1\Documents\git\global_racetrajectory_optimization> python .\main_gen_frictionmap.py
Traceback (most recent call last):
File ".\main_gen_frictionmap.py", line 64, in <module>
bool_isclosed_refline = frictionmap.src.reftrack_functions.check_isclosed_refline(refline=reftrack[:, :2])
IndexError: too many indices for array
This was fixed by making the following change:
File: frictionmap\src\reftrack_functions.py
Line: 28
Original: reftrack = np.genfromtxt(fh, delimiter=';')
Fix: reftrack = np.genfromtxt(fh, delimiter=',')
Description: delimiters in included track files are , not ; as the import function was expecting, resulting in no data being imported into the reftrack variable
With the proposed solution friction maps are generated successfully from included tracks
Hi everyone from TUM! Thanks for publishing this code publicly, it works very well. I've cloned the code and I am going to use it for a personal project. I've found this issue with generating friction maps, please see below.
Thanks,
Matt
Description
I tried to generate a friction map using the included tracks (berlin_2018, etc.) and the script fails with the following output:
Inputs
Proposed Soluction
This was fixed by making the following change: File:
frictionmap\src\reftrack_functions.py
Line: 28 Original:reftrack = np.genfromtxt(fh, delimiter=';')
Fix:reftrack = np.genfromtxt(fh, delimiter=',')
Description: delimiters in included track files are
,
not;
as the import function was expecting, resulting in no data being imported into thereftrack
variableWith the proposed solution friction maps are generated successfully from included tracks
Local working environment
OS: OS Name Microsoft Windows 10 Pro Version 10.0.19041 Build 19041