DAIRLab / dairlib

MIT License
76 stars 27 forks source link

How to use precompiled libsnopt.so in dairlib ? #99

Closed JunLi-HIT closed 4 years ago

JunLi-HIT commented 5 years ago

I would like to use snopt. I have got a student version license of it and lib files( .so, .a ). However, the way dairlib provides to set the path for snopt in the README.md is export SNOPT_PATH=/snopt7.6.tar.gz .

How to use snopt in dairlib in case of having snopt7.lic, libsnopt7_cpp.a, and libsnopt7_cpp.so files ? Or could you update the Complete Build Instructions in README.md ?

mposa commented 4 years ago

Great question--unfortunately, I'm not sure whether or not the student version is compatible. We are mimicking Drake's use of snopt. From a quick search over there, it looks as if this may not be possible: https://github.com/RobotLocomotion/drake/issues/8836

For what it's worth, SNOPT is not strictly required. While we use it for our trajectory optimization, it would be fairly easy to remove all SNOPT-specific calls and instead use something open source, like IPOPT.

JunLi-HIT commented 4 years ago

Thank you so much for your guide.