mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
Merge branch 'master' of https://github.com/Tobias-Fischer/rtabmap into Tobias-Fischer-master
This commit is contained in:
@@ -32,6 +32,8 @@ SET(PROJECT_VERSION_PATCH ${RTABMAP_PATCH_VERSION})
|
|||||||
|
|
||||||
SET(PROJECT_SOVERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
|
SET(PROJECT_SOVERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
|
||||||
|
|
||||||
|
SET(RTABMAP_QT_VERSION 4 CACHE STRING "Which QT version to use")
|
||||||
|
|
||||||
####### COMPILATION PARAMS #######
|
####### COMPILATION PARAMS #######
|
||||||
# In case of Makefiles if the user does not setup CMAKE_BUILD_TYPE, assume it's Release:
|
# In case of Makefiles if the user does not setup CMAKE_BUILD_TYPE, assume it's Release:
|
||||||
IF(${CMAKE_GENERATOR} MATCHES ".*Makefiles")
|
IF(${CMAKE_GENERATOR} MATCHES ".*Makefiles")
|
||||||
@@ -128,7 +130,11 @@ FIND_PACKAGE(OpenNI2)
|
|||||||
FIND_PACKAGE(G2O)
|
FIND_PACKAGE(G2O)
|
||||||
|
|
||||||
# If Qt is here, the GUI will be built
|
# If Qt is here, the GUI will be built
|
||||||
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui QtSvg)
|
IF("${RTABMAP_QT_VERSION}" STREQUAL "4")
|
||||||
|
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui QtSvg)
|
||||||
|
ELSE()
|
||||||
|
FIND_PACKAGE(Qt5 COMPONENTS Widgets Core Gui Svg)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
####### OSX BUNDLE CMAKE_INSTALL_PREFIX #######
|
####### OSX BUNDLE CMAKE_INSTALL_PREFIX #######
|
||||||
IF(APPLE AND BUILD_AS_BUNDLE)
|
IF(APPLE AND BUILD_AS_BUNDLE)
|
||||||
@@ -164,11 +170,11 @@ CONFIGURE_FILE(Version.h.in ${PROJECT_SOURCE_DIR}/corelib/include/${PROJECT_PREF
|
|||||||
ADD_SUBDIRECTORY( utilite )
|
ADD_SUBDIRECTORY( utilite )
|
||||||
ADD_SUBDIRECTORY( corelib )
|
ADD_SUBDIRECTORY( corelib )
|
||||||
|
|
||||||
IF(QT4_FOUND AND QT_QTCORE_FOUND AND QT_QTGUI_FOUND)
|
IF(Qt5_FOUND OR (QT4_FOUND AND QT_QTCORE_FOUND AND QT_QTGUI_FOUND))
|
||||||
ADD_SUBDIRECTORY( guilib )
|
ADD_SUBDIRECTORY( guilib )
|
||||||
ADD_SUBDIRECTORY( app )
|
ADD_SUBDIRECTORY( app )
|
||||||
ELSE()
|
ELSE()
|
||||||
MESSAGE(STATUS "[WARNING] Qt4 not found, the GUI lib and the stand-alone application will not be compiled...")
|
MESSAGE(STATUS "[WARNING] Qt not found, the GUI lib and the stand-alone application will not be compiled...")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
ADD_SUBDIRECTORY( tools )
|
ADD_SUBDIRECTORY( tools )
|
||||||
|
|||||||
@@ -5,7 +5,11 @@ SET(headers_ui
|
|||||||
)
|
)
|
||||||
|
|
||||||
#This will generate moc_* for Qt
|
#This will generate moc_* for Qt
|
||||||
QT4_WRAP_CPP(moc_srcs ${headers_ui})
|
IF("${RTABMAP_QT_VERSION}" STREQUAL "4")
|
||||||
|
QT4_WRAP_CPP(moc_srcs ${headers_ui})
|
||||||
|
ELSE()
|
||||||
|
QT5_WRAP_CPP(moc_srcs ${headers_ui})
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
SET(SRC_FILES
|
SET(SRC_FILES
|
||||||
main.cpp
|
main.cpp
|
||||||
@@ -21,7 +25,9 @@ SET(INCLUDE_DIRS
|
|||||||
${PCL_INCLUDE_DIRS}
|
${PCL_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
INCLUDE(${QT_USE_FILE})
|
IF("${RTABMAP_QT_VERSION}" STREQUAL "4")
|
||||||
|
INCLUDE(${QT_USE_FILE})
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
SET(LIBRARIES
|
SET(LIBRARIES
|
||||||
${QT_LIBRARIES}
|
${QT_LIBRARIES}
|
||||||
@@ -67,6 +73,9 @@ ELSE()
|
|||||||
ADD_EXECUTABLE(rtabmap ${SRC_FILES})
|
ADD_EXECUTABLE(rtabmap ${SRC_FILES})
|
||||||
ENDIF()
|
ENDIF()
|
||||||
TARGET_LINK_LIBRARIES(rtabmap rtabmap_core rtabmap_gui rtabmap_utilite ${LIBRARIES})
|
TARGET_LINK_LIBRARIES(rtabmap rtabmap_core rtabmap_gui rtabmap_utilite ${LIBRARIES})
|
||||||
|
IF("${RTABMAP_QT_VERSION}" STREQUAL "5")
|
||||||
|
QT5_USE_MODULES(rtabmap Widgets Core Gui Svg PrintSupport)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
IF(APPLE AND BUILD_AS_BUNDLE)
|
IF(APPLE AND BUILD_AS_BUNDLE)
|
||||||
SET_TARGET_PROPERTIES(rtabmap PROPERTIES
|
SET_TARGET_PROPERTIES(rtabmap PROPERTIES
|
||||||
|
|||||||
@@ -25,13 +25,13 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QtGui/QApplication>
|
#include <QApplication>
|
||||||
#include <QtCore/QDir>
|
#include <QtCore/QDir>
|
||||||
#include "rtabmap/utilite/UEventsManager.h"
|
#include "rtabmap/utilite/UEventsManager.h"
|
||||||
#include "rtabmap/core/RtabmapThread.h"
|
#include "rtabmap/core/RtabmapThread.h"
|
||||||
#include "rtabmap/core/Rtabmap.h"
|
#include "rtabmap/core/Rtabmap.h"
|
||||||
#include "rtabmap/gui/MainWindow.h"
|
#include "rtabmap/gui/MainWindow.h"
|
||||||
#include <QtGui/QMessageBox>
|
#include <QMessageBox>
|
||||||
#include "rtabmap/utilite/UObjDeletionThread.h"
|
#include "rtabmap/utilite/UObjDeletionThread.h"
|
||||||
#include "ObjDeletionHandler.h"
|
#include "ObjDeletionHandler.h"
|
||||||
|
|
||||||
|
|||||||
17
build/.gitignore
vendored
17
build/.gitignore
vendored
@@ -1,17 +0,0 @@
|
|||||||
/app
|
|
||||||
/CMakeFiles
|
|
||||||
/corelib
|
|
||||||
/examples
|
|
||||||
/guilib
|
|
||||||
/tools
|
|
||||||
/utilite
|
|
||||||
/cmake_install.cmake
|
|
||||||
/cmake_uninstall.cmake
|
|
||||||
/CMakeCache.txt
|
|
||||||
/CPackConfig.cmake
|
|
||||||
/CPackSourceConfig.cmake
|
|
||||||
/install_manifest.txt
|
|
||||||
/Makefile
|
|
||||||
/RTABMapConfig.cmake
|
|
||||||
/rtabmapConfigVersion.cmake
|
|
||||||
/RTABMapConfigVersion.cmake
|
|
||||||
@@ -7,7 +7,9 @@ SET(INCLUDE_DIRS
|
|||||||
${PCL_INCLUDE_DIRS}
|
${PCL_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
INCLUDE(${QT_USE_FILE})
|
IF("${RTABMAP_QT_VERSION}" STREQUAL "4")
|
||||||
|
INCLUDE(${QT_USE_FILE})
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
SET(LIBRARIES
|
SET(LIBRARIES
|
||||||
${OpenCV_LIBRARIES}
|
${OpenCV_LIBRARIES}
|
||||||
@@ -17,7 +19,11 @@ SET(LIBRARIES
|
|||||||
|
|
||||||
INCLUDE_DIRECTORIES(${INCLUDE_DIRS})
|
INCLUDE_DIRECTORIES(${INCLUDE_DIRS})
|
||||||
|
|
||||||
QT4_WRAP_CPP(moc_srcs MapBuilder.h)
|
IF("${RTABMAP_QT_VERSION}" STREQUAL "4")
|
||||||
|
QT4_WRAP_CPP(moc_srcs MapBuilder.h)
|
||||||
|
ELSE()
|
||||||
|
QT5_WRAP_CPP(moc_srcs MapBuilder.h)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
ADD_EXECUTABLE(rgbd_mapping main.cpp ${moc_srcs})
|
ADD_EXECUTABLE(rgbd_mapping main.cpp ${moc_srcs})
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#ifndef MAPBUILDER_H_
|
#ifndef MAPBUILDER_H_
|
||||||
#define MAPBUILDER_H_
|
#define MAPBUILDER_H_
|
||||||
|
|
||||||
#include <QtGui/QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
#include <QtCore/QMetaType>
|
#include <QtCore/QMetaType>
|
||||||
|
|
||||||
#ifndef Q_MOC_RUN // Mac OS X issue
|
#ifndef Q_MOC_RUN // Mac OS X issue
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include "rtabmap/core/CameraThread.h"
|
#include "rtabmap/core/CameraThread.h"
|
||||||
#include "rtabmap/core/Odometry.h"
|
#include "rtabmap/core/Odometry.h"
|
||||||
#include "rtabmap/utilite/UEventsManager.h"
|
#include "rtabmap/utilite/UEventsManager.h"
|
||||||
#include <QtGui/QApplication>
|
#include <QApplication>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "MapBuilder.h"
|
#include "MapBuilder.h"
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include "rtabmap/gui/RtabmapGuiExp.h" // DLL export/import defines
|
#include "rtabmap/gui/RtabmapGuiExp.h" // DLL export/import defines
|
||||||
|
|
||||||
#include <QtGui/QDialog>
|
#include <QDialog>
|
||||||
#include <opencv2/opencv.hpp>
|
#include <opencv2/opencv.hpp>
|
||||||
|
|
||||||
#include <rtabmap/utilite/UEventsHandler.h>
|
#include <rtabmap/utilite/UEventsHandler.h>
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include "rtabmap/gui/RtabmapGuiExp.h" // DLL export/import defines
|
#include "rtabmap/gui/RtabmapGuiExp.h" // DLL export/import defines
|
||||||
|
|
||||||
#include <rtabmap/utilite/UEventsHandler.h>
|
#include <rtabmap/utilite/UEventsHandler.h>
|
||||||
#include <QtGui/QWidget>
|
#include <QWidget>
|
||||||
#include <rtabmap/core/SensorData.h>
|
#include <rtabmap/core/SensorData.h>
|
||||||
#include <rtabmap/utilite/UTimer.h>
|
#include <rtabmap/utilite/UTimer.h>
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include "rtabmap/gui/RtabmapGuiExp.h" // DLL export/import defines
|
#include "rtabmap/gui/RtabmapGuiExp.h" // DLL export/import defines
|
||||||
|
|
||||||
#include <QtGui/QMainWindow>
|
#include <QMainWindow>
|
||||||
#include <QtCore/QByteArray>
|
#include <QtCore/QByteArray>
|
||||||
#include <QtCore/QMap>
|
#include <QtCore/QMap>
|
||||||
#include <QtCore/QSet>
|
#include <QtCore/QSet>
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include "rtabmap/gui/RtabmapGuiExp.h" // DLL export/import defines
|
#include "rtabmap/gui/RtabmapGuiExp.h" // DLL export/import defines
|
||||||
|
|
||||||
#include <QtGui/QGraphicsView>
|
#include <QGraphicsView>
|
||||||
#include <QtCore/QRectF>
|
#include <QtCore/QRectF>
|
||||||
#include <QtCore/QMultiMap>
|
#include <QtCore/QMultiMap>
|
||||||
#include <QtCore/QSettings>
|
#include <QtCore/QSettings>
|
||||||
|
|||||||
@@ -30,8 +30,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include "rtabmap/gui/RtabmapGuiExp.h" // DLL export/import defines
|
#include "rtabmap/gui/RtabmapGuiExp.h" // DLL export/import defines
|
||||||
|
|
||||||
#include <QtGui/QGraphicsEllipseItem>
|
#include <QGraphicsEllipseItem>
|
||||||
#include <QtGui/QGraphicsTextItem>
|
#include <QGraphicsTextItem>
|
||||||
#include <QtGui/QPen>
|
#include <QtGui/QPen>
|
||||||
#include <QtGui/QBrush>
|
#include <QtGui/QBrush>
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include <rtabmap/core/Transform.h>
|
#include <rtabmap/core/Transform.h>
|
||||||
#include <rtabmap/core/Signature.h>
|
#include <rtabmap/core/Signature.h>
|
||||||
#include <opencv2/opencv.hpp>
|
#include <opencv2/opencv.hpp>
|
||||||
#include <QtGui/QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
class Ui_loopClosureViewer;
|
class Ui_loopClosureViewer;
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include "rtabmap/gui/RtabmapGuiExp.h" // DLL export/import defines
|
#include "rtabmap/gui/RtabmapGuiExp.h" // DLL export/import defines
|
||||||
|
|
||||||
#include "rtabmap/utilite/UEventsHandler.h"
|
#include "rtabmap/utilite/UEventsHandler.h"
|
||||||
#include <QtGui/QMainWindow>
|
#include <QMainWindow>
|
||||||
#include <QtCore/QSet>
|
#include <QtCore/QSet>
|
||||||
#include "rtabmap/core/RtabmapEvent.h"
|
#include "rtabmap/core/RtabmapEvent.h"
|
||||||
#include "rtabmap/core/SensorData.h"
|
#include "rtabmap/core/SensorData.h"
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include "rtabmap/gui/RtabmapGuiExp.h" // DLL export/import defines
|
#include "rtabmap/gui/RtabmapGuiExp.h" // DLL export/import defines
|
||||||
|
|
||||||
#include <QtGui/QDialog>
|
#include <QDialog>
|
||||||
#include <QtCore/QModelIndex>
|
#include <QtCore/QModelIndex>
|
||||||
#include <QtCore/QVector>
|
#include <QtCore/QVector>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#ifndef ABOUTDIALOG_H_
|
#ifndef ABOUTDIALOG_H_
|
||||||
#define ABOUTDIALOG_H_
|
#define ABOUTDIALOG_H_
|
||||||
|
|
||||||
#include <QtGui/QDialog>
|
#include <QDialog>
|
||||||
#include <QtCore/QUrl>
|
#include <QtCore/QUrl>
|
||||||
|
|
||||||
class Ui_aboutDialog;
|
class Ui_aboutDialog;
|
||||||
|
|||||||
@@ -42,17 +42,21 @@ SET(qrc
|
|||||||
./GuiLib.qrc
|
./GuiLib.qrc
|
||||||
)
|
)
|
||||||
|
|
||||||
# generate rules for building source files from the resources
|
IF("${RTABMAP_QT_VERSION}" STREQUAL "4")
|
||||||
QT4_ADD_RESOURCES(srcs_qrc ${qrc})
|
# generate rules for building source files from the resources
|
||||||
|
QT4_ADD_RESOURCES(srcs_qrc ${qrc})
|
||||||
#Generate .h files from the .ui files
|
|
||||||
QT4_WRAP_UI(moc_uis ${uis})
|
|
||||||
|
|
||||||
#This will generate moc_* for Qt
|
|
||||||
QT4_WRAP_CPP(moc_srcs ${headers_ui})
|
|
||||||
### Qt Gui stuff end###
|
|
||||||
|
|
||||||
|
#Generate .h files from the .ui files
|
||||||
|
QT4_WRAP_UI(moc_uis ${uis})
|
||||||
|
|
||||||
|
#This will generate moc_* for Qt
|
||||||
|
QT4_WRAP_CPP(moc_srcs ${headers_ui})
|
||||||
|
### Qt Gui stuff end###
|
||||||
|
ELSE()
|
||||||
|
QT5_ADD_RESOURCES(srcs_qrc ${qrc})
|
||||||
|
QT5_WRAP_UI(moc_uis ${uis})
|
||||||
|
QT5_WRAP_CPP(moc_srcs ${headers_ui})
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
|
|
||||||
SET(SRC_FILES
|
SET(SRC_FILES
|
||||||
@@ -92,7 +96,9 @@ SET(INCLUDE_DIRS
|
|||||||
${PCL_INCLUDE_DIRS}
|
${PCL_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
INCLUDE(${QT_USE_FILE})
|
IF("${RTABMAP_QT_VERSION}" STREQUAL "4")
|
||||||
|
INCLUDE(${QT_USE_FILE})
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
SET(LIBRARIES
|
SET(LIBRARIES
|
||||||
${QT_LIBRARIES}
|
${QT_LIBRARIES}
|
||||||
@@ -113,7 +119,11 @@ add_definitions(${PCL_DEFINITIONS})
|
|||||||
# create a library from the source files
|
# create a library from the source files
|
||||||
ADD_LIBRARY(rtabmap_gui ${SRC_FILES})
|
ADD_LIBRARY(rtabmap_gui ${SRC_FILES})
|
||||||
# Linking with Qt libraries
|
# Linking with Qt libraries
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES(rtabmap_gui rtabmap_core rtabmap_utilite ${LIBRARIES})
|
TARGET_LINK_LIBRARIES(rtabmap_gui rtabmap_core rtabmap_utilite ${LIBRARIES})
|
||||||
|
IF("${RTABMAP_QT_VERSION}" STREQUAL "5")
|
||||||
|
QT5_USE_MODULES(rtabmap_gui Widgets Core Gui Svg PrintSupport)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
SET_TARGET_PROPERTIES(
|
SET_TARGET_PROPERTIES(
|
||||||
rtabmap_gui
|
rtabmap_gui
|
||||||
|
|||||||
@@ -33,8 +33,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include <opencv2/calib3d/calib3d.hpp>
|
#include <opencv2/calib3d/calib3d.hpp>
|
||||||
#include <opencv2/highgui/highgui.hpp>
|
#include <opencv2/highgui/highgui.hpp>
|
||||||
|
|
||||||
#include <QtGui/QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QtGui/QMessageBox>
|
#include <QMessageBox>
|
||||||
|
|
||||||
#include <rtabmap/core/CameraEvent.h>
|
#include <rtabmap/core/CameraEvent.h>
|
||||||
#include <rtabmap/gui/UCv2Qt.h>
|
#include <rtabmap/gui/UCv2Qt.h>
|
||||||
|
|||||||
@@ -33,13 +33,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include <rtabmap/core/util3d.h>
|
#include <rtabmap/core/util3d.h>
|
||||||
#include <pcl/visualization/pcl_visualizer.h>
|
#include <pcl/visualization/pcl_visualizer.h>
|
||||||
#include <pcl/filters/frustum_culling.h>
|
#include <pcl/filters/frustum_culling.h>
|
||||||
#include <QtGui/QMenu>
|
#include <QMenu>
|
||||||
#include <QtGui/QAction>
|
#include <QAction>
|
||||||
#include <QtGui/QContextMenuEvent>
|
#include <QtGui/QContextMenuEvent>
|
||||||
#include <QtGui/QInputDialog>
|
#include <QInputDialog>
|
||||||
#include <QtGui/QWheelEvent>
|
#include <QtGui/QWheelEvent>
|
||||||
#include <QtGui/QKeyEvent>
|
#include <QtGui/QKeyEvent>
|
||||||
#include <QtGui/QColorDialog>
|
#include <QColorDialog>
|
||||||
#include <QtGui/QVector3D>
|
#include <QtGui/QVector3D>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
|
||||||
@@ -491,7 +491,11 @@ bool CloudViewer::addOccupancyGridMap(
|
|||||||
material.tex_file = tmpPath;
|
material.tex_file = tmpPath;
|
||||||
mesh->tex_materials.push_back(material);
|
mesh->tex_materials.push_back(material);
|
||||||
|
|
||||||
|
#if PCL_VERSION_COMPARE(>=, 1, 8, 0)
|
||||||
|
std::vector<Eigen::Vector2f, Eigen::aligned_allocator<Eigen::Vector2f> > coordinates;
|
||||||
|
#else
|
||||||
std::vector<Eigen::Vector2f> coordinates;
|
std::vector<Eigen::Vector2f> coordinates;
|
||||||
|
#endif
|
||||||
coordinates.push_back(Eigen::Vector2f(0,1));
|
coordinates.push_back(Eigen::Vector2f(0,1));
|
||||||
coordinates.push_back(Eigen::Vector2f(1,1));
|
coordinates.push_back(Eigen::Vector2f(1,1));
|
||||||
coordinates.push_back(Eigen::Vector2f(1,0));
|
coordinates.push_back(Eigen::Vector2f(1,0));
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include "ui_consoleWidget.h"
|
#include "ui_consoleWidget.h"
|
||||||
#include <rtabmap/utilite/ULogger.h>
|
#include <rtabmap/utilite/ULogger.h>
|
||||||
#include <rtabmap/utilite/UEventsManager.h>
|
#include <rtabmap/utilite/UEventsManager.h>
|
||||||
#include <QtGui/QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QtGui/QTextCursor>
|
#include <QtGui/QTextCursor>
|
||||||
#include <QtCore/QTimer>
|
#include <QtCore/QTimer>
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#define CONSOLEWIDGET_H_
|
#define CONSOLEWIDGET_H_
|
||||||
|
|
||||||
#include <rtabmap/utilite/UEventsHandler.h>
|
#include <rtabmap/utilite/UEventsHandler.h>
|
||||||
#include <QtGui/QWidget>
|
#include <QWidget>
|
||||||
#include <QtCore/QMutex>
|
#include <QtCore/QMutex>
|
||||||
#include <QtCore/QTimer>
|
#include <QtCore/QTimer>
|
||||||
#include <QtCore/QTime>
|
#include <QtCore/QTime>
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include <rtabmap/gui/ImageView.h>
|
#include <rtabmap/gui/ImageView.h>
|
||||||
#include <rtabmap/gui/UCv2Qt.h>
|
#include <rtabmap/gui/UCv2Qt.h>
|
||||||
#include <QtCore/QMetaType>
|
#include <QtCore/QMetaType>
|
||||||
#include <QtGui/QHBoxLayout>
|
#include <QHBoxLayout>
|
||||||
|
|
||||||
namespace rtabmap {
|
namespace rtabmap {
|
||||||
|
|
||||||
|
|||||||
@@ -28,12 +28,12 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include "rtabmap/gui/DatabaseViewer.h"
|
#include "rtabmap/gui/DatabaseViewer.h"
|
||||||
#include "rtabmap/gui/CloudViewer.h"
|
#include "rtabmap/gui/CloudViewer.h"
|
||||||
#include "ui_DatabaseViewer.h"
|
#include "ui_DatabaseViewer.h"
|
||||||
#include <QtGui/QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QtGui/QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QtGui/QInputDialog>
|
#include <QInputDialog>
|
||||||
#include <QtGui/QGraphicsLineItem>
|
#include <QGraphicsLineItem>
|
||||||
#include <QtGui/QCloseEvent>
|
#include <QtGui/QCloseEvent>
|
||||||
#include <QtGui/QGraphicsOpacityEffect>
|
#include <QGraphicsOpacityEffect>
|
||||||
#include <QtCore/QBuffer>
|
#include <QtCore/QBuffer>
|
||||||
#include <QtCore/QTextStream>
|
#include <QtCore/QTextStream>
|
||||||
#include <QtCore/QDateTime>
|
#include <QtCore/QDateTime>
|
||||||
|
|||||||
@@ -26,13 +26,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "DetailedProgressDialog.h"
|
#include "DetailedProgressDialog.h"
|
||||||
#include <QtGui/QLayout>
|
#include <QLayout>
|
||||||
#include <QtGui/QProgressBar>
|
#include <QProgressBar>
|
||||||
#include <QtGui/QTextEdit>
|
#include <QTextEdit>
|
||||||
#include <QtGui/QLabel>
|
#include <QLabel>
|
||||||
#include <QtGui/QPushButton>
|
#include <QPushButton>
|
||||||
#include <QtGui/QCloseEvent>
|
#include <QtGui/QCloseEvent>
|
||||||
#include <QtGui/QCheckBox>
|
#include <QCheckBox>
|
||||||
#include <QtCore/QTimer>
|
#include <QtCore/QTimer>
|
||||||
#include <QtCore/QTime>
|
#include <QtCore/QTime>
|
||||||
#include "rtabmap/utilite/ULogger.h"
|
#include "rtabmap/utilite/ULogger.h"
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#ifndef DETAILEDPROGRESSDIALOG_H_
|
#ifndef DETAILEDPROGRESSDIALOG_H_
|
||||||
#define DETAILEDPROGRESSDIALOG_H_
|
#define DETAILEDPROGRESSDIALOG_H_
|
||||||
|
|
||||||
#include <QtGui/QDialog>
|
#include <QDialog>
|
||||||
|
|
||||||
class QLabel;
|
class QLabel;
|
||||||
class QTextEdit;
|
class QTextEdit;
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include "ExportCloudsDialog.h"
|
#include "ExportCloudsDialog.h"
|
||||||
#include "ui_exportCloudsDialog.h"
|
#include "ui_exportCloudsDialog.h"
|
||||||
|
|
||||||
#include <QtGui/QPushButton>
|
#include <QPushButton>
|
||||||
|
|
||||||
namespace rtabmap {
|
namespace rtabmap {
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#ifndef EXPORTCLOUDSDIALOG_H_
|
#ifndef EXPORTCLOUDSDIALOG_H_
|
||||||
#define EXPORTCLOUDSDIALOG_H_
|
#define EXPORTCLOUDSDIALOG_H_
|
||||||
|
|
||||||
#include <QtGui/QDialog>
|
#include <QDialog>
|
||||||
#include <QtCore/QSettings>
|
#include <QtCore/QSettings>
|
||||||
|
|
||||||
class Ui_ExportCloudsDialog;
|
class Ui_ExportCloudsDialog;
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include "ExportDialog.h"
|
#include "ExportDialog.h"
|
||||||
#include "ui_exportDialog.h"
|
#include "ui_exportDialog.h"
|
||||||
|
|
||||||
#include <QtGui/QFileDialog>
|
#include <QFileDialog>
|
||||||
|
|
||||||
namespace rtabmap {
|
namespace rtabmap {
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#ifndef EXPORTDIALOG_H_
|
#ifndef EXPORTDIALOG_H_
|
||||||
#define EXPORTDIALOG_H_
|
#define EXPORTDIALOG_H_
|
||||||
|
|
||||||
#include <QtGui/QDialog>
|
#include <QDialog>
|
||||||
|
|
||||||
class Ui_ExportDialog;
|
class Ui_ExportDialog;
|
||||||
|
|
||||||
|
|||||||
@@ -27,18 +27,18 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include "GraphViewer.h"
|
#include "GraphViewer.h"
|
||||||
|
|
||||||
#include <QtGui/QGraphicsView>
|
#include <QGraphicsView>
|
||||||
#include <QtGui/QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
#include <QtGui/QGraphicsScene>
|
#include <QGraphicsScene>
|
||||||
#include <QtGui/QGraphicsEllipseItem>
|
#include <QGraphicsEllipseItem>
|
||||||
#include <QtGui/QWheelEvent>
|
#include <QtGui/QWheelEvent>
|
||||||
#include <QtGui/QGraphicsSceneHoverEvent>
|
#include <QGraphicsSceneHoverEvent>
|
||||||
#include <QtGui/QMenu>
|
#include <QMenu>
|
||||||
#include <QtGui/QDesktopServices>
|
#include <QtGui/QDesktopServices>
|
||||||
#include <QtGui/QContextMenuEvent>
|
#include <QtGui/QContextMenuEvent>
|
||||||
#include <QtGui/QColorDialog>
|
#include <QColorDialog>
|
||||||
#include <QtSvg/QSvgGenerator>
|
#include <QtSvg/QSvgGenerator>
|
||||||
#include <QtGui/QInputDialog>
|
#include <QInputDialog>
|
||||||
|
|
||||||
#include <QtCore/QDir>
|
#include <QtCore/QDir>
|
||||||
#include <QtCore/QDateTime>
|
#include <QtCore/QDateTime>
|
||||||
@@ -87,7 +87,7 @@ protected:
|
|||||||
|
|
||||||
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event )
|
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event )
|
||||||
{
|
{
|
||||||
qDeleteAll(this->children());
|
qDeleteAll(this->childItems());
|
||||||
this->setScale(1);
|
this->setScale(1);
|
||||||
QGraphicsEllipseItem::hoverEnterEvent(event);
|
QGraphicsEllipseItem::hoverEnterEvent(event);
|
||||||
}
|
}
|
||||||
@@ -389,7 +389,7 @@ void GraphViewer::updateMap(const cv::Mat & map8U, float resolution, float xMin,
|
|||||||
_gridCellSize = resolution;
|
_gridCellSize = resolution;
|
||||||
QImage image = uCvMat2QImage(map8U, false);
|
QImage image = uCvMat2QImage(map8U, false);
|
||||||
_gridMap->resetTransform();
|
_gridMap->resetTransform();
|
||||||
_gridMap->scale(resolution, -resolution);
|
_gridMap->setTransform(QTransform::fromScale(resolution, -resolution), true);
|
||||||
_gridMap->setRotation(90);
|
_gridMap->setRotation(90);
|
||||||
_gridMap->setPixmap(QPixmap::fromImage(image));
|
_gridMap->setPixmap(QPixmap::fromImage(image));
|
||||||
_gridMap->setPos(-yMin, -xMin);
|
_gridMap->setPos(-yMin, -xMin);
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#ifndef GRAPHVIEWER_H_
|
#ifndef GRAPHVIEWER_H_
|
||||||
#define GRAPHVIEWER_H_
|
#define GRAPHVIEWER_H_
|
||||||
|
|
||||||
#include <QtGui/QGraphicsView>
|
#include <QGraphicsView>
|
||||||
#include <QtCore/QMap>
|
#include <QtCore/QMap>
|
||||||
#include <QtCore/QSettings>
|
#include <QtCore/QSettings>
|
||||||
#include <rtabmap/core/Link.h>
|
#include <rtabmap/core/Link.h>
|
||||||
|
|||||||
@@ -29,12 +29,12 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include <QtGui/QWheelEvent>
|
#include <QtGui/QWheelEvent>
|
||||||
#include <QtCore/qmath.h>
|
#include <QtCore/qmath.h>
|
||||||
#include <QtGui/QMenu>
|
#include <QMenu>
|
||||||
#include <QtGui/QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QtCore/QDir>
|
#include <QtCore/QDir>
|
||||||
#include <QtGui/QAction>
|
#include <QAction>
|
||||||
#include <QtGui/QGraphicsEffect>
|
#include <QGraphicsEffect>
|
||||||
#include <QtGui/QInputDialog>
|
#include <QInputDialog>
|
||||||
#include "rtabmap/utilite/ULogger.h"
|
#include "rtabmap/utilite/ULogger.h"
|
||||||
#include "rtabmap/gui/KeypointItem.h"
|
#include "rtabmap/gui/KeypointItem.h"
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include <QtGui/QPen>
|
#include <QtGui/QPen>
|
||||||
#include <QtGui/QBrush>
|
#include <QtGui/QBrush>
|
||||||
#include <QtGui/QGraphicsScene>
|
#include <QGraphicsScene>
|
||||||
#include "rtabmap/utilite/ULogger.h"
|
#include "rtabmap/utilite/ULogger.h"
|
||||||
|
|
||||||
namespace rtabmap {
|
namespace rtabmap {
|
||||||
@@ -40,7 +40,7 @@ KeypointItem::KeypointItem(qreal x, qreal y, int r, const QString & info, const
|
|||||||
_placeHolder(0)
|
_placeHolder(0)
|
||||||
{
|
{
|
||||||
this->setColor(color);
|
this->setColor(color);
|
||||||
this->setAcceptsHoverEvents(true);
|
this->setAcceptHoverEvents(true);
|
||||||
this->setFlag(QGraphicsItem::ItemIsFocusable, true);
|
this->setFlag(QGraphicsItem::ItemIsFocusable, true);
|
||||||
_width = pen().width();
|
_width = pen().width();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,20 +62,20 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include <QtGui/QPixmap>
|
#include <QtGui/QPixmap>
|
||||||
#include <QtCore/QDir>
|
#include <QtCore/QDir>
|
||||||
#include <QtCore/QFileInfo>
|
#include <QtCore/QFileInfo>
|
||||||
#include <QtGui/QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QtGui/QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QtGui/QGraphicsEllipseItem>
|
#include <QGraphicsEllipseItem>
|
||||||
#include <QtGui/QDockWidget>
|
#include <QDockWidget>
|
||||||
#include <QtCore/QBuffer>
|
#include <QtCore/QBuffer>
|
||||||
#include <QtCore/QTimer>
|
#include <QtCore/QTimer>
|
||||||
#include <QtCore/QTime>
|
#include <QtCore/QTime>
|
||||||
#include <QtGui/QActionGroup>
|
#include <QActionGroup>
|
||||||
#include <QtCore/QThread>
|
#include <QtCore/QThread>
|
||||||
#include <QtGui/QDesktopServices>
|
#include <QtGui/QDesktopServices>
|
||||||
#include <QtCore/QStringList>
|
#include <QtCore/QStringList>
|
||||||
#include <QtCore/QProcess>
|
#include <QtCore/QProcess>
|
||||||
#include <QtGui/QSplashScreen>
|
#include <QSplashScreen>
|
||||||
#include <QtGui/QInputDialog>
|
#include <QInputDialog>
|
||||||
|
|
||||||
//RGB-D stuff
|
//RGB-D stuff
|
||||||
#include "rtabmap/core/CameraRGBD.h"
|
#include "rtabmap/core/CameraRGBD.h"
|
||||||
|
|||||||
@@ -27,9 +27,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include "MapVisibilityWidget.h"
|
#include "MapVisibilityWidget.h"
|
||||||
|
|
||||||
#include <QtGui/QCheckBox>
|
#include <QCheckBox>
|
||||||
#include <QtGui/QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
#include <QtGui/QScrollArea>
|
#include <QScrollArea>
|
||||||
|
|
||||||
#include <rtabmap/utilite/ULogger.h>
|
#include <rtabmap/utilite/ULogger.h>
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#ifndef MAPVISIBILITYWIDGET_H_
|
#ifndef MAPVISIBILITYWIDGET_H_
|
||||||
#define MAPVISIBILITYWIDGET_H_
|
#define MAPVISIBILITYWIDGET_H_
|
||||||
|
|
||||||
#include <QtGui/QWidget>
|
#include <QWidget>
|
||||||
#include <rtabmap/core/Transform.h>
|
#include <rtabmap/core/Transform.h>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
|
|||||||
@@ -33,9 +33,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include "rtabmap/utilite/UConversion.h"
|
#include "rtabmap/utilite/UConversion.h"
|
||||||
#include <pcl/common/transforms.h>
|
#include <pcl/common/transforms.h>
|
||||||
#include <pcl/io/pcd_io.h>
|
#include <pcl/io/pcd_io.h>
|
||||||
#include <QtGui/QInputDialog>
|
#include <QInputDialog>
|
||||||
#include <QtGui/QAction>
|
#include <QAction>
|
||||||
#include <QtGui/QMenu>
|
#include <QMenu>
|
||||||
#include <QtGui/QKeyEvent>
|
#include <QtGui/QKeyEvent>
|
||||||
|
|
||||||
namespace rtabmap {
|
namespace rtabmap {
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include "PostProcessingDialog.h"
|
#include "PostProcessingDialog.h"
|
||||||
#include "ui_postProcessingDialog.h"
|
#include "ui_postProcessingDialog.h"
|
||||||
|
|
||||||
#include <QtGui/QPushButton>
|
#include <QPushButton>
|
||||||
|
|
||||||
namespace rtabmap {
|
namespace rtabmap {
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#ifndef POSTPROCESSINGDIALOG_H_
|
#ifndef POSTPROCESSINGDIALOG_H_
|
||||||
#define POSTPROCESSINGDIALOG_H_
|
#define POSTPROCESSINGDIALOG_H_
|
||||||
|
|
||||||
#include <QtGui/QDialog>
|
#include <QDialog>
|
||||||
#include <QtCore/QSettings>
|
#include <QtCore/QSettings>
|
||||||
|
|
||||||
class Ui_PostProcessingDialog;
|
class Ui_PostProcessingDialog;
|
||||||
|
|||||||
@@ -34,12 +34,12 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include <QtCore/QDir>
|
#include <QtCore/QDir>
|
||||||
#include <QtCore/QTimer>
|
#include <QtCore/QTimer>
|
||||||
|
|
||||||
#include <QtGui/QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QtGui/QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QtGui/QStandardItemModel>
|
#include <QtGui/QStandardItemModel>
|
||||||
#include <QtGui/QMainWindow>
|
#include <QMainWindow>
|
||||||
#include <QtGui/QProgressDialog>
|
#include <QProgressDialog>
|
||||||
#include <QtGui/QScrollBar>
|
#include <QScrollBar>
|
||||||
#include <QtGui/QCloseEvent>
|
#include <QtGui/QCloseEvent>
|
||||||
|
|
||||||
#include "ui_preferencesDialog.h"
|
#include "ui_preferencesDialog.h"
|
||||||
|
|||||||
@@ -27,17 +27,17 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include "StatsToolBox.h"
|
#include "StatsToolBox.h"
|
||||||
|
|
||||||
#include <QtGui/QHBoxLayout>
|
#include <QHBoxLayout>
|
||||||
#include <QtGui/QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
#include <QtGui/QGridLayout>
|
#include <QGridLayout>
|
||||||
#include <QtGui/QMenu>
|
#include <QMenu>
|
||||||
#include <QtGui/QLabel>
|
#include <QLabel>
|
||||||
#include <QtGui/QToolButton>
|
#include <QToolButton>
|
||||||
#include <QtCore/QChildEvent>
|
#include <QtCore/QChildEvent>
|
||||||
#include <QtCore/QDir>
|
#include <QtCore/QDir>
|
||||||
#include <QtGui/QContextMenuEvent>
|
#include <QtGui/QContextMenuEvent>
|
||||||
#include <QtGui/QToolBox>
|
#include <QToolBox>
|
||||||
#include <QtGui/QDialog>
|
#include <QDialog>
|
||||||
|
|
||||||
#include "utilite/UPlot.h"
|
#include "utilite/UPlot.h"
|
||||||
#include <rtabmap/utilite/ULogger.h>
|
#include <rtabmap/utilite/ULogger.h>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#ifndef STATSTOOLBOX_H_
|
#ifndef STATSTOOLBOX_H_
|
||||||
#define STATSTOOLBOX_H_
|
#define STATSTOOLBOX_H_
|
||||||
|
|
||||||
#include <QtGui/QWidget>
|
#include <QWidget>
|
||||||
#include <QtCore/QMap>
|
#include <QtCore/QMap>
|
||||||
|
|
||||||
class QToolButton;
|
class QToolButton;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
#ifndef IMAGEVIEW_H_
|
#ifndef IMAGEVIEW_H_
|
||||||
#define IMAGEVIEW_H_
|
#define IMAGEVIEW_H_
|
||||||
|
|
||||||
#include <QtGui/QWidget>
|
#include <QWidget>
|
||||||
#include <QtGui/QPainter>
|
#include <QtGui/QPainter>
|
||||||
|
|
||||||
class UImageView : public QWidget
|
class UImageView : public QWidget
|
||||||
|
|||||||
@@ -21,29 +21,29 @@
|
|||||||
#include "rtabmap/utilite/ULogger.h"
|
#include "rtabmap/utilite/ULogger.h"
|
||||||
#include "rtabmap/utilite/UMath.h"
|
#include "rtabmap/utilite/UMath.h"
|
||||||
|
|
||||||
#include <QtGui/QGraphicsScene>
|
#include <QGraphicsScene>
|
||||||
#include <QtGui/QGraphicsView>
|
#include <QGraphicsView>
|
||||||
#include <QtGui/QGraphicsItem>
|
#include <QGraphicsItem>
|
||||||
#include <QtGui/QGraphicsRectItem>
|
#include <QGraphicsRectItem>
|
||||||
#include <QtGui/QHBoxLayout>
|
#include <QHBoxLayout>
|
||||||
#include <QtGui/QFormLayout>
|
#include <QFormLayout>
|
||||||
#include <QtGui/QResizeEvent>
|
#include <QtGui/QResizeEvent>
|
||||||
#include <QtGui/QMouseEvent>
|
#include <QtGui/QMouseEvent>
|
||||||
#include <QtCore/QTime>
|
#include <QtCore/QTime>
|
||||||
#include <QtCore/QTimer>
|
#include <QtCore/QTimer>
|
||||||
#include <QtCore/QFileInfo>
|
#include <QtCore/QFileInfo>
|
||||||
#include <QtGui/QPushButton>
|
#include <QPushButton>
|
||||||
#include <QtGui/QToolButton>
|
#include <QToolButton>
|
||||||
#include <QtGui/QLabel>
|
#include <QLabel>
|
||||||
#include <QtGui/QMenu>
|
#include <QMenu>
|
||||||
#include <QtGui/QInputDialog>
|
#include <QInputDialog>
|
||||||
#include <QtGui/QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QtGui/QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QtGui/QClipboard>
|
#include <QtGui/QClipboard>
|
||||||
#include <QtGui/QApplication>
|
#include <QApplication>
|
||||||
#include <QtGui/QPrinter>
|
#include <QtPrintSupport/QPrinter>
|
||||||
#include <QtGui/QColorDialog>
|
#include <QColorDialog>
|
||||||
#include <QtGui/QToolTip>
|
#include <QToolTip>
|
||||||
#ifdef QT_SVG_LIB
|
#ifdef QT_SVG_LIB
|
||||||
#include <QtSvg/QSvgGenerator>
|
#include <QtSvg/QSvgGenerator>
|
||||||
#endif
|
#endif
|
||||||
@@ -75,7 +75,7 @@ void UPlotItem::init(qreal dataX, qreal dataY)
|
|||||||
{
|
{
|
||||||
_data.setX(dataX);
|
_data.setX(dataX);
|
||||||
_data.setY(dataY);
|
_data.setY(dataY);
|
||||||
this->setAcceptsHoverEvents(true);
|
this->setAcceptHoverEvents(true);
|
||||||
this->setFlag(QGraphicsItem::ItemIsFocusable, true);
|
this->setFlag(QGraphicsItem::ItemIsFocusable, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1773,7 +1773,7 @@ void UPlot::setupUi()
|
|||||||
_view->setScene(new QGraphicsScene(0,0,0,0,this));
|
_view->setScene(new QGraphicsScene(0,0,0,0,this));
|
||||||
_view->setStyleSheet( "QGraphicsView { border-style: none; }" );
|
_view->setStyleSheet( "QGraphicsView { border-style: none; }" );
|
||||||
_sceneRoot = _view->scene()->addText("");
|
_sceneRoot = _view->scene()->addText("");
|
||||||
_sceneRoot->translate(0,0);
|
_sceneRoot->setTransform(QTransform::fromTranslate(0, 0), true);
|
||||||
_graphicsViewHolder = new QWidget(this);
|
_graphicsViewHolder = new QWidget(this);
|
||||||
_graphicsViewHolder->setMinimumSize(100,100);
|
_graphicsViewHolder->setMinimumSize(100,100);
|
||||||
_graphicsViewHolder->setMouseTracking(true);
|
_graphicsViewHolder->setMouseTracking(true);
|
||||||
|
|||||||
@@ -20,15 +20,15 @@
|
|||||||
#ifndef UPLOT_H_
|
#ifndef UPLOT_H_
|
||||||
#define UPLOT_H_
|
#define UPLOT_H_
|
||||||
|
|
||||||
#include <QtGui/QFrame>
|
#include <QFrame>
|
||||||
#include <QtCore/QList>
|
#include <QtCore/QList>
|
||||||
#include <QtCore/QMap>
|
#include <QtCore/QMap>
|
||||||
#include <QtGui/QPen>
|
#include <QtGui/QPen>
|
||||||
#include <QtGui/QBrush>
|
#include <QtGui/QBrush>
|
||||||
#include <QtGui/QGraphicsEllipseItem>
|
#include <QGraphicsEllipseItem>
|
||||||
#include <QtCore/QMutex>
|
#include <QtCore/QMutex>
|
||||||
#include <QtGui/QLabel>
|
#include <QLabel>
|
||||||
#include <QtGui/QPushButton>
|
#include <QPushButton>
|
||||||
#include <QtCore/QTime>
|
#include <QtCore/QTime>
|
||||||
|
|
||||||
class QGraphicsView;
|
class QGraphicsView;
|
||||||
|
|||||||
@@ -6,7 +6,9 @@ SET(INCLUDE_DIRS
|
|||||||
${PCL_INCLUDE_DIRS}
|
${PCL_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
INCLUDE(${QT_USE_FILE})
|
IF("${RTABMAP_QT_VERSION}" STREQUAL "4")
|
||||||
|
INCLUDE(${QT_USE_FILE})
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
SET(LIBRARIES
|
SET(LIBRARIES
|
||||||
${OpenCV_LIBRARIES}
|
${OpenCV_LIBRARIES}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include "rtabmap/utilite/ULogger.h"
|
#include "rtabmap/utilite/ULogger.h"
|
||||||
#include "rtabmap/utilite/UConversion.h"
|
#include "rtabmap/utilite/UConversion.h"
|
||||||
#include "rtabmap/gui/CalibrationDialog.h"
|
#include "rtabmap/gui/CalibrationDialog.h"
|
||||||
#include <QtGui/QApplication>
|
#include <QApplication>
|
||||||
|
|
||||||
void showUsage()
|
void showUsage()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,7 +11,9 @@ SET(INCLUDE_DIRS
|
|||||||
${PCL_INCLUDE_DIRS}
|
${PCL_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
INCLUDE(${QT_USE_FILE})
|
IF("${RTABMAP_QT_VERSION}" STREQUAL "4")
|
||||||
|
INCLUDE(${QT_USE_FILE})
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
SET(LIBRARIES
|
SET(LIBRARIES
|
||||||
${PCL_LIBRARIES}
|
${PCL_LIBRARIES}
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include <rtabmap/core/Camera.h>
|
#include <rtabmap/core/Camera.h>
|
||||||
#include <rtabmap/core/CameraThread.h>
|
#include <rtabmap/core/CameraThread.h>
|
||||||
#include <rtabmap/gui/DataRecorder.h>
|
#include <rtabmap/gui/DataRecorder.h>
|
||||||
#include <QtGui/QApplication>
|
#include <QApplication>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
using namespace rtabmap;
|
using namespace rtabmap;
|
||||||
|
|||||||
@@ -11,7 +11,9 @@ SET(INCLUDE_DIRS
|
|||||||
${PCL_INCLUDE_DIRS}
|
${PCL_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
INCLUDE(${QT_USE_FILE})
|
IF("${RTABMAP_QT_VERSION}" STREQUAL "4")
|
||||||
|
INCLUDE(${QT_USE_FILE})
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
SET(LIBRARIES
|
SET(LIBRARIES
|
||||||
${OpenCV_LIBRARIES}
|
${OpenCV_LIBRARIES}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QtGui/QApplication>
|
#include <QApplication>
|
||||||
#include "rtabmap/gui/DatabaseViewer.h"
|
#include "rtabmap/gui/DatabaseViewer.h"
|
||||||
#include "rtabmap/utilite/ULogger.h"
|
#include "rtabmap/utilite/ULogger.h"
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,9 @@ SET(INCLUDE_DIRS
|
|||||||
${PCL_INCLUDE_DIRS}
|
${PCL_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
INCLUDE(${QT_USE_FILE})
|
IF("${RTABMAP_QT_VERSION}" STREQUAL "4")
|
||||||
|
INCLUDE(${QT_USE_FILE})
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
SET(LIBRARIES
|
SET(LIBRARIES
|
||||||
${OpenCV_LIBRARIES}
|
${OpenCV_LIBRARIES}
|
||||||
|
|||||||
@@ -45,13 +45,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include "rtabmap/gui/ImageView.h"
|
#include "rtabmap/gui/ImageView.h"
|
||||||
#include "rtabmap/gui/KeypointItem.h"
|
#include "rtabmap/gui/KeypointItem.h"
|
||||||
#include <QtGui/QApplication>
|
#include <QApplication>
|
||||||
#include <QtGui/QGraphicsLineItem>
|
#include <QGraphicsLineItem>
|
||||||
#include <QtGui/QGraphicsPixmapItem>
|
#include <QGraphicsPixmapItem>
|
||||||
#include <QtGui/QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
#include <QtGui/QHBoxLayout>
|
#include <QHBoxLayout>
|
||||||
#include <QtCore/QTime>
|
#include <QtCore/QTime>
|
||||||
#include <QtGui/QGraphicsEffect>
|
#include <QGraphicsEffect>
|
||||||
|
|
||||||
|
|
||||||
using namespace rtabmap;
|
using namespace rtabmap;
|
||||||
|
|||||||
@@ -11,7 +11,9 @@ SET(INCLUDE_DIRS
|
|||||||
${PCL_INCLUDE_DIRS}
|
${PCL_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
INCLUDE(${QT_USE_FILE})
|
IF("${RTABMAP_QT_VERSION}" STREQUAL "4")
|
||||||
|
INCLUDE(${QT_USE_FILE})
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
SET(LIBRARIES
|
SET(LIBRARIES
|
||||||
${PCL_LIBRARIES}
|
${PCL_LIBRARIES}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include <rtabmap/core/CameraRGBD.h>
|
#include <rtabmap/core/CameraRGBD.h>
|
||||||
#include <rtabmap/core/DBReader.h>
|
#include <rtabmap/core/DBReader.h>
|
||||||
#include <rtabmap/core/VWDictionary.h>
|
#include <rtabmap/core/VWDictionary.h>
|
||||||
#include <QtGui/QApplication>
|
#include <QApplication>
|
||||||
#include <pcl/console/print.h>
|
#include <pcl/console/print.h>
|
||||||
|
|
||||||
void showUsage()
|
void showUsage()
|
||||||
|
|||||||
Reference in New Issue
Block a user