ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Errror while trying to catkin_make an image_undistort package. Please help what are these errors.

asked 2023-02-02 00:32:52 -0500

mgrallos gravatar image

updated 2023-05-11 04:20:56 -0500

130s gravatar image

Errror while trying to catkin_make an image_undistort package. Please help what are these errors on noetic

/usr/include/boost/mpl/aux_/preprocessed/gcc/minus.hpp:68:8: note:   ‘boost::mpl::minus’
   68 | struct minus
      |        ^~~~~
In file included from /usr/include/pcl-1.10/pcl/point_types.h:44,
                 from /usr/include/pcl-1.10/pcl/common/impl/copy_point.hpp:41,
                 from /usr/include/pcl-1.10/pcl/common/copy_point.h:58,
                 from /usr/include/pcl-1.10/pcl/common/impl/io.hpp:45,
                 from /usr/include/pcl-1.10/pcl/common/io.h:586,
                 from /usr/include/pcl-1.10/pcl/io/file_io.h:41,
                 from /usr/include/pcl-1.10/pcl/io/pcd_io.h:44,
                 from /opt/ros/noetic/include/pcl_conversions/pcl_conversions.h:70,
                 from /home/mariah/tello_ws/src/image_undistort/include/image_undistort/depth.h:10,
                 from /home/mariah/tello_ws/src/image_undistort/src/depth.cpp:1:
/usr/include/pcl-1.10/pcl/point_types.h:678:1: error: ‘minus’ is not a member of ‘pcl::traits’
  678 | POINT_CLOUD_REGISTER_POINT_STRUCT(pcl::PointSurfel,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/pcl-1.10/pcl/point_types.h:678:1: note: suggested alternatives:
In file included from /usr/include/c++/9/string:48,
                 from /opt/ros/noetic/include/ros/platform.h:38,
                 from /opt/ros/noetic/include/ros/time.h:53,
                 from /opt/ros/noetic/include/ros/ros.h:38,
                 from /opt/ros/noetic/include/image_transport/publisher.h:38,
                 from /opt/ros/noetic/include/image_transport/image_transport.h:38,
                 from /home/mariah/tello_ws/src/image_undistort/include/image_undistort/depth.h:4,
                 from /home/mariah/tello_ws/src/image_undistort/src/depth.cpp:1:
/usr/include/c++/9/bits/stl_function.h:177:12: note:   ‘std::minus’
  177 |     struct minus : public binary_function<_Tp, _Tp, _Tp>
      |            ^~~~~
In file included from /usr/include/boost/mpl/aux_/include_preprocessed.hpp:37,
                 from /usr/include/boost/mpl/aux_/arithmetic_op.hpp:34,
                 from /usr/include/boost/mpl/minus.hpp:19,
                 from /usr/include/boost/mpl/vector/aux_/iterator.hpp:20,
                 from /usr/include/boost/mpl/vector/aux_/vector0.hpp:22,
                 from /usr/include/boost/mpl/vector/aux_/clear.hpp:18,
                 from /usr/include/boost/mpl/vector/vector0.hpp:24,
                 from /usr/include/boost/mpl/vector/vector10.hpp:18,
                 from /usr/include/boost/mpl/vector/vector20.hpp:18,
                 from /usr/include/boost/mpl/vector.hpp:36,
                 from /usr/include/boost/math/policies/policy.hpp:14,
                 from /usr/include/boost/math/policies/error_handling.hpp:21,
                 from /usr/include/boost/math/special_functions/round.hpp:14,
                 from /opt/ros/noetic/include/ros/time.h:58,
                 from /opt/ros/noetic/include/ros/ros.h:38,
                 from /opt/ros/noetic/include/image_transport/publisher.h:38,
                 from /opt/ros/noetic/include/image_transport/image_transport.h:38,
                 from /home/mariah/tello_ws/src/image_undistort/include/image_undistort/depth.h:4,
                 from /home/mariah/tello_ws/src/image_undistort/src/depth.cpp:1:
/usr/include/boost/mpl/aux_/preprocessed/gcc/minus.hpp:68:8: note:   ‘boost::mpl::minus’
   68 | struct minus
      |        ^~~~~
In file included from /usr/include/pcl-1.10/pcl/point_types.h:44,
                 from /usr/include/pcl-1.10/pcl/common/impl/copy_point.hpp:41,
                 from /usr/include/pcl-1.10/pcl/common/copy_point.h:58,
                 from /usr/include/pcl-1 ...
(more)
edit retag flag offensive close merge delete

Comments

Web page was struggling in rendering and I found the 2nd half of the post looked like the copy of the 1st half without carriage return, so I removed the 2nd half, sorry. But now at least web page is showing ok.

130s gravatar image 130s  ( 2023-05-11 04:25:17 -0500 )edit

Haven't looked deeper but I see similar issue https://answers.ros.org/question/3727...

130s gravatar image 130s  ( 2023-05-11 04:26:57 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2023-05-11 07:21:41 -0500

Mike Scheutzow gravatar image

error: ‘minus’ is not a member of ‘pcl::traits’

This error means that the image_undistort package source code you are trying to compile is not compatible with libpcl v1.10.

The typical cause of this error is that you have checked out the wrong version of the image_distort package source code. You need the branch/tag which is intended for noetic.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2023-02-02 00:32:52 -0500

Seen: 50 times

Last updated: May 11 '23