moveit / moveit_calibration

Hand-eye calibration tools for robot arms.
BSD 3-Clause "New" or "Revised" License
142 stars 79 forks source link

catkin build error in moveit_calibration_gui #107

Open Timbersaw-wangzw opened 2 years ago

Timbersaw-wangzw commented 2 years ago

There are several errors when I build moveit_calibration_gui. The part of the log file is /home/wangziwei/ws_moveit_cal/src/moveit_calibration/moveit_calibration_gui/handeye_calibration_rviz_plugin/src/handeye_context_widget.cpp: In member function ‘void moveit_rviz_plugin::ContextTabWidget::updateAllMarkers()’: /home/wangziwei/ws_moveit_cal/src/moveit_calibration/moveit_calibration_gui/handeye_calibration_rviz_plugin/src/handeye_context_widget.cpp:304:16: error: ‘class rviz_visual_tools::TFVisualTools’ has no member named ‘clearAllTransforms’; did you mean ‘publishAllTransforms’? tf_tools_->clearAllTransforms(); ^~~~~~~~~~~~~~~~~~ publishAllTransforms /home/wangziwei/ws_moveit_cal/src/moveit_calibration/moveit_calibration_gui/handeye_calibration_rviz_plugin/src/handeye_context_widget.cpp:354:81: error: no matching function for call to ‘moveit_visual_tools::MoveItVisualTools::publishMesh(Eigen::Isometry3d&, shape_msgs::Mesh&, rviz_visual_tools::colors, double, const char [4], int)’ visual_tools_->publishMesh(fov_pose_, mesh, rvt::YELLOW, 1.0, "fov", 1); ^ In file included from /home/wangziwei/ws_moveit_cal/src/moveit_calibration/moveit_calibration_gui/handeye_calibration_rviz_plugin/include/moveit/handeye_calibration_rviz_plugin/handeye_context_widget.h:57:0, from /home/wangziwei/ws_moveit_cal/src/moveit_calibration/moveit_calibration_gui/handeye_calibration_rviz_plugin/src/handeye_context_widget.cpp:37: /opt/ros/melodic/include/rviz_visual_tools/rviz_visual_tools.h:829:8: note: candidate: bool rviz_visual_tools::RvizVisualTools::publishMesh(const Isometry3d&, const string&, rviz_visual_tools::colors, double, const string&, std::size_t) bool publishMesh(const Eigen::Isometry3d& pose, const std::string& file_name, colors color = CLEAR, double scale = 1, ^~~~~~~~~~~ /opt/ros/melodic/include/rviz_visual_tools/rviz_visual_tools.h:829:8: note: no known conversion for argument 2 from ‘shape_msgs::Mesh {aka shape_msgs::Mesh_<std::allocator<void> >}’ to ‘const string& {aka const std::__cxx11::basic_string<char>&}’ /opt/ros/melodic/include/rviz_visual_tools/rviz_visual_tools.h:831:8: note: candidate: bool rviz_visual_tools::RvizVisualTools::publishMesh(const Pose&, const string&, rviz_visual_tools::colors, double, const string&, std::size_t) bool publishMesh(const geometry_msgs::Pose& pose, const std::string& file_name, colors color = CLEAR, ^~~~~~~~~~~ /opt/ros/melodic/include/rviz_visual_tools/rviz_visual_tools.h:831:8: note: no known conversion for argument 1 from ‘Eigen::Isometry3d {aka Eigen::Transform<double, 3, 1>}’ to ‘const Pose& {aka const geometry_msgs::Pose_<std::allocator<void> >&}’ Could you help me to solve those errors? Thank you!

snopytas commented 2 years ago

Hi, I had the same issue: You need to compile rviz_visual_tools (master branch) https://github.com/PickNikRobotics/rviz_visual_tools/ from source.

DiegoCarvajal98 commented 2 years ago

I'm getting the same error even after I compiled rviz_visual_tools from source. I hope someone can help.

elishafer commented 1 year ago

@DiegoCarvajal98 have you succeeded compiling?

DiegoCarvajal98 commented 1 year ago

Sorry, it was part of the problem but issue #23 solved everything