osqp-eigen icon indicating copy to clipboard operation
osqp-eigen copied to clipboard

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

Open dashenyjn123 opened this issue 3 years ago • 2 comments

dashenyjn123 avatar Jul 29 '21 00:07 dashenyjn123

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

S-Dafarra avatar Jul 29 '21 14:07 S-Dafarra

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 avatar Jul 29 '21 20:07 GiulioRomualdi

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

GiulioRomualdi avatar Aug 01 '23 09:08 GiulioRomualdi