HKUST-Aerial-Robotics / Fast-Planner

A Robust and Efficient Trajectory Planner for Quadrotors
GNU General Public License v3.0
2.33k stars 658 forks source link

Migration from catkin_make to catkin build #128

Open Cristian-wp opened 2 years ago

Cristian-wp commented 2 years ago

``Hello, I have already test your planner and is really awesome. But for my project I need to compile my workspace with catkin build instead of catkin_make. Have someone already try this or maybe there is a version that work with catkin build?

When I try to compile it I get this error:

Could NOT find quadrotor_msgs (missing: quadrotor_msgs_DIR)
-- Could not find the required component 'quadrotor_msgs'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "quadrotor_msgs"
  with any of the following names:

    quadrotor_msgsConfig.cmake
    quadrotor_msgs-config.cmake

  Add the installation prefix of "quadrotor_msgs" to CMAKE_PREFIX_PATH or set
  "quadrotor_msgs_DIR" to a directory containing one of the above files.  If
  "quadrotor_msgs" provides a separate development package or SDK, be sure it
  has been installed.

I have already try to compile and install the packages with this repository, but it did not work: https://github.com/HKUST-Aerial-Robotics/plan_utils

If I modify the CMAKE_PREFIX_PATH as suggested, it find the quadrotor_msgs, but it can not fine the basic packages like roscpp anymore...

Can someone help me please?

3zuli commented 2 years ago

Hello, porting to catkin build has been discussed previously, for example in issues #18 and #81 and the pull request https://github.com/HKUST-Aerial-Robotics/Fast-Planner/pull/74. Following those two issues I managed to port it to catkin build and I made a summary patch with the changes that I had to do in order to make it work. I also had similar compile issues with missing Fast-Planner packages/libraries, I had to build those packages one by one (catkin build quadrotor_msgs) until the entire catkin build succeeded. I hope this helps.

Cristian-wp commented 2 years ago

Thank you very much, I try now and let you now!

Cristian-wp commented 2 years ago

It works! Thanks a lot!