Skip to content
This repository has been archived by the owner on Nov 25, 2021. It is now read-only.

When I start simulator for MPC ,the code will show error . #43

Open
xkk3599 opened this issue Aug 14, 2019 · 1 comment
Open

When I start simulator for MPC ,the code will show error . #43

xkk3599 opened this issue Aug 14, 2019 · 1 comment

Comments

@xkk3599
Copy link

xkk3599 commented Aug 14, 2019

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,"steering_angle":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.
已放弃 (核心已转储)

@mvirgo
Copy link
Contributor

mvirgo commented Aug 14, 2019

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants