#include "mainwindow.h" #include "ui_mainwindow.h" #include "rosbag/bag.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) { ui->setupUi(this); rosbag::Bag bag; try { bag.open("1.bag",rosbag::bagmode::Read); } catch(std::exception& e) { std::cout<<"ERROR! "<