Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catkin_make issue #1

Open
pacrr opened this issue Oct 19, 2024 · 0 comments
Open

Catkin_make issue #1

pacrr opened this issue Oct 19, 2024 · 0 comments

Comments

@pacrr
Copy link

pacrr commented Oct 19, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant