moveit2: eigen_stl_containers missing

The geometric_shapes dependency (moveit2.repos) depends on eigen_stl_containers, so does the moveit_core, but this dependency is not mentioned in the .repos file

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (7 by maintainers)

Most upvoted comments

Issue Reproduced on Ubuntu 20.04 LTS during building the workspace

Starting >>> urdfdom_headers Finished <<< urdfdom_headers [0.86s] Starting >>> geometric_shapes — stderr: geometric_shapes CMake Error at CMakeLists.txt:41 (find_package): By not providing “Findeigen_stl_containers.cmake” in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by “eigen_stl_containers”, but CMake did not find one.

Could not find a package configuration file provided by

“eigen_stl_containers” with any of the following names:

eigen_stl_containersConfig.cmake
eigen_stl_containers-config.cmake

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


Failed <<< geometric_shapes [1.41s, exited with code 1] Summary: 1 package finished [2.55s] 1 package failed: geometric_shapes 1 package had stderr output: geometric_shapes 35 packages not processed

@mhubii shall this issue be reopened or use a new issue Thanks

Hi @JafarAbdi,

I believe the above error people are encountering relates to the management of dependencies and how ROS 2 is being built. For instance if I build ROS 2 rolling from source then I would expect to source

~/ros2_rolling/install/local_setup.bash

however, if I subsequently use rosdep to install the dependencies required for building MoveIt 2 the dependent packages will be included at path

/opt/ros/rolling/include/

and hence if I only source

~/ros2_rolling/install/local_setup.bash

before attempting to build MoveIt 2 I will encounter build errors (find_package not finding eigen_stl_containers package).

The MoveIt 2 build guide actually appears to highlight that it only applies to ROS 2 installations from Debian packages. I have opened an issue on this for the guide above in case it is helpful to update the guide with additional details for when ROS 2 is built from source.

If there are additional notes you believe would be useful to include in the guide based on the above I’d be happy to work on a PR for these.

For others visiting this thread due to the build error involving eigen_stl_containers not being found, consider installing ROS 2 via Debian packages as in the guide I found that the MoveIt 2 build worked seamlessly thereafter.