Public Slots | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
rtabmap::DataRecorder Class Reference

#include <DataRecorder.h>

Inheritance diagram for rtabmap::DataRecorder:
Inheritance graph
[legend]

Public Slots

void addData (const rtabmap::SensorData &data, const Transform &pose=Transform(), const cv::Mat &infMatrix=cv::Mat::eye(6, 6, CV_64FC1))
 
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 ()
 
- Public Member Functions inherited from UEventsHandler
void registerToEventsManager ()
 
void unregisterFromEventsManager ()
 
- Public Member Functions inherited from UEventsSender
 UEventsSender ()
 
virtual ~UEventsSender ()
 

Protected Member Functions

virtual void closeEvent (QCloseEvent *event)
 
bool handleEvent (UEvent *event)
 
- Protected Member Functions inherited from UEventsHandler
 UEventsHandler ()
 
virtual ~UEventsHandler ()
 
- Protected Member Functions inherited from UEventsSender
void post (UEvent *event, bool async=true) const
 

Private Attributes

int count_
 
ImageViewimageView_
 
QLabel * label_
 
Memorymemory_
 
UMutex memoryMutex_
 
QString path_
 
bool processingImages_
 
UTimer timer_
 
int totalSizeKB_
 

Detailed Description

Definition at line 46 of file DataRecorder.h.

Constructor & Destructor Documentation

◆ DataRecorder()

rtabmap::DataRecorder::DataRecorder ( QWidget *  parent = 0)

Definition at line 47 of file DataRecorder.cpp.

◆ ~DataRecorder()

rtabmap::DataRecorder::~DataRecorder ( )
virtual

Definition at line 120 of file DataRecorder.cpp.

Member Function Documentation

◆ addData

void rtabmap::DataRecorder::addData ( const rtabmap::SensorData data,
const Transform pose = Transform(),
const cv::Mat infMatrix = cv::Mat::eye(6,6,CV_64FC1) 
)
slot

Definition at line 126 of file DataRecorder.cpp.

◆ closeEvent()

void rtabmap::DataRecorder::closeEvent ( QCloseEvent *  event)
protectedvirtual

Definition at line 165 of file DataRecorder.cpp.

◆ closeRecorder()

void rtabmap::DataRecorder::closeRecorder ( )

Definition at line 101 of file DataRecorder.cpp.

◆ handleEvent()

bool rtabmap::DataRecorder::handleEvent ( UEvent event)
protectedvirtual

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.

Returns
"true" to notify UEventsManager that this handler took ownership of the event (meaning it must delete it). The event will not be dispatched to next handlers.
"false" to let event be dispatched to next handlers (default behavior). UEventsManager will take care of deleting the event.

Implements UEventsHandler.

Definition at line 171 of file DataRecorder.cpp.

◆ init()

bool rtabmap::DataRecorder::init ( const QString &  path,
bool  recordInRAM = true 
)

Definition at line 67 of file DataRecorder.cpp.

◆ path()

const QString& rtabmap::DataRecorder::path ( ) const
inline

Definition at line 57 of file DataRecorder.h.

◆ showImage

void rtabmap::DataRecorder::showImage ( const cv::Mat image,
const cv::Mat depth 
)
slot

Definition at line 156 of file DataRecorder.cpp.

Member Data Documentation

◆ count_

int rtabmap::DataRecorder::count_
private

Definition at line 74 of file DataRecorder.h.

◆ imageView_

ImageView* rtabmap::DataRecorder::imageView_
private

Definition at line 69 of file DataRecorder.h.

◆ label_

QLabel* rtabmap::DataRecorder::label_
private

Definition at line 70 of file DataRecorder.h.

◆ memory_

Memory* rtabmap::DataRecorder::memory_
private

Definition at line 68 of file DataRecorder.h.

◆ memoryMutex_

UMutex rtabmap::DataRecorder::memoryMutex_
private

Definition at line 67 of file DataRecorder.h.

◆ path_

QString rtabmap::DataRecorder::path_
private

Definition at line 72 of file DataRecorder.h.

◆ processingImages_

bool rtabmap::DataRecorder::processingImages_
private

Definition at line 73 of file DataRecorder.h.

◆ timer_

UTimer rtabmap::DataRecorder::timer_
private

Definition at line 71 of file DataRecorder.h.

◆ totalSizeKB_

int rtabmap::DataRecorder::totalSizeKB_
private

Definition at line 75 of file DataRecorder.h.


The documentation for this class was generated from the following files:


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:27