Cannot catkin build moveit
Hi all,
I try to install moveit on my WSL and return an error after "catkin build". My ubuntu version 18.04 and ROS version is melodic. The error message state that fails to build moveit_visual_tools
Errors << moveit_visual_tools:make /home/andy/ws_moveit/logs/moveit_visual_tools/build.make.005.log
/home/andy/ws_moveit/src/moveit_visual_tools/src/imarker_robot_state.cpp: In member function ‘bool moveit_visual_tools::IMarkerRobotState::setFromPoses(EigenSTL::vector_Affine3d, const moveit::core::JointModelGroup*)’:
/home/andy/ws_moveit/src/moveit_visual_tools/src/imarker_robot_state.cpp:305:88: error: no matching function for call to ‘moveit::core::RobotState::setFromIK(const moveit::core::JointModelGroup*&, const vector_Affine3d&, std::vector<std::__cxx11::basic_string<char> >&, const size_t&, const double&, moveit::core::GroupStateValidityCallbackFn&)’
if (!imarker_state_->setFromIK(group, poses, tips, attempts, timeout, constraint_fn))
^
In file included from /opt/ros/melodic/include/moveit/robot_state/conversions.h:40:0,
from /home/andy/ws_moveit/src/moveit_visual_tools/src/imarker_robot_state.cpp:40:
/opt/ros/melodic/include/moveit/robot_state/robot_state.h:953:8: note: candidate: bool moveit::core::RobotState::setFromIK(const moveit::core::JointModelGroup*, const Pose&, unsigned int, double, const GroupStateValidityCallbackFn&, const kinematics::KinematicsQueryOptions&)
bool setFromIK(const JointModelGroup* group, const geometry_msgs::Pose& pose, unsigned int attempts = 0,
^~~~~~~~~
/opt/ros/melodic/include/moveit/robot_state/robot_state.h:953:8: note: no known conversion for argument 2 from ‘const vector_Affine3d {aka const std::vector<Eigen::Transform<double, 3, 2>, Eigen::aligned_allocator<Eigen::Transform<double, 3, 2> > >}’ to ‘const Pose& {aka const geometry_msgs::Pose_<std::allocator<void> >&}’
/opt/ros/melodic/include/moveit/robot_state/robot_state.h:965:8: note: candidate: bool moveit::core::RobotState::setFromIK(const moveit::core::JointModelGroup*, const Pose&, const string&, unsigned int, double, const GroupStateValidityCallbackFn&, const kinematics::KinematicsQueryOptions&)
bool setFromIK(const JointModelGroup* group, const geometry_msgs::Pose& pose, const std::string& tip,
^~~~~~~~~
/opt/ros/melodic/include/moveit/robot_state/robot_state.h:965:8: note: no known conversion for argument 2 from ‘const vector_Affine3d {aka const std::vector<Eigen::Transform<double, 3, 2>, Eigen::aligned_allocator<Eigen::Transform<double, 3, 2> > >}’ to ‘const Pose& {aka const geometry_msgs::Pose_<std::allocator<void> >&}’
/opt/ros/melodic/include/moveit/robot_state/robot_state.h:977:8: note: candidate: bool moveit::core::RobotState::setFromIK(const moveit::core::JointModelGroup*, const Isometry3d&, unsigned int, double, const GroupStateValidityCallbackFn&, const kinematics::KinematicsQueryOptions&)
bool setFromIK(const JointModelGroup* group, const Eigen::Isometry3d& pose, unsigned int attempts = 0,
^~~~~~~~~
/opt/ros/melodic/include/moveit/robot_state/robot_state.h:977:8: note: no known conversion for argument 2 from ‘const vector_Affine3d {aka const std::vector<Eigen::Transform<double, 3, 2>, Eigen::aligned_allocator<Eigen::Transform<double, 3, 2> > >}’ to ‘const Isometry3d& {aka const Eigen::Transform<double, 3, 1>&}’
/opt/ros/melodic/include/moveit/robot_state/robot_state.h:988:8: note: candidate: bool moveit::core::RobotState::setFromIK(const moveit::core::JointModelGroup*, const Isometry3d&, const string&, unsigned int, double, const GroupStateValidityCallbackFn&, const kinematics::KinematicsQueryOptions&)
bool setFromIK(const JointModelGroup* group, const Eigen::Isometry3d& pose, const std::string& tip,
^~~~~~~~~
/opt/ros/melodic/include/moveit/robot_state/robot_state.h:988:8: note: no known conversion for argument 2 from ‘const vector_Affine3d {aka const std::vector<Eigen::Transform<double, 3, 2>, Eigen::aligned_allocator<Eigen::Transform<double, 3, 2> > >}’ to ‘const Isometry3d& {aka ...
Please copy and paste the compilation error here. Without it, we have no idea what's wrong.
Please edit your question to include the error message (the error is not an answer) and please use the
Performatted text
button (marked101010
) to format the error message so that it is readable.