error creating workspace/mavros error
Hello everyone,
I have been using the install guide from erle robotics and when i try to exectute the following commands (last 3 at the bottom of the guide,after installing gazebo) it works fine until the last one: catkin_make
cd ~/simulation/ros_catkin_ws
source devel/setup.bash
catkin_make
It shows an error message
CMake Error at mavros/libmavconn/cmake/Modules/MavrosMavlink.cmake:4 (find_package):
By not providing "Findmavlink.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "mavlink", but
CMake did not find one.
Could not find a package configuration file provided by "mavlink" with any
of the following names:
mavlinkConfig.cmake
mavlink-config.cmake
Add the installation prefix of "mavlink" to CMAKE_PREFIX_PATH or set
"mavlink_DIR" to a directory containing one of the above files. If
"mavlink" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
mavros/libmavconn/CMakeLists.txt:16 (include)
-- Configuring incomplete, errors occurred!
See also "/home/cyberpunk/simulation/ros_catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/cyberpunk/simulation/ros_catkin_ws/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
#1 EDIT 25/5
I followed the mavros install instructions install instructions (as proposed at one answer) and at step #5 catkin build
it prints out this error message
Errors << test_mavros:cmake /home/cyberpunk/catkin_ws/logs/test_mavros/build.cmake.000.log
CMake Warning at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:76 (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):
CMakeLists.txt:7 (find_package)
CMake Error at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:83 (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):
CMakeLists.txt:7 (find_package)
cd /home/cyberpunk/catkin_ws/build/test_mavros; catkin build --get-env test_mavros | catkin env -si /usr/bin/cmake /home/cyberpunk/catkin_ws/src/mavros/test_mavros --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/cyberpunk/catkin_ws/devel/.private/test_mavros -DCMAKE_INSTALL_PREFIX=/home/cyberpunk/catkin_ws/install; cd -
...............................................................................
Failed << test_mavros:cmake [ Exited with code 1 ]
Failed <<< test_mavros [ 1.0 seconds ]
[build] Summary: 6 of 7 packages succeeded.
[build] Ignored: None.
[build] Warnings: 1 packages succeeded with warnings.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 3 minutes and 4.3 seconds total.
[build] Note: Workspace packages have changed, please re-source setup files to use them.
There is probably more error output that comes with that. Could you add that to your question (please edit it)?
What I suggest is to delete the folder
ros_catkin_ws
and create it , build it again. And if you have the same error report it again here with the steps you follow