ethz-adrl / control-toolbox

The Control Toolbox - An Open-Source C++ Library for Robotics, Optimal and Model Predictive Control
BSD 2-Clause "Simplified" License
1.47k stars 315 forks source link

Building Examples with catkin #205

Open EpicDuckPotato opened 3 years ago

EpicDuckPotato commented 3 years ago

I tried using the catkin instructions here to build the examples: https://ethz-adrl.github.io/ct/ct_doc/doc/html/install_guide.html#build

When I try to run

rosrun ct_optcon ex_NLOC,

I get the error

[rosrun] Couldn't find executable named ex_NLOC below /home/noopygbhat/catkin_ws/src/control-toolbox/ct_optcon

Thoughts?

Nitishg96 commented 3 years ago

Did you solved this error? I am also having this error. I have some findings that might be helpful.

When you run catkin build -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=true

You will have warning that Could not find HPIPM or BLASFEO and that is why optcon examples are not building because it depends on blasfeo. My problem is, I have tried to install all the packages of HPIPM and BLASFEO but I am still getting this warning and that is why when you run rosrun ct_optcon ex_NLOC, the error is coming.

Hope that will help you to find the reason of the error that you are getting. However, I am still finding the solution. Kindly please let me know if you already solved it and how did you do.

haasithp commented 2 years ago

Actually, the executables were commented in /src/control-toolbox/ct_optcon/examples/CMakeLists.txt. So, uncomment them and try building again. That will work.

yuguanfeng commented 2 years ago

It works! Thanks!

phuongboi commented 1 month ago

@haasithp Thank you, I follow the guide but got this error fatal error: coin/IpTNLP.hpp: No such file or directory