control-toolbox icon indicating copy to clipboard operation
control-toolbox copied to clipboard

Building Examples with catkin

Open EpicDuckPotato opened this issue 2 years ago • 3 comments

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?

EpicDuckPotato avatar Aug 27 '21 12:08 EpicDuckPotato

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.

Nitishg96 avatar Sep 06 '21 11:09 Nitishg96

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

haasithp avatar Apr 14 '22 05:04 haasithp

It works! Thanks!

yuguanfeng avatar May 17 '22 11:05 yuguanfeng