tagslam icon indicating copy to clipboard operation
tagslam copied to clipboard

Tagslam needs additional include to build with clang-12 on ubuntu 20.04

Open Brian-Acosta opened this issue 2 years ago • 0 comments

Issue: I get the following error building tagslam on ubuntu 20.04 using clang-12 and clang++-12

/home/brian/tagslam_root/src/tagslam/include/tagslam/sync_and_detect.h:146:46: error: cannot use incomplete type 'rosbag::View' as a range
      for (const rosbag::MessageInstance &m: *view) {
                                             ^
/opt/ros/noetic/include/rosbag/bag.h:96:7: note: forward declaration of 'rosbag::View'
class View;

Solution: add #include <rosbag/view.h> here

Brian-Acosta avatar Dec 12 '22 15:12 Brian-Acosta