You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I was trying to build the package using the instructions you have published but I unable to resolve this issue:
/media/pacrr/99-quit/orb_ros_ws/src/orbslam3_ros/src/Optimizer.cc:2216:10: warning: variable ‘bShowStats’ set but not used [-Wunused-but-set-variable] 2216 | bool bShowStats = false; | ^~~~~~~~~~ In file included from /usr/include/c++/9/map:61, from /media/pacrr/99-quit/orb_ros_ws/src/orbslam3_ros/Thirdparty/DBoW2/DBoW2/BowVector.h:14, from /media/pacrr/99-quit/orb_ros_ws/src/orbslam3_ros/include/KeyFrame.h:24, from /media/pacrr/99-quit/orb_ros_ws/src/orbslam3_ros/include/MapPoint.h:23, from /media/pacrr/99-quit/orb_ros_ws/src/orbslam3_ros/include/Map.h:23, from /media/pacrr/99-quit/orb_ros_ws/src/orbslam3_ros/include/Optimizer.h:23, from /media/pacrr/99-quit/orb_ros_ws/src/orbslam3_ros/src/Optimizer.cc:20: /usr/include/c++/9/bits/stl_map.h: In instantiation of ‘class std::map<ORB_SLAM3::KeyFrame*, g2o::Sim3, std::less<ORB_SLAM3::KeyFrame*>, Eigen::aligned_allocator<std::pair<const ORB_SLAM3::KeyFrame*, g2o::Sim3> > >’: /media/pacrr/99-quit/orb_ros_ws/src/orbslam3_ros/src/Optimizer.cc:2344:37: required from here /usr/include/c++/9/bits/stl_map.h:122:71: error: static assertion failed: std::map must have the same value_type as its allocator 122 | static_assert(is_same<typename _Alloc::value_type, value_type>::value, | ^~~~~ /media/pacrr/99-quit/orb_ros_ws/src/orbslam3_ros/src/Optimizer.cc: In static member function ‘static void ORB_SLAM3::Optimizer::OptimizeEssentialGraph(ORB_SLAM3::Map*, ORB_SLAM3::KeyFrame*, ORB_SLAM3::KeyFrame*, const KeyFrameAndPose&, const KeyFrameAndPose&, const std::map<ORB_SLAM3::KeyFrame*, std::set<ORB_SLAM3::KeyFrame*> >&, const bool&)’:
Previous to this I had to change CV_LOAD_IMAGE_UNCHANGED to cv::IMREAD_UNCHANGED to resolve another issue, so this might be part of the problem but I am unsure. Any help is greatly appreciated, thanks.
The text was updated successfully, but these errors were encountered:
Hello,
I was trying to build the package using the instructions you have published but I unable to resolve this issue:
/media/pacrr/99-quit/orb_ros_ws/src/orbslam3_ros/src/Optimizer.cc:2216:10: warning: variable ‘bShowStats’ set but not used [-Wunused-but-set-variable] 2216 | bool bShowStats = false; | ^~~~~~~~~~ In file included from /usr/include/c++/9/map:61, from /media/pacrr/99-quit/orb_ros_ws/src/orbslam3_ros/Thirdparty/DBoW2/DBoW2/BowVector.h:14, from /media/pacrr/99-quit/orb_ros_ws/src/orbslam3_ros/include/KeyFrame.h:24, from /media/pacrr/99-quit/orb_ros_ws/src/orbslam3_ros/include/MapPoint.h:23, from /media/pacrr/99-quit/orb_ros_ws/src/orbslam3_ros/include/Map.h:23, from /media/pacrr/99-quit/orb_ros_ws/src/orbslam3_ros/include/Optimizer.h:23, from /media/pacrr/99-quit/orb_ros_ws/src/orbslam3_ros/src/Optimizer.cc:20: /usr/include/c++/9/bits/stl_map.h: In instantiation of ‘class std::map<ORB_SLAM3::KeyFrame*, g2o::Sim3, std::less<ORB_SLAM3::KeyFrame*>, Eigen::aligned_allocator<std::pair<const ORB_SLAM3::KeyFrame*, g2o::Sim3> > >’: /media/pacrr/99-quit/orb_ros_ws/src/orbslam3_ros/src/Optimizer.cc:2344:37: required from here /usr/include/c++/9/bits/stl_map.h:122:71: error: static assertion failed: std::map must have the same value_type as its allocator 122 | static_assert(is_same<typename _Alloc::value_type, value_type>::value, | ^~~~~ /media/pacrr/99-quit/orb_ros_ws/src/orbslam3_ros/src/Optimizer.cc: In static member function ‘static void ORB_SLAM3::Optimizer::OptimizeEssentialGraph(ORB_SLAM3::Map*, ORB_SLAM3::KeyFrame*, ORB_SLAM3::KeyFrame*, const KeyFrameAndPose&, const KeyFrameAndPose&, const std::map<ORB_SLAM3::KeyFrame*, std::set<ORB_SLAM3::KeyFrame*> >&, const bool&)’:
Previous to this I had to change
CV_LOAD_IMAGE_UNCHANGED
tocv::IMREAD_UNCHANGED
to resolve another issue, so this might be part of the problem but I am unsure. Any help is greatly appreciated, thanks.The text was updated successfully, but these errors were encountered: