mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
GUI: Updated data recorder action and message info on close
This commit is contained in:
@@ -47,14 +47,17 @@ public:
|
||||
DataRecorder(QWidget * parent = 0);
|
||||
bool init(const QString & path, bool recordInRAM = true);
|
||||
|
||||
void close();
|
||||
void closeRecorder();
|
||||
|
||||
virtual ~DataRecorder();
|
||||
|
||||
const QString & path() const {return path_;}
|
||||
|
||||
public slots:
|
||||
void addData(const rtabmap::SensorData & data);
|
||||
void showImage(const rtabmap::SensorData & data);
|
||||
protected:
|
||||
virtual void closeEvent(QCloseEvent* event);
|
||||
void handleEvent(UEvent * event);
|
||||
|
||||
private:
|
||||
@@ -62,6 +65,7 @@ private:
|
||||
ImageView* imageView_;
|
||||
UTimer timer_;
|
||||
int dataQueue_;
|
||||
QString path_;
|
||||
};
|
||||
|
||||
} /* namespace rtabmap */
|
||||
|
||||
@@ -66,6 +66,7 @@ class DetailedProgressDialog;
|
||||
class TwistGridWidget;
|
||||
class ExportCloudsDialog;
|
||||
class PostProcessingDialog;
|
||||
class DataRecorder;
|
||||
|
||||
class RTABMAPGUI_EXP MainWindow : public QMainWindow, public UEventsHandler
|
||||
{
|
||||
@@ -185,6 +186,7 @@ private slots:
|
||||
void resetOdometry();
|
||||
void triggerNewMap();
|
||||
void dataRecorder();
|
||||
void dataRecorderDestroyed();
|
||||
void updateNodeVisibility(int, bool);
|
||||
|
||||
signals:
|
||||
@@ -260,6 +262,7 @@ private:
|
||||
AboutDialog * _aboutDialog;
|
||||
ExportCloudsDialog * _exportDialog;
|
||||
PostProcessingDialog * _postProcessingDialog;
|
||||
DataRecorder * _dataRecorder;
|
||||
|
||||
QSet<int> _lastIds;
|
||||
int _lastId;
|
||||
|
||||
Reference in New Issue
Block a user