31 #include <QFileDialog> 46 std::vector<std::string> topics;
47 topics.push_back(std::string(
"/rosout"));
52 for(iter = view.
begin(); iter != view.
end(); ++iter)
54 rosgraph_msgs::LogConstPtr log = iter->instantiate<rosgraph_msgs::Log>();
59 qWarning(
"Got a message that was not a log message but a: %s", iter->getDataType().c_str());
68 QString filename = QFileDialog::getOpenFileName(NULL,
71 tr(
"Bag Files (*.bag)"));
void open(std::string const &filename, uint32_t mode=bagmode::Read)
void logReceived(const rosgraph_msgs::LogConstPtr &msg)
void readBagFile(const QString &filename)