31 #include <QFileDialog> 43 bool log_messages_found =
true;
54 qWarning(
"Could not find any messages on either '/rosout' or '/rosout_agg' in bag file '%s'",
55 filename.toStdString().c_str());
56 log_messages_found =
false;
60 if (log_messages_found)
64 for(iter = view.
begin(); iter != view.
end(); ++iter)
66 rosgraph_msgs::LogConstPtr log = iter->instantiate<rosgraph_msgs::Log>();
71 qWarning(
"Got a message that was not a log message but a: %s", iter->getDataType().c_str());
81 QString filename = QFileDialog::getOpenFileName(NULL,
84 tr(
"Bag Files (*.bag)"));
void open(std::string const &filename, uint32_t mode=bagmode::Read)
void logReceived(const rosgraph_msgs::LogConstPtr &msg)
void addQuery(Bag const &bag, ros::Time const &start_time=ros::TIME_MIN, ros::Time const &end_time=ros::TIME_MAX)
void readBagFile(const QString &filename)