Skip to content

Commit

Permalink
Merge pull request #244 from DavideBarbone/barbone-patch
Browse files Browse the repository at this point in the history
Ensure that the OSQP report as status output not the return value of solveProblem(), but the output of solveProblem()
  • Loading branch information
traversaro authored Sep 24, 2024
2 parents 19b7408 + 04d6bb9 commit 5b464d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion toolbox/library/src/OSQP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,8 @@ bool wbt::block::OSQP::output(const BlockInformation* blockInfo)
}

// Set status
if (!statusSignal->set(0, double(solveReturnVal))) {
OsqpEigen::Status status = pImpl->sqSolver->getStatus();
if (!statusSignal->set(0, double(status))) {
bfError << "Failed to set status signal.";
return false;
}
Expand Down

0 comments on commit 5b464d2

Please sign in to comment.