tagslam
tagslam copied to clipboard
Tagslam needs additional include to build with clang-12 on ubuntu 20.04
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