Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 #ifndef rqt_image_view__ImageView_H
00036 #define rqt_image_view__ImageView_H
00037
00038 #include <rqt_gui_cpp/plugin.h>
00039
00040 #include <ui_remote_ptam.h>
00041
00042 #include <image_transport/image_transport.h>
00043 #include <sensor_msgs/Image.h>
00044
00045 #include <opencv2/core/core.hpp>
00046
00047 #include <QImage>
00048 #include <QList>
00049 #include <QMutex>
00050 #include <QString>
00051 #include <QSize>
00052 #include <QWidget>
00053
00054 #include <vector>
00055
00056 namespace rqt_ptam {
00057
00058 class RemotePTAM
00059 : public rqt_gui_cpp::Plugin
00060 {
00061
00062 Q_OBJECT
00063
00064 public:
00065
00066 RemotePTAM();
00067
00068 virtual void initPlugin(qt_gui_cpp::PluginContext& context);
00069
00070 virtual bool eventFilter(QObject* watched, QEvent* event);
00071
00072 virtual void shutdownPlugin();
00073
00074 virtual void saveSettings(qt_gui_cpp::Settings& plugin_settings, qt_gui_cpp::Settings& instance_settings) const;
00075
00076 virtual void restoreSettings(const qt_gui_cpp::Settings& plugin_settings, const qt_gui_cpp::Settings& instance_settings);
00077
00078 protected slots:
00079
00080 virtual void updateNamespaceList();
00081
00082 protected:
00083
00084 virtual QList<QString> getTopicList(const QSet<QString>& message_types, const QList<QString>& transports);
00085
00086 virtual void selectTopic(const QString& topic);
00087
00088 protected slots:
00089
00090 virtual void onNamespaceChanged(int index);
00091
00092 virtual void onZoom1(bool checked);
00093
00094 virtual void onSubscribe(bool checked);
00095
00096 virtual void onSpace();
00097
00098 virtual void onReset();
00099
00100 protected:
00101
00102 virtual void callbackImage(const sensor_msgs::Image::ConstPtr& msg);
00103
00104 Ui::RemotePTAMWidget ui_;
00105
00106 QWidget* widget_;
00107
00108 image_transport::Subscriber subscriber_;
00109
00110 ros::Publisher cmd_pub_;
00111
00112 QImage qimage_;
00113 QMutex qimage_mutex_;
00114
00115 cv::Mat conversion_mat_;
00116
00117 };
00118
00119 }
00120
00121 #endif // rqt_image_view__ImageView_H