jara001 / ng_trajectory

Racing Line Optimization using Nevergrad
GNU General Public License v3.0
5 stars 4 forks source link

Obtain centerline in Centerline penalizer #19

Open jara001 opened 2 years ago

jara001 commented 2 years ago

Centerline penalizer was added in ec4c54a72b8095f92419fef3810e8f4cfb3dd8db. However it relies on getting the centerline during the first loop of the algorithm (as it is usually used there). However, this does not have to be the case everytime.

It would be nice to have a function to get this centerline. I think that 'ng_generate_data' could be used for this.