#include <DataRecorder.h>
Public Slots | |
void | addData (const rtabmap::SensorData &data) |
void | showImage (const cv::Mat &image, const cv::Mat &depth) |
Public Member Functions | |
void | closeRecorder () |
DataRecorder (QWidget *parent=0) | |
bool | init (const QString &path, bool recordInRAM=true) |
const QString & | path () const |
virtual | ~DataRecorder () |
Protected Member Functions | |
virtual void | closeEvent (QCloseEvent *event) |
void | handleEvent (UEvent *event) |
Private Attributes | |
int | count_ |
ImageView * | imageView_ |
QLabel * | label_ |
Memory * | memory_ |
UMutex | memoryMutex_ |
QString | path_ |
bool | processingImages_ |
UTimer | timer_ |
int | totalSizeKB_ |
Definition at line 46 of file DataRecorder.h.
rtabmap::DataRecorder::DataRecorder | ( | QWidget * | parent = 0 | ) |
Definition at line 47 of file DataRecorder.cpp.
rtabmap::DataRecorder::~DataRecorder | ( | ) | [virtual] |
Definition at line 117 of file DataRecorder.cpp.
void rtabmap::DataRecorder::addData | ( | const rtabmap::SensorData & | data | ) | [slot] |
Definition at line 123 of file DataRecorder.cpp.
void rtabmap::DataRecorder::closeEvent | ( | QCloseEvent * | event | ) | [protected, virtual] |
Definition at line 161 of file DataRecorder.cpp.
void rtabmap::DataRecorder::closeRecorder | ( | ) |
Definition at line 98 of file DataRecorder.cpp.
void rtabmap::DataRecorder::handleEvent | ( | UEvent * | event | ) | [protected, virtual] |
Method called by the UEventsManager to handle an event. Important : this method must do a minimum of work because the faster the dispatching loop is done; the faster the events are received. If a handling function takes too much time, the events list can grow faster than it is emptied. The event can be modified but must not be deleted.
Implements UEventsHandler.
Definition at line 167 of file DataRecorder.cpp.
bool rtabmap::DataRecorder::init | ( | const QString & | path, |
bool | recordInRAM = true |
||
) |
Definition at line 67 of file DataRecorder.cpp.
const QString& rtabmap::DataRecorder::path | ( | ) | const [inline] |
Definition at line 57 of file DataRecorder.h.
void rtabmap::DataRecorder::showImage | ( | const cv::Mat & | image, |
const cv::Mat & | depth | ||
) | [slot] |
Definition at line 152 of file DataRecorder.cpp.
int rtabmap::DataRecorder::count_ [private] |
Definition at line 74 of file DataRecorder.h.
ImageView* rtabmap::DataRecorder::imageView_ [private] |
Definition at line 69 of file DataRecorder.h.
QLabel* rtabmap::DataRecorder::label_ [private] |
Definition at line 70 of file DataRecorder.h.
Memory* rtabmap::DataRecorder::memory_ [private] |
Definition at line 68 of file DataRecorder.h.
UMutex rtabmap::DataRecorder::memoryMutex_ [private] |
Definition at line 67 of file DataRecorder.h.
QString rtabmap::DataRecorder::path_ [private] |
Definition at line 72 of file DataRecorder.h.
bool rtabmap::DataRecorder::processingImages_ [private] |
Definition at line 73 of file DataRecorder.h.
UTimer rtabmap::DataRecorder::timer_ [private] |
Definition at line 71 of file DataRecorder.h.
int rtabmap::DataRecorder::totalSizeKB_ [private] |
Definition at line 75 of file DataRecorder.h.