ZJU-FAST-Lab / ego-planner

GNU General Public License v3.0
1.31k stars 269 forks source link

some questions about function initControlPoints in file bspline_optimizer.cpp #7

Closed tiemuhua closed 3 years ago

tiemuhua commented 3 years ago

image MINIMUM_PERCENT is 0.0, so minimum_points should be 0, so the bool expression in line 413 should always be false, what is the purpose of these codes?

bigsuperZZZX commented 3 years ago

In some situations in the early time, we find that one single control point is unable to produce enough repulsive force. One effective way is to put some force onto adjacent points to make the trajectory producing stronger force. The parameter MINIMUM_PERCENT specified how much control points will be assigned force for one obstacle. But we set this to 0, which still works OK...

tiemuhua commented 3 years ago

In some situations in the early time, we find that one single control point is unable to produce enough repulsive force. One effective way is to put some force onto adjacent points to make the trajectory producing stronger force. The parameter MINIMUM_PERCENT specified how much control points will be assigned force for one obstacle. But we set this to 0, which still works OK...

so do you means that line 413 to line 422 can be removed?

bigsuperZZZX commented 3 years ago

It depends on the environment you want to fly in. If the environment contains many big obstacles, we recommend you to keep this code and set the MINIMUM_PERCENT to 10.0 ~ 20.0 if the planner performs unsatisfactory. Or this code can be removed.

bigsuperZZZX commented 3 years ago

If there is no more questions, please close this issue, thanks.