tatsuyah / Model-Predictive-Control

C++ implementation of Model Predictive Control(MPC)
MIT License
89 stars 16 forks source link

Polyfit error when the trajectory is a vertical line #3

Open willxxx0909 opened 2 years ago

willxxx0909 commented 2 years ago

If using y(x) to fit the trajectory, sometimes the trajectory is like a vertical line x = k, and polyfit may fail. How do you handle this? Thx