mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Refactored how visualization data are transfered between core and gui: using only Signature object instead of separated image,deph,fx,fy...
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1928 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -32,6 +32,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include <rtabmap/core/Parameters.h>
|
||||
#include <rtabmap/core/Transform.h>
|
||||
#include <rtabmap/core/Signature.h>
|
||||
#include <opencv2/opencv.hpp>
|
||||
#include <QtGui/QWidget>
|
||||
|
||||
@@ -39,8 +40,6 @@ class Ui_loopClosureViewer;
|
||||
|
||||
namespace rtabmap {
|
||||
|
||||
class Signature;
|
||||
|
||||
class RTABMAPGUI_EXP LoopClosureViewer : public QWidget {
|
||||
|
||||
Q_OBJECT
|
||||
@@ -49,11 +48,10 @@ public:
|
||||
LoopClosureViewer(QWidget * parent);
|
||||
virtual ~LoopClosureViewer();
|
||||
|
||||
// take ownership
|
||||
void setData(Signature * sA, Signature * sB); // sB contains loop transform as pose() from sA
|
||||
void setData(const Signature & sA, const Signature & sB); // sB contains loop transform as pose() from sA
|
||||
|
||||
const Signature * sA() const {return sA_;}
|
||||
const Signature * sB() const {return sB_;}
|
||||
const Signature & sA() const {return sA_;}
|
||||
const Signature & sB() const {return sB_;}
|
||||
|
||||
public slots:
|
||||
void setDecimation(int decimation) {decimation_ = decimation;}
|
||||
@@ -67,8 +65,8 @@ protected:
|
||||
private:
|
||||
Ui_loopClosureViewer * ui_;
|
||||
|
||||
Signature * sA_;
|
||||
Signature * sB_;
|
||||
Signature sA_;
|
||||
Signature sB_;
|
||||
Transform transform_;
|
||||
|
||||
int decimation_;
|
||||
|
||||
@@ -248,15 +248,8 @@ private:
|
||||
bool _processingStatistics;
|
||||
bool _odometryReceived;
|
||||
|
||||
QMap<int, std::vector<unsigned char> > _imagesMap;
|
||||
QMap<int, std::vector<unsigned char> > _depthsMap;
|
||||
QMap<int, std::vector<unsigned char> > _depths2DMap;
|
||||
QMap<int, float> _depthFxsMap;
|
||||
QMap<int, float> _depthFysMap;
|
||||
QMap<int, float> _depthCxsMap;
|
||||
QMap<int, float> _depthCysMap;
|
||||
QMap<int, Signature> _cachedSignatures;
|
||||
QMap<int, int> _mapIds;
|
||||
QMap<int, Transform> _localTransformsMap;
|
||||
std::map<int, Transform> _currentPosesMap;
|
||||
std::map<int, pcl::PointCloud<pcl::PointXYZRGB>::Ptr > _createdClouds;
|
||||
std::map<int, pcl::PointCloud<pcl::PointXYZ>::Ptr > _createdScans;
|
||||
|
||||
Reference in New Issue
Block a user