#include <MainWindow.h>
Public Types | |
enum | State { kIdle, kInitializing, kInitialized, kApplicationClosing, kClosing, kStartingDetection, kDetecting, kPaused, kMonitoring, kMonitoringPaused } |
Public Slots | |
void | openDatabase (const QString &path, const rtabmap::ParametersMap &overridedParameters=rtabmap::ParametersMap()) |
virtual void | processStats (const rtabmap::Statistics &stat) |
void | updateCacheFromDatabase (const QString &path) |
void | updateParameters (const rtabmap::ParametersMap ¶meters) |
Signals | |
void | cameraInfoProcessed () |
void | cameraInfoReceived (const rtabmap::CameraInfo &) |
void | detectionRateChanged (double) |
void | imgRateChanged (double) |
void | loopClosureThrChanged (qreal) |
void | mappingModeChanged (bool) |
void | noMoreImagesReceived () |
void | odometryProcessed () |
void | odometryReceived (const rtabmap::OdometryEvent &, bool) |
void | rtabmapEvent3DMapProcessed () |
void | rtabmapEvent3DMapReceived (const rtabmap::RtabmapEvent3DMap &event) |
void | rtabmapEventInitReceived (int status, const QString &info) |
void | rtabmapGlobalPathEventReceived (const rtabmap::RtabmapGlobalPathEvent &event) |
void | rtabmapGoalStatusEventReceived (int status) |
void | rtabmapLabelErrorReceived (int id, const QString &label) |
void | stateChanged (MainWindow::State) |
void | statsProcessed () |
void | statsReceived (const rtabmap::Statistics &) |
void | thresholdsChanged (int, int) |
void | timeLimitChanged (float) |
void | twistReceived (float x, float y, float z, float roll, float pitch, float yaw, int row, int col) |
Public Member Functions | |
QString | getWorkingDirectory () const |
bool | isDatabaseUpdated () const |
bool | isProcessingOdometry () const |
bool | isProcessingStatistics () const |
bool | isSavedMaximized () const |
MainWindow (PreferencesDialog *prefDialog=0, QWidget *parent=0, bool showSplashScreen=true) | |
void | setMonitoringState (bool pauseChecked=false) |
virtual | ~MainWindow () |
Public Member Functions inherited from UEventsHandler | |
void | registerToEventsManager () |
void | unregisterFromEventsManager () |
Public Member Functions inherited from UEventsSender | |
UEventsSender () | |
virtual | ~UEventsSender () |
Protected Member Functions | |
const std::map< int, std::pair< pcl::PointCloud< pcl::PointXYZRGB >::Ptr, pcl::IndicesPtr > > & | cachedClouds () const |
const QMap< int, Signature > & | cachedSignatures () const |
virtual void | closeEvent (QCloseEvent *event) |
rtabmap::CloudViewer * | cloudViewer () const |
virtual Camera * | createCamera (Camera **odomSensor, Transform &odomSensorExtrinsics, double &odomSensorTimeOffset, float &odomSensorScaleFactor) |
const std::map< int, pcl::PointCloud< pcl::PointXYZRGB >::Ptr > & | createdFeatures () const |
const std::map< int, LaserScan > & | createdScans () const |
const std::map< int, Transform > & | currentGTPosesMap () const |
const std::map< int, std::string > & | currentLabels () const |
const std::multimap< int, Link > & | currentLinksMap () const |
const std::map< int, int > & | currentMapIds () const |
const std::map< int, Transform > & | currentPosesMap () const |
std::map< int, Transform > | currentVisiblePosesMap () const |
virtual bool | eventFilter (QObject *obj, QEvent *event) |
virtual ParametersMap | getCustomParameters () |
virtual bool | handleEvent (UEvent *anEvent) |
virtual void | keyPressEvent (QKeyEvent *event) |
rtabmap::LoopClosureViewer * | loopClosureViewer () const |
virtual void | moveEvent (QMoveEvent *anEvent) |
const QString & | newDatabasePathOutput () const |
const rtabmap::OccupancyGrid * | occupancyGrid () const |
const rtabmap::OctoMap * | octomap () const |
void | postProcessing (bool refineNeighborLinks, bool refineLoopClosureLinks, bool detectMoreLoopClosures, double clusterRadius, double clusterAngle, int iterations, bool interSession, bool intraSession, bool sba, int sbaIterations, double sbaVariance, Optimizer::Type sbaType, double sbaRematchFeatures, bool abortIfDataMissing=true) |
rtabmap::ProgressDialog * | progressDialog () |
virtual void | resizeEvent (QResizeEvent *anEvent) |
void | setCloudViewer (rtabmap::CloudViewer *cloudViewer) |
void | setLoopClosureViewer (rtabmap::LoopClosureViewer *loopClosureViewer) |
void | setNewDatabasePathOutput (const QString &newDatabasePathOutput) |
virtual void | showEvent (QShowEvent *anEvent) |
const State & | state () const |
Ui_mainWindow * | ui () |
Protected Member Functions inherited from UEventsHandler | |
UEventsHandler () | |
virtual | ~UEventsHandler () |
Protected Member Functions inherited from UEventsSender | |
void | post (UEvent *event, bool async=true) const |
Private Member Functions | |
Transform | alignPosesToGroundTruth (const std::map< int, Transform > &poses, const std::map< int, Transform > &groundTruth) |
void | applyPrefSettings (const rtabmap::ParametersMap ¶meters, bool postParamEvent) |
QString | captureScreen (bool cacheInRAM=false, bool png=true) |
std::pair< pcl::PointCloud< pcl::PointXYZRGB >::Ptr, pcl::IndicesPtr > | createAndAddCloudToMap (int nodeId, const Transform &pose, int mapId) |
void | createAndAddFeaturesToMap (int nodeId, const Transform &pose, int mapId) |
void | createAndAddScanToMap (int nodeId, const Transform &pose, int mapId) |
void | drawKeypoints (const std::multimap< int, cv::KeyPoint > &refWords, const std::multimap< int, cv::KeyPoint > &loopWords) |
void | drawLandmarks (cv::Mat &image, const Signature &signature) |
void | exportPoses (int format) |
void | loadFigures () |
void | saveFigures () |
void | setupMainLayout (bool vertical) |
void | update3DMapVisibility (bool cloudsShown, bool scansShown) |
void | updateMapCloud (const std::map< int, Transform > &poses, const std::multimap< int, Link > &constraints, const std::map< int, int > &mapIds, const std::map< int, std::string > &labels, const std::map< int, Transform > &groundTruths, const std::map< int, Transform > &odomCachePoses=std::map< int, Transform >(), const std::multimap< int, Link > &odomCacheConstraints=std::multimap< int, Link >(), bool verboseProgress=false, std::map< std::string, float > *stats=0) |
void | updateSelectSourceMenu () |
Definition at line 79 of file MainWindow.h.
Enumerator | |
---|---|
kIdle | |
kInitializing | |
kInitialized | |
kApplicationClosing | |
kClosing | |
kStartingDetection | |
kDetecting | |
kPaused | |
kMonitoring | |
kMonitoringPaused |
Definition at line 84 of file MainWindow.h.
rtabmap::MainWindow::MainWindow | ( | PreferencesDialog * | prefDialog = 0 , |
QWidget * | parent = 0 , |
||
bool | showSplashScreen = true |
||
) |
prefDialog | If NULL, a default dialog is created. This dialog is automatically destroyed with the MainWindow. |
Definition at line 137 of file MainWindow.cpp.
|
virtual |
Definition at line 691 of file MainWindow.cpp.
|
private |
Definition at line 4291 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7302 of file MainWindow.cpp.
|
protectedslot |
Definition at line 4746 of file MainWindow.cpp.
|
protectedslot |
Definition at line 4811 of file MainWindow.cpp.
|
private |
Definition at line 4816 of file MainWindow.cpp.
|
protectedslot |
Definition at line 5245 of file MainWindow.cpp.
|
inlineprotected |
Definition at line 298 of file MainWindow.h.
|
inlineprotected |
Definition at line 291 of file MainWindow.h.
|
signal |
|
signal |
|
protectedslot |
Definition at line 7138 of file MainWindow.cpp.
|
protectedslot |
Definition at line 5250 of file MainWindow.cpp.
Definition at line 5204 of file MainWindow.cpp.
|
protectedslot |
Definition at line 5189 of file MainWindow.cpp.
|
protectedslot |
Definition at line 5184 of file MainWindow.cpp.
|
protectedslot |
Definition at line 5199 of file MainWindow.cpp.
|
protectedvirtualslot |
Definition at line 8186 of file MainWindow.cpp.
|
protectedslot |
Definition at line 5194 of file MainWindow.cpp.
|
protectedvirtualslot |
Definition at line 7312 of file MainWindow.cpp.
|
protectedvirtualslot |
Definition at line 5510 of file MainWindow.cpp.
|
protectedvirtual |
Definition at line 745 of file MainWindow.cpp.
|
inlineprotected |
Definition at line 306 of file MainWindow.h.
|
protectedslot |
Definition at line 5256 of file MainWindow.cpp.
|
private |
Definition at line 3487 of file MainWindow.cpp.
|
private |
Definition at line 4173 of file MainWindow.cpp.
|
private |
Definition at line 3862 of file MainWindow.cpp.
|
protectedvirtual |
Definition at line 5599 of file MainWindow.cpp.
|
inlineprotected |
Definition at line 300 of file MainWindow.h.
|
inlineprotected |
Definition at line 299 of file MainWindow.h.
|
inlineprotected |
Definition at line 293 of file MainWindow.h.
|
inlineprotected |
Definition at line 297 of file MainWindow.h.
|
inlineprotected |
Definition at line 295 of file MainWindow.h.
|
inlineprotected |
Definition at line 296 of file MainWindow.h.
|
inlineprotected |
Definition at line 292 of file MainWindow.h.
|
protected |
Definition at line 716 of file MainWindow.cpp.
|
protectedslot |
Definition at line 8124 of file MainWindow.cpp.
|
protectedslot |
Definition at line 8169 of file MainWindow.cpp.
|
protectedvirtualslot |
Definition at line 6882 of file MainWindow.cpp.
|
protectedslot |
Definition at line 6866 of file MainWindow.cpp.
|
signal |
|
protectedvirtualslot |
Definition at line 7213 of file MainWindow.cpp.
|
protectedvirtualslot |
Definition at line 7257 of file MainWindow.cpp.
|
private |
Definition at line 4863 of file MainWindow.cpp.
|
private |
Definition at line 5019 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7066 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7071 of file MainWindow.cpp.
|
protectedslot |
Definition at line 5556 of file MainWindow.cpp.
|
protectedvirtual |
Definition at line 5129 of file MainWindow.cpp.
|
protectedslot |
Definition at line 8044 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7727 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7657 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7840 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7802 of file MainWindow.cpp.
|
private |
Definition at line 6096 of file MainWindow.cpp.
|
protectedslot |
Definition at line 6091 of file MainWindow.cpp.
|
protectedslot |
Definition at line 6083 of file MainWindow.cpp.
|
protectedslot |
Definition at line 6067 of file MainWindow.cpp.
|
protectedslot |
Definition at line 6075 of file MainWindow.cpp.
|
protectedslot |
Definition at line 6079 of file MainWindow.cpp.
|
protectedslot |
Definition at line 6071 of file MainWindow.cpp.
|
protectedslot |
Definition at line 6087 of file MainWindow.cpp.
|
protectedslot |
Definition at line 6035 of file MainWindow.cpp.
|
inlineprotectedvirtual |
Definition at line 315 of file MainWindow.h.
QString rtabmap::MainWindow::getWorkingDirectory | ( | ) | const |
Definition at line 6915 of file MainWindow.cpp.
|
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.
Implements UEventsHandler.
Definition at line 840 of file MainWindow.cpp.
|
signal |
|
inline |
Definition at line 112 of file MainWindow.h.
|
inline |
Definition at line 110 of file MainWindow.h.
|
inline |
Definition at line 109 of file MainWindow.h.
|
inline |
Definition at line 107 of file MainWindow.h.
|
protectedvirtual |
Definition at line 5120 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7146 of file MainWindow.cpp.
|
private |
Definition at line 7420 of file MainWindow.cpp.
|
signal |
|
inlineprotected |
Definition at line 307 of file MainWindow.h.
|
signal |
|
protectedvirtual |
Definition at line 5099 of file MainWindow.cpp.
|
protectedvirtualslot |
Definition at line 5305 of file MainWindow.cpp.
|
inlineprotected |
Definition at line 313 of file MainWindow.h.
|
signal |
|
protectedslot |
Definition at line 6009 of file MainWindow.cpp.
|
inlineprotected |
Definition at line 302 of file MainWindow.h.
|
inlineprotected |
Definition at line 303 of file MainWindow.h.
|
signal |
|
signal |
|
slot |
Definition at line 5404 of file MainWindow.cpp.
|
protectedvirtualslot |
Definition at line 5395 of file MainWindow.cpp.
|
protectedvirtualslot |
Definition at line 7380 of file MainWindow.cpp.
|
protectedvirtualslot |
Definition at line 7453 of file MainWindow.cpp.
|
protectedvirtualslot |
Definition at line 7459 of file MainWindow.cpp.
|
protectedslot |
Definition at line 6920 of file MainWindow.cpp.
|
protectedvirtualslot |
Definition at line 5913 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7111 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7119 of file MainWindow.cpp.
|
protected |
Definition at line 6308 of file MainWindow.cpp.
|
protectedslot |
Definition at line 6016 of file MainWindow.cpp.
|
protectedslot |
Definition at line 981 of file MainWindow.cpp.
|
protectedslot |
Definition at line 1003 of file MainWindow.cpp.
|
protectedslot |
Definition at line 4546 of file MainWindow.cpp.
|
protectedslot |
Definition at line 4420 of file MainWindow.cpp.
|
protectedslot |
Definition at line 4663 of file MainWindow.cpp.
|
protectedslot |
Definition at line 4737 of file MainWindow.cpp.
|
protectedslot |
Definition at line 4722 of file MainWindow.cpp.
|
virtualslot |
Definition at line 1892 of file MainWindow.cpp.
|
inlineprotected |
Definition at line 305 of file MainWindow.h.
|
protectedslot |
Definition at line 7157 of file MainWindow.cpp.
|
protectedvirtualslot |
Definition at line 8112 of file MainWindow.cpp.
|
protectedvirtual |
Definition at line 5112 of file MainWindow.cpp.
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
protectedvirtualslot |
Definition at line 5284 of file MainWindow.cpp.
|
private |
Definition at line 7401 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7056 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7061 of file MainWindow.cpp.
|
protectedslot |
Definition at line 6969 of file MainWindow.cpp.
|
protectedslot |
Definition at line 6989 of file MainWindow.cpp.
|
protectedslot |
Definition at line 6999 of file MainWindow.cpp.
|
protectedslot |
Definition at line 6994 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7051 of file MainWindow.cpp.
|
protectedslot |
Definition at line 6964 of file MainWindow.cpp.
|
protectedslot |
Definition at line 6984 of file MainWindow.cpp.
|
protectedslot |
Definition at line 6974 of file MainWindow.cpp.
|
protectedslot |
Definition at line 6979 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7004 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7009 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7013 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7018 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7489 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7023 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7028 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7041 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7046 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7032 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7036 of file MainWindow.cpp.
|
protectedslot |
Definition at line 6959 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7076 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7090 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7577 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7638 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7608 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7603 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7618 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7623 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7628 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7613 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7633 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7643 of file MainWindow.cpp.
|
protected |
Definition at line 721 of file MainWindow.cpp.
|
protectedvirtualslot |
Definition at line 7466 of file MainWindow.cpp.
|
protected |
Definition at line 735 of file MainWindow.cpp.
void rtabmap::MainWindow::setMonitoringState | ( | bool | pauseChecked = false | ) |
Definition at line 8180 of file MainWindow.cpp.
|
inlineprotected |
Definition at line 312 of file MainWindow.h.
|
private |
Definition at line 704 of file MainWindow.cpp.
|
protectedvirtual |
Definition at line 5093 of file MainWindow.cpp.
|
protectedslot |
Definition at line 6285 of file MainWindow.cpp.
|
protectedvirtualslot |
Definition at line 5622 of file MainWindow.cpp.
|
inlineprotected |
Definition at line 289 of file MainWindow.h.
|
signal |
|
signal |
|
signal |
|
protectedvirtualslot |
Definition at line 5947 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7572 of file MainWindow.cpp.
|
signal |
|
signal |
|
protectedvirtualslot |
Definition at line 8118 of file MainWindow.cpp.
|
signal |
|
inlineprotected |
Definition at line 288 of file MainWindow.h.
|
private |
|
slot |
Definition at line 7178 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7168 of file MainWindow.cpp.
|
protectedslot |
Definition at line 6943 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7392 of file MainWindow.cpp.
|
protectedslot |
Definition at line 4403 of file MainWindow.cpp.
|
private |
Definition at line 2688 of file MainWindow.cpp.
|
protectedslot |
Definition at line 4345 of file MainWindow.cpp.
|
slot |
Definition at line 5261 of file MainWindow.cpp.
|
private |
Definition at line 5142 of file MainWindow.cpp.
|
protectedslot |
Definition at line 7764 of file MainWindow.cpp.
|
private |
Definition at line 350 of file MainWindow.h.
|
private |
Definition at line 423 of file MainWindow.h.
|
private |
Definition at line 420 of file MainWindow.h.
|
private |
Definition at line 422 of file MainWindow.h.
|
private |
Definition at line 421 of file MainWindow.h.
|
private |
Definition at line 384 of file MainWindow.h.
|
private |
Definition at line 386 of file MainWindow.h.
|
private |
Definition at line 389 of file MainWindow.h.
|
private |
Definition at line 378 of file MainWindow.h.
|
private |
Definition at line 377 of file MainWindow.h.
|
private |
Definition at line 388 of file MainWindow.h.
|
private |
Definition at line 344 of file MainWindow.h.
|
private |
Definition at line 414 of file MainWindow.h.
|
private |
Definition at line 385 of file MainWindow.h.
|
private |
Definition at line 396 of file MainWindow.h.
|
private |
Definition at line 391 of file MainWindow.h.
|
private |
Definition at line 380 of file MainWindow.h.
|
private |
Definition at line 383 of file MainWindow.h.
|
private |
Definition at line 381 of file MainWindow.h.
|
private |
Definition at line 382 of file MainWindow.h.
|
private |
Definition at line 379 of file MainWindow.h.
|
private |
Definition at line 368 of file MainWindow.h.
|
private |
Definition at line 355 of file MainWindow.h.
|
private |
Definition at line 367 of file MainWindow.h.
|
private |
Definition at line 354 of file MainWindow.h.
|
private |
Definition at line 403 of file MainWindow.h.
|
private |
Definition at line 352 of file MainWindow.h.
|
private |
Definition at line 351 of file MainWindow.h.
|
private |
Definition at line 419 of file MainWindow.h.
|
private |
Definition at line 418 of file MainWindow.h.
|
private |
Definition at line 428 of file MainWindow.h.
|
private |
Definition at line 359 of file MainWindow.h.
|
private |
Definition at line 417 of file MainWindow.h.
|
private |
Definition at line 346 of file MainWindow.h.
|
private |
Definition at line 358 of file MainWindow.h.
|
private |
Definition at line 357 of file MainWindow.h.
|
private |
Definition at line 399 of file MainWindow.h.
|
private |
Definition at line 407 of file MainWindow.h.
|
private |
Definition at line 404 of file MainWindow.h.
|
private |
Definition at line 426 of file MainWindow.h.
|
private |
Definition at line 415 of file MainWindow.h.
|
private |
Definition at line 410 of file MainWindow.h.
|
private |
Definition at line 364 of file MainWindow.h.
|
private |
Definition at line 365 of file MainWindow.h.
|
private |
Definition at line 393 of file MainWindow.h.
|
private |
Definition at line 394 of file MainWindow.h.
|
private |
Definition at line 398 of file MainWindow.h.
|
private |
Definition at line 363 of file MainWindow.h.
|
private |
Definition at line 370 of file MainWindow.h.
|
private |
Definition at line 369 of file MainWindow.h.
|
private |
Definition at line 345 of file MainWindow.h.
|
private |
Definition at line 402 of file MainWindow.h.
|
private |
Definition at line 366 of file MainWindow.h.
|
private |
Definition at line 406 of file MainWindow.h.
|
private |
Definition at line 353 of file MainWindow.h.
|
private |
Definition at line 349 of file MainWindow.h.
|
private |
Definition at line 387 of file MainWindow.h.
|
private |
Definition at line 361 of file MainWindow.h.
|
private |
Definition at line 400 of file MainWindow.h.
|
private |
Definition at line 360 of file MainWindow.h.
|
private |
Definition at line 429 of file MainWindow.h.
|
private |
Definition at line 412 of file MainWindow.h.
|
private |
Definition at line 408 of file MainWindow.h.
|
private |
Definition at line 362 of file MainWindow.h.
|
private |
Definition at line 374 of file MainWindow.h.
|
private |
Definition at line 375 of file MainWindow.h.
|
private |
Definition at line 425 of file MainWindow.h.
|
private |
Definition at line 371 of file MainWindow.h.
|
private |
Definition at line 343 of file MainWindow.h.
|
private |
Definition at line 341 of file MainWindow.h.
|
private |
Definition at line 372 of file MainWindow.h.
|
private |
Definition at line 373 of file MainWindow.h.