robotology / osqp-eigen

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

‘class OsqpEigen::Solver’ has no member named ‘workspace’ #165

Closed jinye1514 closed 2 months ago

jinye1514 commented 2 months ago

running Ubuntu 20.04 and version 0.8.1, and I've been running into the following errors: error: ‘class OsqpEigen::Solver’ has no member named ‘workspace’ 145 | num_iter = solver.workspace()->info->iter; error: ‘class OsqpEigen::Solver’ has no member named ‘workspace’ 150 | cout << "status: " << solver.workspace()->info->status << " status value: " << solver.workspace()->info->status_val << endl; error: ‘class OsqpEigen::Solver’ has no member named ‘workspace’ 150 | cout << "status: " << solver.workspace()->info->status << " status value: " << solver.workspace()->info->status_val << endl; Anyone know where I should start debugging?

traversaro commented 2 months ago

Which version of osqp are you using?

jinye1514 commented 2 months ago

Which version of osqp are you using?

osqp version 0.6.3

traversaro commented 2 months ago

Which code are you trying to compile? How are you building it? Does the example https://github.com/robotology/osqp-eigen/blob/master/example/src/MPCExample.cpp compile fine for you?

jinye1514 commented 2 months ago

Oh I think I found the issue, I was accidentally using the beta version of osqp directly cloned from the master branch. Code complied fine once I switch versions!

traversaro commented 2 months ago

Ok, feel free to close the issue then.