Open xkk3599 opened 5 years ago
This error is specific to using a vector - something is trying to call an index that is greater than the size of the vector. You should be able to to use .size()
with a vector to try to avoid this. Note that if you are just straight up running the starter code, not everything is appropriately initialized (as that is part of the project), so it's unlikely to run without an error by default.
Listening to port 4567 Connected!!! 42["telemetry",{"ptsx":[-32.16173,-43.49173,-61.09,-78.29172,-93.05002,-107.7717],"ptsy":[113.361,105.941,92.88499,78.73102,65.34102,50.57938],"psi_unity":4.12033,"psi":3.733651,"x":-40.62,"y":108.73,"steeringangle":0,"throttle":0,"speed":0}] Cost 2.37152e-322 cppad-20160000.1 error from a known source: vector: index greater than or equal vector size Error detected by false result for i < length at line 477 in the file /usr/include/cppad/utility/vector.hpp mpc: /usr/include/cppad/utility/error_handler.hpp:207: static void CppAD::ErrorHandler::Default(bool, int, const char, const char, const char*): Assertion `false' failed. 已放弃 (核心已转储)