Ask Your Question
0

catkin_make error when using mavros.

asked 2016-02-22 05:46:23 -0600

Shusen gravatar image

Excuse me, I am using Ubuntu 14.04 and ROS indigo. I downloaded the mavros package from https://github.com/mavlink/mavros.git , to the folder catkin_ws. But when I run catkin_make, it came errors:

CMake Error at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:75 (find_package):
  Could not find a package configuration file provided by "control_toolbox"
  with any of the following names:

    control_toolboxConfig.cmake
    control_toolbox-config.cmake

  Add the installation prefix of "control_toolbox" to CMAKE_PREFIX_PATH or
  set "control_toolbox_DIR" to a directory containing one of the above files.
  If "control_toolbox" provides a separate development package or SDK, be
  sure it has been installed.
Call Stack (most recent call first):
  mavros/test_mavros/CMakeLists.txt:7 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/sen/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/sen/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

why this happened? How can I solve this problem? Thanks a lot if you could help.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2016-02-22 06:04:52 -0600

donmrsir gravatar image

Hi!

There are two different possibilities than can cause this error.

  1. You have not installed the control_toolbox package. To do this the following command should be enough.

    sudo apt-get install ros-indigo-control-toolbox

  2. If this is not the case and you already have installed it. Then there is a problem with the sourcing of that package. You have to make sure that the route where that package is installed is in the $ROS_PACKAGE_PATH. Just do a echo $ROS_PACKAGE_PATH to see the paths in your ROS_PACKAGE_PATH.

I hope this helps!

edit flag offensive delete link more

Comments

Thaks a lot! The first command solved my problem.

Shusen gravatar imageShusen ( 2016-02-22 06:17:59 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-02-22 05:46:23 -0600

Seen: 3,043 times

Last updated: Feb 22 '16