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

have a solution for osqp 0.4.0? #149

Open james1kobby opened 9 months ago

james1kobby commented 9 months ago

Hello, what you've provided seems to work for osqp 0.6.0. Do you have a solution for osqp 0.4.0? Lastly, could you please tell me how to use different versions of osqp for different functions within the same program?

traversaro commented 9 months ago

osqp 0.4.0 was release in July 2018, while the earliest release of osqp-eigen is from 2019 (see https://github.com/robotology/osqp-eigen/releases/tag/v0.3.0 ). If that does not work with osqp 0.4.0, then we do not have anything that works with osqp 0.4.0 .

Lastly, could you please tell me how to use different versions of osqp for different functions within the same program?

Unless you drastically modify different version of osqp to have different symbol names for their functions, I do not think that it is possible, at least on ELF platforms. Why are you interested in that? Perhaps if you explain more of your problem perhaps somebody can suggest an alternative solution.

traversaro commented 8 months ago

@james1kobby are you still interested in this issue? If not, probably we can close it, thanks!

james1kobby commented 8 months ago

My project has code that uses apollo, which involves the use of osqp 0.4.0, I would like to ask you if this osqp-eigen can be used in the same project as osqp 0.4.0

traversaro commented 8 months ago

I see. In that case I think the only thing you can do is either to modify Apollo to use a modern osqp or modify osqp-eigen to use an older osqp.

james1kobby commented 8 months ago

thank you very much! But in that case, I would like to ask you whether you think the success rate of changing a higher version of OSQP to a lower version of OSQP is higher, or whether the success rate of switching from a lower version of OSQP to a higher version of OSQP is higher.

traversaro commented 8 months ago

To be honest, I am not sure. Anyhow, I guess that at some point apollo may want to update their osqp version, so updating apollo to a newer osqp version and proposing it to apollo devs may be more useful in general.