Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSQP: Fix missing return in OSQP::solverInitialization and disable OSQP verbose output #220

Merged
merged 4 commits into from
May 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ The format of this document is based on [Keep a Changelog](https://keepachangelo

## [Unreleased]

## [5.4.1] - 2021-05-26

### Fixed
- Fixed bug that caused Simulink models that used OSQP block to hang indefinitely in "Initializing" or "Compiling" phase (https://github.com/robotology/wb-toolbox/pull/220).
- Disable verbose output option in OSQP block (https://github.com/robotology/wb-toolbox/pull/220).

## [5.4.0] - 2021-05-24

### Added
Expand Down
4 changes: 2 additions & 2 deletions toolbox/library/src/OSQP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ bool wbt::block::OSQP::solverInitialization(const BlockInformation*blockInfo)
pImpl->totalConstraintsMatrix = Eigen::MatrixXd(pImpl->numberOfTotalConstraints, pImpl->numberOfVariables);

// Setup options
pImpl->sqSolver->settings()->setVerbosity(true);
pImpl->sqSolver->settings()->setVerbosity(false);

// Set adaptive_rho to false to avoid converge problems
// See https://github.com/oxfordcontrol/osqp/issues/151
Expand All @@ -326,7 +326,7 @@ bool wbt::block::OSQP::solverInitialization(const BlockInformation*blockInfo)
// of hessians, gradient and constraints
pImpl->sqSolver->settings()->setWarmStart(true);


return true;
}

bool wbt::block::OSQP::initialize(BlockInformation* blockInfo)
Expand Down