提交 3b0c0094 编写于 作者: L Liangliang Zhang 提交者: Jiangtao Hu

Planning: fixed referecne line smoothing isssue.

上级 f13888d6
......@@ -348,7 +348,7 @@ bool Spline2dConstraint::AddSmoothConstraint() {
// guarantee upto derivative are joint
bool Spline2dConstraint::AddDerivativeSmoothConstraint() {
if (t_knots_.size() < 3) {
return false;
return true;
}
Eigen::MatrixXd affine_equality =
Eigen::MatrixXd::Zero(4 * (t_knots_.size() - 2), total_param_);
......@@ -379,7 +379,7 @@ bool Spline2dConstraint::AddDerivativeSmoothConstraint() {
// guarantee upto second order derivative are joint
bool Spline2dConstraint::AddSecondDerivativeSmoothConstraint() {
if (t_knots_.size() < 3) {
return false;
return true;
}
Eigen::MatrixXd affine_equality =
Eigen::MatrixXd::Zero(6 * (t_knots_.size() - 2), total_param_);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册