Closed douglasteeple closed 6 years ago
double* sense() is a poor interface. Returning a pointer to a static array is just not great sw design. It is not thread safe, for example. Better to have sense() return a vector of values...
Thanks for reporting this. Just updated it in GitHub to "vector sense()". Check it out: https://github.com/udacity/RoboND-MCL-Lab
double* sense() is a poor interface. Returning a pointer to a static array is just not great sw design. It is not thread safe, for example. Better to have sense() return a vector of values...