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

cannot convert ‘OSQPWorkspace**’ to ‘const OSQPData* #102

Closed dashenyjn123 closed 1 year ago

S-Dafarra commented 3 years ago

Hi @dashenyjn123 could you give us some details? From the title only it is really impossible to understand what is going on

GiulioRomualdi commented 3 years ago

Hi @dashenyjn123, please notice that OSQPData and OSQPWorkspace are two different entities. osqp-eigen generates a workspace from the data structure when the initSolver method is called.

https://github.com/robotology/osqp-eigen/blob/c01c310834b749533c63c8c829eab0cde3544d11/src/Solver.cpp#L101-L107

GiulioRomualdi commented 1 year ago

I will close the issue. @dashenyjn123 if you still have the problem feel free to open it again 😃