robotology / osqp-eigen

Simple Eigen-C++ wrapper for OSQP library
https://robotology.github.io/osqp-eigen/
BSD 3-Clause "New" or "Revised" License
385 stars 114 forks source link

Handle osqp errors #111

Closed GiulioRomualdi closed 2 years ago

GiulioRomualdi commented 2 years ago

This PR introduces Status and ErrorExitFlag enum class that replicates the content of https://osqp.org/docs/interfaces/status_values.html

Furthermore, I implemented:

  1. OsqpEigen::Solver::solveProblem: this function will substitute OsqpEigen::Solver::solve and it will return the ErrorExitFlag
  2. OsqpEigen::Solver::getStatus to get the internal state of osqp solver.

This closes #110

GiulioRomualdi commented 2 years ago

I bumped the project version to 0.6.4.100, so if the user what to use the features implemented in this PR it can ask for a specific version of the library