HKUST-Aerial-Robotics / Btraj

Bezier Trajectory Generation for Autonomous Quadrotor, ICRA 2018
409 stars 138 forks source link

is this a typo for array size? #10

Open onlytailei opened 4 years ago

onlytailei commented 4 years ago

https://github.com/HKUST-Aerial-Robotics/Btraj/blob/78156885dfab1c5dfeea96cf2ab7ecd772433381/third_party/fast_methods/gradientdescent/gradientdescent.hpp#L367

It seems that ndims_ here is 3. And d_ is declared with size of 2.

However, d_[2] is initialized and used in folliwing codes.

It works but is still very dangerous. Is this a typo?