PickNikRobotics / rviz_visual_tools

C++ API wrapper for displaying shapes and meshes in Rviz
769 stars 243 forks source link

rviz-visual-tools failed with CMake errors #208

Closed YXGuan closed 2 years ago

YXGuan commented 3 years ago

environment

Hi there,

I have run into some issues when following the Moveit2 Getting Started tutorial. Any help or suggestion will be much appreciated!

After entering the command: colcon build --mixin release

It gives me the error output:

Starting >>> moveit_resources_panda_description
Starting >>> moveit_resources_fanuc_description
Starting >>> rviz_visual_tools
Starting >>> moveit_resources_pr2_description
Finished <<< moveit_resources_fanuc_description [1.03s]
Starting >>> moveit_resources_fanuc_moveit_config
Finished <<< moveit_resources_panda_description [1.06s]
Starting >>> moveit_resources_panda_moveit_config
Finished <<< moveit_resources_pr2_description [1.15s]                 
Finished <<< moveit_resources_fanuc_moveit_config [0.91s]             
Finished <<< moveit_resources_panda_moveit_config [0.92s]
Starting >>> moveit_resources
Finished <<< moveit_resources [0.81s]                                 
--- stderr: rviz_visual_tools                         
CMake Error at CMakeLists.txt:29 (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   <<< rviz_visual_tools [3.64s, exited with code 1]

Summary: 6 packages finished [3.85s]
  1 package failed: rviz_visual_tools
  1 package had stderr output: rviz_visual_tools
  2 packages not processed
larsoss115 commented 2 years ago

Try installing the following:

sudo apt update sudo apt install libeigen-stl-containers-dev

YXGuan commented 2 years ago

Thanks for the help!