Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem when installing towr & ifopt manually with pure CMake (no ros) #45

Open
awinkler opened this issue Oct 15, 2018 · 1 comment
Open

Comments

@awinkler
Copy link
Member

Ubuntu 14.04
IPOPT v. 3.12.8

Both the IFOPT test passes as well as the ifopt_ipopt binary test (However, there is not Output to the tests)

In addition, all of the programs were compiled from source and not installed using any ROS interface (i.e. all programs were made with cmake).

Edit

Did some more digging, it seems the 'error' lies in the following file when you attempt to solve the NLP:

https://github.com/ethz-adrl/ifopt/blob/master/ifopt_ipopt/src/ipopt_solver.cc

(line 75).

I tested and made the hs_071 test file provided by IPOPT to see if there was something weird with the solve function (since you are essentially calling the OptimizeTNLP line from your code which actually belongs to IPOPT), and this passes as expected. I also tested the ifopt-ipopt test example which also successfully passes, so it seems there must be an issue causing the ipopt solver to not proceed, maybe something wrong with the constraints that is causing it to not even attempt to solve the problem (It is not outputting anything).

Is there a way to verify the ipopt installation source that ifopt was compiled with? I initially downloaded used the command:

sudo apt-get install coinor-libipopt-dev

However, after reading through this thread, I removed the package, so I believe this should remove the library files in /usr/local/... as well, but I'm not so sure of that. I did also add the lines as you suggested in the ~/.bashrc file to export the local installation of IPOPT, so I think this shouldn't be the issue...

Originally posted by @Neotriple in #40 (comment)

@awinkler
Copy link
Member Author

The fact that its not outputting anything is very suspicious. Even if there is an issue with the constraints, something should be printed out. Maybe it's segfaulting, could you run it with gdb to check that and post the error message?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant