Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find a package configuration file provided by "trajopt" #342

Open
mohamedsayed18 opened this issue Apr 16, 2021 · 1 comment
Open

Comments

@mohamedsayed18
Copy link

I tried to build the trajopt first using catkin build trajoptand it built successfully
then I tried to build the whole workspace using catkin build I got the following error

Errors     << pick_and_place:cmake /media/mohamed/C03CCDB43CCDA62E/work/Mx3D/optimized_planning_ws/logs/pick_and_place/build.cmake.003.log   
CMake Warning (dev) at CMakeLists.txt:2 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    CMAKE_PROJECT_VERSION
    CMAKE_PROJECT_VERSION_MAJOR
    CMAKE_PROJECT_VERSION_MINOR
    CMAKE_PROJECT_VERSION_PATCH
This warning is for project developers.  Use -Wno-dev to suppress it.

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

    trajoptConfig.cmake
    trajopt-config.cmake

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


cd /media/mohamed/C03CCDB43CCDA62E/work/Mx3D/optimized_planning_ws/build/pick_and_place; catkin build --get-env pick_and_place | catkin env -si  /usr/bin/cmake /media/mohamed/C03CCDB43CCDA62E/work/Mx3D/optimized_planning_ws/src/pick_and_place --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/media/mohamed/C03CCDB43CCDA62E/work/Mx3D/optimized_planning_ws/devel/.private/pick_and_place -DCMAKE_INSTALL_PREFIX=/media/mohamed/C03CCDB43CCDA62E/work/Mx3D/optimized_planning_ws/install; cd -
.............................................................................................................................................
Failed     << pick_and_place:cmake                            [ Exited with code 1 ]                                                         
Failed    <<< pick_and_place                                  [ 2.1 seconds ]                                                                
Abandoned <<< tesseract_geometry                              [ Unrelated job failed ]                                                       
Abandoned <<< tesseract_scene_graph                           [ Unrelated job failed ]                                                       
Abandoned <<< tesseract_collision                             [ Unrelated job failed ]                                                       
Abandoned <<< tesseract_urdf                                  [ Unrelated job failed ]                                                       
Abandoned <<< tesseract_kinematics                            [ Unrelated job failed ]                                                       
Abandoned <<< tesseract_environment                           [ Unrelated job failed ]                                                       
Abandoned <<< tesseract_visualization                         [ Unrelated job failed ]                                                       
Abandoned <<< trajopt                                         [ Unrelated job failed ]                                                       
Abandoned <<< trajopt_ifopt                                   [ Unrelated job failed ]                                                       
Abandoned <<< trajopt_sqp                                     [ Unrelated job failed ]                                                       
Abandoned <<< trajopt_tools                                   [ Unrelated job failed ]                                                       
Finished  <<< tesseract_support                               [ 0.8 seconds ]                                                                
_____________________________________________________________________________________________________________________________________________
Warnings   << vhacd:check /media/mohamed/C03CCDB43CCDA62E/work/Mx3D/optimized_planning_ws/logs/vhacd/build.check.001.log                     
NO_OPENCL OFF
cd /media/mohamed/C03CCDB43CCDA62E/work/Mx3D/optimized_planning_ws/build/vhacd; catkin build --get-env vhacd | catkin env -si  /usr/bin/make cmake_check_build_system; cd -
.............................................................................................................................................
Finished  <<< trajopt_sco                                     [ 1.3 seconds ]                                                                
Finished  <<< vhacd                                           [ 5.1 seconds ]                                                                
[build] Summary: 13 of 25 packages succeeded.                                                                                                
[build]   Ignored:   None.                                                                                                                   
[build]   Warnings:  1 packages succeeded with warnings.                                                                                     
[build]   Abandoned: 11 packages were abandoned.                                                                                             
[build]   Failed:    1 packages failed.                                                                                                      
[build] Runtime: 10.5 seconds total.

I checked if the file exist using find . -iname "trajopt-config*"

./build/trajopt/trajopt-config-version.cmake
./build/trajopt/trajopt-config.cmake
./devel/lib/cmake/trajopt/trajopt-config-version.cmake
./devel/lib/cmake/trajopt/trajopt-config.cmake
./src/trajopt_ros/trajopt/cmake/trajopt-config.cmake.in
@mohamedsayed18
Copy link
Author

I solved the problem by setting the trajopt_DIR in the pick_and_place/CMakeLists.txt as follows

set(trajopt_DIR /media/mohamed/C03CCDB43CCDA62E/work/optimized_planning_ws/src/trajopt_ros/trajopt)
find_package(trajopt REQUIRED)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant