Reference Line¶
Fem(Finite Element Method)pos Smooth¶
The optimization variables are points(x, y) position. The object function can be wrriten as:
Smooth Cost¶
As we can see,
and the shorter
This cost can also be descriped as:
As
As we can see, if we use qp problem
, we should solve it with a nonlinear solver.
Length Cost¶
Deviation Cost¶
Curve Rate Constraints¶
Assumption:
, each piece of segment has almost the same length; is small, so ; , distance between two points is approximately equal to the arc of them.
As we can see in above figure,