acmerobotics / road-runner

Wheeled mobile robot motion planning library designed for FTC
MIT License
224 stars 77 forks source link

Maybe duplicated points should be remoed in Profile(...) #105

Closed EthanHu29 closed 2 months ago

EthanHu29 commented 4 months ago

After a profile generated, I notice some data points may be duplicated, like the profile generated in line Line 63, ProfilesTest.kt, as shown in the attached picture, 1 apparently time 1.0 points are duplicated. Will the removal of those duplicated points be convenient for future processing?

rbrott commented 4 months ago

Will the removal of those duplicated points be convenient for future processing?

Not sure about "convenient", but having fewer samples will make everything run (marginally) faster. It shouldn't affect the correctness of subsequent processing.