提交 48cdf1a1 编写于 作者: Z Zhang Liangliang 提交者: Jiangtao Hu

common::math : removed ambiguous error msg.

上级 2fad50aa
......@@ -115,11 +115,11 @@ bool ActiveSetQpSolver::Solve() {
lower_bound, upper_bound, constraint_lower_bound,
constraint_upper_bound, max_iter);
if (ret != qpOASES::SUCCESSFUL_RETURN) {
AERROR << "Fail to initialize qp problem";
if (ret == qpOASES::RET_MAX_NWSR_REACHED) {
AERROR << "Qp solver failed due to reached max iteration";
AERROR << "qpOASES solver failed due to reached max iteration";
} else {
AERROR << "Qp failed due to infeasibility or other internal reasons";
AERROR << "qpOASES solver failed due to infeasibility or other internal "
"reasons";
}
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册