HKUST-Aerial-Robotics / EPSILON

MIT License
641 stars 232 forks source link

About formula in spline_generator #30

Closed Zeyuan1Jin closed 5 months ago

Zeyuan1Jin commented 6 months ago

I noticed that Line 443 in spline_generator.cc writes "Q = 2 * (Q + P);"

I wonder why this is the case? I think it's fine to multiply Q by 2 but we also need to multiply c by 2 as well, otherwise the objective function is not as expected.

Could you please take a look and explain to me? Thanks!