whoenig/uav_trajectories

Question about build

imrd1123 opened this issue · 4 comments

Environment:
OS = Ubuntu 20.04
ROS = Noetic
Python = 3.8.10


Hello. I have a question about the build.
I execute the following command.

sudo apt install libnlopt-dev libgoogle-glog-dev
git clone --recursive https://github.com/whoenig/uav_trajectories.git
mkdir uav_trajectories/build
cd uav_trajectories/build
cmake .. 
make

but I get the following error and cannot proceed.
Is the uav_trajectory only available for Ubuntu 16.04?
Also, if you don't mind, could you please point out what I am doing wrong?


Error message 1
I got this when I first ran make.
2021-11-11_004615

Error message 2
I build nlopt.hpp which the cause of the error, separately and add uav_trajectories/mav_trajectory_generation/mav_trajectory_generation/include/mav_trajectory_generation/ directory.
After that, I ran make and the following message came up.
2021-11-11_005429
2021-11-11_005450
2021-11-11_005503

It's not finding nlopt.hpp on your system. What do you mean by "I build nlopt.hpp"?

Sorry for the confusing explanation.
In the first error, I got a message that nlopt.hpp was not found,
so I downloaded it from the official nlopt page and built it separately.
(from https://github.com/stevengj/nlopt)
Then I moved the generated nlopt.hpp to the following directory.
uav_trajectories/mav_trajectory_generation/mav_trajectory_generation/include/mav_trajectory_generation/

In addition, changed the description in line 25 of polynomial_optimization_nonlinear.h from #include <nlopt.hpp> to #include "nlopt.hpp".
Then, I ran make again and got the "Error message 2".

I solved the problem myself.
I was able to install uav-trajectory correctly by re-installing libnlopt-dev, libgoogle-glog-dev again, and rebuilding the nlopt.hpp file and placing it in usr/include.
Thanks for helping me.

Thanks for the feedback!