dataload_ros.h
Go to the documentation of this file.
1 #ifndef DATALOAD_ROS_H
2 #define DATALOAD_ROS_H
3 
4 #include <QObject>
5 #include <QtPlugin>
6 
7 #include <ros/ros.h>
8 #include <rosbag/bag.h>
9 
11 #include "../dialog_select_ros_topics.h"
12 #include "../RosMsgParsers/ros_parser.h"
13 
14 class DataLoadROS: public DataLoader
15 {
16  Q_OBJECT
17  Q_PLUGIN_METADATA(IID "com.icarustechnology.PlotJuggler.DataLoader" "../dataloader.json")
18  Q_INTERFACES(DataLoader)
19 
20 public:
21  DataLoadROS();
22 
23  virtual const std::vector<const char*>& compatibleFileExtensions() const override;
24 
25  virtual bool readDataFromFile(FileLoadInfo* fileload_info, PlotDataMapRef& destination) override;
26 
27  virtual const char* name() const override { return "DataLoad ROS bags"; }
28 
29  virtual ~DataLoadROS() override;
30 
31  virtual bool xmlSaveState(QDomDocument &doc, QDomElement &parent_element) const override;
32 
33  virtual bool xmlLoadState(const QDomElement &parent_element ) override;
34 
35 protected:
36  void loadSubstitutionRule(QStringList all_topic_names);
37  std::shared_ptr<rosbag::Bag> _bag;
38 
39 private:
41 
42  std::vector<const char*> _extensions;
43 
45 
46  std::vector<std::pair<QString, QString>> getAndRegisterAllTopics();
47 
48  void saveDefaultSettings();
49 
50  void loadDefaultSettings();
51 };
52 
53 #endif // DATALOAD_CSV_H
std::vector< const char * > _extensions
Definition: dataload_ros.h:42
std::vector< std::pair< QString, QString > > getAndRegisterAllTopics()
void saveDefaultSettings()
virtual bool xmlLoadState(const QDomElement &parent_element) override
virtual bool xmlSaveState(QDomDocument &doc, QDomElement &parent_element) const override
RosMessageParser _ros_parser
Definition: dataload_ros.h:40
void loadDefaultSettings()
void loadSubstitutionRule(QStringList all_topic_names)
virtual ~DataLoadROS() override
virtual const std::vector< const char * > & compatibleFileExtensions() const override
virtual const char * name() const override
Definition: dataload_ros.h:27
std::shared_ptr< rosbag::Bag > _bag
Definition: dataload_ros.h:37
DialogSelectRosTopics::Configuration _config
Definition: dataload_ros.h:44
virtual bool readDataFromFile(FileLoadInfo *fileload_info, PlotDataMapRef &destination) override


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:17