moveit / moveit_visual_tools

Helper functions for displaying and debugging MoveIt! data in Rviz via published markers
BSD 3-Clause "New" or "Revised" License
151 stars 102 forks source link

Install error #10

Closed LongfeiProjects closed 7 years ago

LongfeiProjects commented 8 years ago

Hello,

I was trying to install and use moveit_visual_tools package. Though I have Eigen3 installed under "/usr/include/eigen3", I failed with following error message:

By not providing "FindEigen3.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Eigen3", but CMake did not find one.

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

Eigen3Config.cmake eigen3-config.cmake Add the installation prefix of "Eigen3" to CMAKE_PREFIX_PATH or set "Eigen3_DIR" to a directory containing one of the above files. If "Eigen3" provides a separate development package or SDK, be sure it has been installed.

To fix this error, I followed the instruction here: https://github.com/ros-perception/perception_pcl/issues/106

After modify the CmakeLists file, I got the following error:

/home/lzhao/catkin_ws/src/moveit_visual_tools/src/moveit_visual_tools.cpp: In member function ‘bool moveit_visual_tools::MoveItVisualTools::publishTrajectoryLine(const robottrajectory::RobotTrajectory&, const moveit::core::LinkModel, const rviz_visual_tools::colors&)’: /home/lzhao/catkin_ws/src/moveit_visual_tools/src/moveit_visual_tools.cpp:1198:34: error: no matching function for call to ‘moveit_visual_tools::MoveItVisualTools::publishPath(EigenSTL::vector_Vector3d&, const rviz_visual_tools::colors&, const double&)’ publishPath(path, color, radius); ^ /home/lzhao/catkin_ws/src/moveit_visual_tools/src/moveit_visual_tools.cpp:1198:34: note: candidates are: In file included from /home/lzhao/catkin_ws/src/moveit_visual_tools/include/moveit_visual_tools/moveit_visual_tools.h:44:0, from /home/lzhao/catkin_ws/src/moveit_visual_tools/src/moveit_visual_tools.cpp:38: /opt/ros/indigo/include/rviz_visual_tools/rviz_visual_tools.h:581:8: note: bool rviz_visual_tools::RvizVisualTools::publishPath(const std::vector<geometrymsgs::Point<std::allocator > >&, const rviz_visual_tools::colors&, const rviz_visual_tools::scales&, const string&) bool publishPath(const std::vector &path, const colors &color = RED, ^ /opt/ros/indigo/include/rviz_visual_tools/rviz_visual_tools.h:581:8: note: no known conversion for argument 1 from ‘EigenSTL::vector_Vector3d {aka std::vector<Eigen::Matrix<double, 3, 1>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1> > >}’ to ‘const std::vector<geometrymsgs::Point<std::allocator > >&’ /opt/ros/indigo/include/rviz_visual_tools/rviz_visual_tools.h:584:8: note: bool rviz_visual_tools::RvizVisualTools::publishPath(const std::vector<Eigen::Matrix<double, 3, 1> >&, const rviz_visual_tools::colors&, double, const string&) bool publishPath(const std::vectorEigen::Vector3d &path, const colors &color = RED, ^ /opt/ros/indigo/include/rviz_visual_tools/rviz_visual_tools.h:584:8: note: no known conversion for argument 1 from ‘EigenSTL::vector_Vector3d {aka std::vector<Eigen::Matrix<double, 3, 1>, Eigen::alignedallocator<Eigen::Matrix<double, 3, 1> > >}’ to ‘const std::vector<Eigen::Matrix<double, 3, 1> >&’ make[2]: ** [moveit_visual_tools/CMakeFiles/moveit_visual_tools.dir/src/moveit_visual_tools.cpp.o] Error 1 make[1]: * [moveit_visual_tools/CMakeFiles/moveit_visual_tools.dir/all] Error 2 make[1]: * Waiting for unfinished jobs....

Do you have any idea on a quick fix?

davetcoleman commented 8 years ago

what ROS version?

LongfeiProjects commented 8 years ago

Hello, I am running on a Ubuntu 14.04, and attached the version information from "roscore":

davetcoleman commented 8 years ago

i believe you are using the kinetic-branch of rviz_visual_tools, which will not work with ROS indigo

davetcoleman commented 7 years ago

fyi if you still want to use a newer version of MVT with an older version of ROS, here's the diff to your CMakeLists for the kinetic-devel branch:

-find_package(Eigen3 REQUIRED)
+find_package(PkgConfig)
+pkg_search_module(Eigen3 REQUIRED eigen3)