Cmake Error "Could not find a package configuration file provided by "moveit" with any of the following names:"
Hallo everybody, I am new here and have already looked for similiar questions but those solutions didnt fix mine. So my Programm is based on the moveit UR5 tutorial. Now i wanted to move the robot via a node and fix goal position. But the code is not compiling anymore throwing that error. I cant upload an image (> 5 points required) ?? So i copied the terminal. I am running Ros noetic and moveit 1.
I have isntall moviet with "Sudo apt-get install ros-noetic-moveit" and also tried is over source. None work. I hope anybody has an idea Thanks already
Terminal:
Could NOT find moveit (missing: moveit_DIR)
-- Could not find the required component 'moveit'. 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/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "moveit" with any
of the following names:
moveitConfig.cmake
moveit-config.cmake
Add the installation prefix of "moveit" to CMAKE_PREFIX_PATH or set
"moveit_DIR" to a directory containing one of the above files. If "moveit"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
BAC/CMakeLists.txt:10 (find_package)
Try
catkin clean -y && catkin build
, otherwise uninstall and reinstall according to the tutorial instructions.catkin clean didnt work because i cant install catkin_tools (tried all kinds of installation variations) and uninstall and reinstall didnt work either
Sounds like you should fix your catkin_tools installation first. What are you doing for your install and how does it fail? Please add relevant links and details to your question.
I have installed catkin_tools like this awnser propsed https://answers.ros.org/question/3531... After trying catkin build this msg comes: "bash: /usr/local/bin/catkin: No such file or directory" I Have catkin installed and catkin_make works and the WS path is added to the bashrc, if that helps.
That sounds like your
catkin_tools
install was not successful. Cleaning and rebuilding your workspace from scratch (which often solves problems with packages not being linked or found) can also be done withcatkin_make
(was itcatkin_make clean
?), but if you can't runcatkin
, it sounds like your installations might be in disarray and moveit might not be installed correctly either. Has the tutorial worked on your machine before?Yeah that's the weird part everything worked fine. If I restore a backup it works aswell. I am going to try out a fanuc tutorial see if that works.
I fixed it! i was missing a specific line in the cmake.. my bad but thanks for your help appreciate it al ot!!
Instead of closing the question, please post an answer and specify which line you forgot in your CMakeLists.txt, so the next person who has this problem will know what to do.