HuaYuXiao / Fast-Planner

[RA-L 2019] A Robust and Efficient Trajectory Planner for Quadrotors
GNU General Public License v3.0
1 stars 0 forks source link

call of overloaded ‘hash_combine<bool>(std::size_t&, std::_Bit_iterator::reference)’ is ambiguous #1

Open HuaYuXiao opened 2 months ago

HuaYuXiao commented 2 months ago
In file included from /usr/include/boost/functional/hash.hpp:6,
                 from /usr/include/boost/unordered/unordered_map.hpp:18,
                 from /usr/include/boost/unordered_map.hpp:17,
                 from /opt/ros/noetic/include/tf/tf.h:45,
                 from /opt/ros/noetic/include/tf/transform_listener.h:38,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/include/plan_env/global_point_sdf.h:19,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/include/plan_env/edt_environment.h:13,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/src/edt_environment.cpp:1:
/usr/include/boost/container_hash/hash.hpp: In function ‘std::size_t boost::hash_value(const std::error_code&)’:
/usr/include/boost/container_hash/hash.hpp:545:41: error: call of overloaded ‘hash_combine(std::size_t&, const std::_V2::error_category*)’ is ambiguous
  545 |         hash_combine(seed, &v.category());
      |                                         ^
/usr/include/boost/container_hash/hash.hpp:412:17: note: candidate: ‘void boost::hash_combine(std::size_t&, const T&) [with T = const std::_V2::error_category*; std::size_t = long unsigned int]’
  412 |     inline void hash_combine(std::size_t& seed, T const& v)
      |                 ^~~~~~~~~~~~
In file included from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/ThirdParty/arc_utilities/include/arc_utilities/arc_helpers.hpp:13,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/ThirdParty/sdf_tools/include/sdf_tools/collision_map.hpp:6,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/include/plan_env/edt_environment.h:11,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/src/edt_environment.cpp:1:
/home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/ThirdParty/arc_utilities/include/arc_utilities/eigen_helpers.hpp:20:17: note: candidate: ‘void std::hash_combine(std::size_t&, const T&) [with T = const std::_V2::error_category*; std::size_t = long unsigned int]’
   20 |     inline void hash_combine(std::size_t& seed, const T& v)
      |                 ^~~~~~~~~~~~
In file included from /usr/include/boost/functional/hash.hpp:6,
                 from /usr/include/boost/unordered/unordered_map.hpp:18,
                 from /usr/include/boost/unordered_map.hpp:17,
                 from /opt/ros/noetic/include/tf/tf.h:45,
                 from /opt/ros/noetic/include/tf/transform_listener.h:38,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/include/plan_env/global_point_sdf.h:19,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/include/plan_env/edt_environment.h:13,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/src/edt_environment.cpp:1:
/usr/include/boost/container_hash/hash.hpp: In function ‘std::size_t boost::hash_value(const std::error_condition&)’:
/usr/include/boost/container_hash/hash.hpp:552:41: error: call of overloaded ‘hash_combine(std::size_t&, const std::_V2::error_category*)’ is ambiguous
  552 |         hash_combine(seed, &v.category());
      |                                         ^
/usr/include/boost/container_hash/hash.hpp:412:17: note: candidate: ‘void boost::hash_combine(std::size_t&, const T&) [with T = const std::_V2::error_category*; std::size_t = long unsigned int]’
  412 |     inline void hash_combine(std::size_t& seed, T const& v)
      |                 ^~~~~~~~~~~~
In file included from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/ThirdParty/arc_utilities/include/arc_utilities/arc_helpers.hpp:13,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/ThirdParty/sdf_tools/include/sdf_tools/collision_map.hpp:6,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/include/plan_env/edt_environment.h:11,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/src/edt_environment.cpp:1:
/home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/ThirdParty/arc_utilities/include/arc_utilities/eigen_helpers.hpp:20:17: note: candidate: ‘void std::hash_combine(std::size_t&, const T&) [with T = const std::_V2::error_category*; std::size_t = long unsigned int]’
   20 |     inline void hash_combine(std::size_t& seed, const T& v)
      |                 ^~~~~~~~~~~~
In file included from /usr/include/boost/container_hash/hash.hpp:760,
                 from /usr/include/boost/functional/hash.hpp:6,
                 from /usr/include/boost/unordered/unordered_map.hpp:18,
                 from /usr/include/boost/unordered_map.hpp:17,
                 from /opt/ros/noetic/include/tf/tf.h:45,
                 from /opt/ros/noetic/include/tf/transform_listener.h:38,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/include/plan_env/global_point_sdf.h:19,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/include/plan_env/edt_environment.h:13,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/src/edt_environment.cpp:1:
/usr/include/boost/container_hash/extensions.hpp: In function ‘std::size_t boost::hash_range(std::vector<bool>::iterator, std::vector<bool>::iterator)’:
/usr/include/boost/container_hash/extensions.hpp:82:44: error: call of overloaded ‘hash_combine<bool>(std::size_t&, std::_Bit_iterator::reference)’ is ambiguous
   82 |             hash_combine<bool>(seed, *first);
      |                                            ^
In file included from /usr/include/boost/functional/hash.hpp:6,
                 from /usr/include/boost/unordered/unordered_map.hpp:18,
                 from /usr/include/boost/unordered_map.hpp:17,
                 from /opt/ros/noetic/include/tf/tf.h:45,
                 from /opt/ros/noetic/include/tf/transform_listener.h:38,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/include/plan_env/global_point_sdf.h:19,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/include/plan_env/edt_environment.h:13,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/src/edt_environment.cpp:1:
/usr/include/boost/container_hash/hash.hpp:412:17: note: candidate: ‘void boost::hash_combine(std::size_t&, const T&) [with T = bool; std::size_t = long unsigned int]’
  412 |     inline void hash_combine(std::size_t& seed, T const& v)
      |                 ^~~~~~~~~~~~
In file included from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/ThirdParty/arc_utilities/include/arc_utilities/arc_helpers.hpp:13,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/ThirdParty/sdf_tools/include/sdf_tools/collision_map.hpp:6,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/include/plan_env/edt_environment.h:11,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/src/edt_environment.cpp:1:
/home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/ThirdParty/arc_utilities/include/arc_utilities/eigen_helpers.hpp:20:17: note: candidate: ‘void std::hash_combine(std::size_t&, const T&) [with T = bool; std::size_t = long unsigned int]’
   20 |     inline void hash_combine(std::size_t& seed, const T& v)
      |                 ^~~~~~~~~~~~
In file included from /usr/include/boost/container_hash/hash.hpp:760,
                 from /usr/include/boost/functional/hash.hpp:6,
                 from /usr/include/boost/unordered/unordered_map.hpp:18,
                 from /usr/include/boost/unordered_map.hpp:17,
                 from /opt/ros/noetic/include/tf/tf.h:45,
                 from /opt/ros/noetic/include/tf/transform_listener.h:38,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/include/plan_env/global_point_sdf.h:19,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/include/plan_env/edt_environment.h:13,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/src/edt_environment.cpp:1:
/usr/include/boost/container_hash/extensions.hpp: In function ‘void boost::hash_range(std::size_t&, std::vector<bool>::iterator, std::vector<bool>::iterator)’:
/usr/include/boost/container_hash/extensions.hpp:109:44: error: call of overloaded ‘hash_combine<bool>(std::size_t&, std::_Bit_iterator::reference)’ is ambiguous
  109 |             hash_combine<bool>(seed, *first);
      |                                            ^
In file included from /usr/include/boost/functional/hash.hpp:6,
                 from /usr/include/boost/unordered/unordered_map.hpp:18,
                 from /usr/include/boost/unordered_map.hpp:17,
                 from /opt/ros/noetic/include/tf/tf.h:45,
                 from /opt/ros/noetic/include/tf/transform_listener.h:38,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/include/plan_env/global_point_sdf.h:19,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/include/plan_env/edt_environment.h:13,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/src/edt_environment.cpp:1:
/usr/include/boost/container_hash/hash.hpp:412:17: note: candidate: ‘void boost::hash_combine(std::size_t&, const T&) [with T = bool; std::size_t = long unsigned int]’
  412 |     inline void hash_combine(std::size_t& seed, T const& v)
      |                 ^~~~~~~~~~~~
In file included from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/ThirdParty/arc_utilities/include/arc_utilities/arc_helpers.hpp:13,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/ThirdParty/sdf_tools/include/sdf_tools/collision_map.hpp:6,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/include/plan_env/edt_environment.h:11,
                 from /home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/src/edt_environment.cpp:1:
/home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/ThirdParty/arc_utilities/include/arc_utilities/eigen_helpers.hpp:20:17: note: candidate: ‘void std::hash_combine(std::size_t&, const T&) [with T = bool; std::size_t = long unsigned int]’
   20 |     inline void hash_combine(std::size_t& seed, const T& v)
      |                 ^~~~~~~~~~~~
/home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/src/global_point_sdf.cpp: In member function ‘void dyn_planner::SDFMap_Global::globalcloudCallback(const PointCloud2ConstPtr&)’:
/home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/src/global_point_sdf.cpp:119:19: warning: variable ‘begin_load_pcl’ set but not used [-Wunused-but-set-variable]
  119 |         ros::Time begin_load_pcl = ros::Time::now();
      |                   ^~~~~~~~~~~~~~
/home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/src/global_point_sdf.cpp:141:19: warning: variable ‘begin_collision’ set but not used [-Wunused-but-set-variable]
  141 |         ros::Time begin_collision = ros::Time::now();
      |                   ^~~~~~~~~~~~~~~
/home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/src/global_point_sdf.cpp:147:13: warning: unused variable ‘map_num’ [-Wunused-variable]
  147 |         int map_num{0};
      |             ^~~~~~~
/home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/src/global_point_sdf.cpp:206:13: warning: unused variable ‘num_obstacle_1’ [-Wunused-variable]
  206 |         int num_obstacle_1 = obstacles.size();
      |             ^~~~~~~~~~~~~~
/home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/src/global_point_sdf.cpp:248:19: warning: variable ‘end_sdf_time’ set but not used [-Wunused-but-set-variable]
  248 |         ros::Time end_sdf_time = ros::Time::now();
      |                   ^~~~~~~~~~~~
make[2]: *** [plan_env/CMakeFiles/plan_env.dir/build.make:76: plan_env/CMakeFiles/plan_env.dir/src/edt_environment.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/src/global_point_sdf.cpp: In member function ‘double dyn_planner::SDFMap_Global::evaluateEDTWithGrad(const Vector3d&, double&, Eigen::Vector3d&)’:
/home/hyx020222/catkin_ws/src/Fast-Planner/plan_env/src/global_point_sdf.cpp:70:104: warning: control reaches end of non-void function [-Wreturn-type]
   70 |         std::vector<double> location_gradient_query = sdf_map->GetGradient(pos(0), pos(1), pos(2), true);
      |                                                                                                        ^
make[1]: *** [CMakeFiles/Makefile2:840: plan_env/CMakeFiles/plan_env.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Invoking "make install -j22 -l22" failed
HuaYuXiao commented 2 months ago
find_package(Boost REQUIRED COMPONENTS system)