Go to the documentation of this file.
38 #include <QtCore/QMetaType>
39 #include <QMessageBox>
40 #include <QtGui/QCloseEvent>
42 #include <QVBoxLayout>
51 label_(new QLabel(
this)),
52 processingImages_(
false),
56 qRegisterMetaType<cv::Mat>(
"cv::Mat");
60 QVBoxLayout * layout =
new QVBoxLayout(
this);
61 layout->setContentsMargins(0,0,0,0);
64 layout->setStretch(0,1);
65 this->setLayout(layout);
73 customParameters.insert(
ParametersPair(Parameters::kMemRehearsalSimilarity(),
"1.0"));
74 customParameters.insert(
ParametersPair(Parameters::kKpMaxFeatures(),
"-1"));
75 customParameters.insert(
ParametersPair(Parameters::kMemBinDataKept(),
"true"));
76 customParameters.insert(
ParametersPair(Parameters::kMemMapLabelsAdded(),
"false"));
77 customParameters.insert(
ParametersPair(Parameters::kMemBadSignaturesIgnored(),
"true"));
78 customParameters.insert(
ParametersPair(Parameters::kMemIntermediateNodeDataKept(),
"true"));
81 customParameters.insert(
ParametersPair(Parameters::kDbSqlite3InMemory(),
"false"));
88 UERROR(
"Error initializing the memory.");
96 UERROR(
"Already initialized, close it first.");
108 UINFO(
"Data recorded to \"%s\".", this->
path().toStdString().
c_str());
114 if(this->isVisible())
116 QMessageBox::information(
this, tr(
"Data recorder"), tr(
"Data recorded to \"%1\".").
arg(this->
path()));
134 customParameters.insert(
ParametersPair(Parameters::kMemGenerateIds(),
"false"));
144 totalSizeKB_ += (
int)
s->sensorData().laserScanCompressed().data().total()/1000;
191 QMetaObject::invokeMethod(
this,
"showImage",
std::pair< std::string, std::string > ParametersPair
void setImageDepthShown(bool shown)
bool init(const QString &path, bool recordInRAM=true)
const std::set< int > & getStMem() const
DataRecorder(QWidget *parent=0)
const QString & path() const
bool handleEvent(UEvent *event)
std::map< std::string, std::string > ParametersMap
const Signature * getLastWorkingSignature() const
virtual void closeEvent(QCloseEvent *event)
void setImage(const QImage &image, const std::vector< CameraModel > &models=std::vector< CameraModel >(), const Transform &pose=Transform())
bool init(const std::string &dbUrl, bool dbOverwritten=false, const ParametersMap ¶meters=ParametersMap(), bool postInitClosingEvents=false)
virtual std::string getClassName() const =0
bool update(const SensorData &data, Statistics *stats=0)
void unregisterFromEventsManager()
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
void setImageDepth(const cv::Mat &imageDepth)
const cv::Mat & imageRaw() const
ULogger class and convenient macros.
const SensorCaptureInfo & info() const
const SensorData & data() const
const char * c_str(Args &&...args)
virtual void parseParameters(const ParametersMap ¶meters)
QImage uCvMat2QImage(const cv::Mat &image, bool isBgr=true, uCvQtDepthColorMap colorMap=uCvQtDepthWhiteToBlack, float depthMin=0, float depthMax=0)
const cv::Mat & depthOrRightRaw() const
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)
rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:08