ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

CMakeError: package configuration by moveit_common

asked 2021-12-10 04:16:05 -0600

Spyros gravatar image

I have a package that uses moveit2 and when I try to build it with colcon build I get the following error:

CMake Error at CMakeLists.txt:28 (find_package):
  By not providing "Findmoveit_common.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "moveit_common", but CMake did not find one.

  Could not find a package configuration file provided by "moveit_common"
  with any of the following names:

    moveit_commonConfig.cmake
    moveit_common-config.cmake

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

I tried to uninstall and install moveit with the command: sudo apt install ros-foxy-moveit. I sourced the ros environment from the directory I'm calling colcon build: source /opt/ros/foxy/setup.bash. I added <build_depend>moveit_common</build_depend> in my package.xml and find_package(moveit_common REQUIRED) in my CMakeLists.txt. None of those worked I didn't find anything relevant online so far. I don't understand how I can add the installation prefix of moveit_common in my CMAKE_PREFIX_PATH. What is the problem here?

I'm using Ubuntu 20.04, ROS2 Foxy

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-12-20 04:05:10 -0600

Spyros gravatar image

After a long search, I found out that moveit_common is not installed together with moveit. I installed it separately with:

sudo apt install ros-foxy-moveit-common
edit flag offensive delete link more

Comments

Please report this on the MoveIt 2 issue tracker if you feel that package should be installed by default.

gvdhoorn gravatar image gvdhoorn  ( 2021-12-20 05:53:42 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2021-12-10 04:16:05 -0600

Seen: 1,191 times

Last updated: Dec 20 '21