|
|
|
@ -135,39 +135,47 @@ public:
@@ -135,39 +135,47 @@ public:
|
|
|
|
|
bool getSelected() const; |
|
|
|
|
|
|
|
|
|
#ifdef QGC_PROTOBUF_ENABLED |
|
|
|
|
px::PointCloudXYZRGB getPointCloud() const { |
|
|
|
|
px::PointCloudXYZRGB getPointCloud() { |
|
|
|
|
QMutexLocker locker(&pointCloudMutex); |
|
|
|
|
return pointCloud; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
px::PointCloudXYZRGB getPointCloud(qreal& receivedTimestamp) const { |
|
|
|
|
px::PointCloudXYZRGB getPointCloud(qreal& receivedTimestamp) { |
|
|
|
|
receivedTimestamp = receivedPointCloudTimestamp; |
|
|
|
|
QMutexLocker locker(&pointCloudMutex); |
|
|
|
|
return pointCloud; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
px::RGBDImage getRGBDImage() const { |
|
|
|
|
px::RGBDImage getRGBDImage() { |
|
|
|
|
QMutexLocker locker(&rgbdImageMutex); |
|
|
|
|
return rgbdImage; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
px::RGBDImage getRGBDImage(qreal& receivedTimestamp) const { |
|
|
|
|
px::RGBDImage getRGBDImage(qreal& receivedTimestamp) { |
|
|
|
|
receivedTimestamp = receivedRGBDImageTimestamp; |
|
|
|
|
QMutexLocker locker(&rgbdImageMutex); |
|
|
|
|
return rgbdImage; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
px::ObstacleList getObstacleList() const { |
|
|
|
|
px::ObstacleList getObstacleList() { |
|
|
|
|
QMutexLocker locker(&obstacleListMutex); |
|
|
|
|
return obstacleList; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
px::ObstacleList getObstacleList(qreal& receivedTimestamp) const { |
|
|
|
|
px::ObstacleList getObstacleList(qreal& receivedTimestamp) { |
|
|
|
|
receivedTimestamp = receivedObstacleListTimestamp; |
|
|
|
|
QMutexLocker locker(&obstacleListMutex); |
|
|
|
|
return obstacleList; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
px::Path getPath() const { |
|
|
|
|
px::Path getPath() { |
|
|
|
|
QMutexLocker locker(&pathMutex); |
|
|
|
|
return path; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
px::Path getPath(qreal& receivedTimestamp) const { |
|
|
|
|
px::Path getPath(qreal& receivedTimestamp) { |
|
|
|
|
receivedTimestamp = receivedPathTimestamp; |
|
|
|
|
QMutexLocker locker(&pathMutex); |
|
|
|
|
return path; |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
@ -257,15 +265,19 @@ protected: //COMMENTS FOR TEST UNIT
@@ -257,15 +265,19 @@ protected: //COMMENTS FOR TEST UNIT
|
|
|
|
|
|
|
|
|
|
#ifdef QGC_PROTOBUF_ENABLED |
|
|
|
|
px::PointCloudXYZRGB pointCloud; |
|
|
|
|
QMutex pointCloudMutex; |
|
|
|
|
qreal receivedPointCloudTimestamp; |
|
|
|
|
|
|
|
|
|
px::RGBDImage rgbdImage; |
|
|
|
|
QMutex rgbdImageMutex; |
|
|
|
|
qreal receivedRGBDImageTimestamp; |
|
|
|
|
|
|
|
|
|
px::ObstacleList obstacleList; |
|
|
|
|
QMutex obstacleListMutex; |
|
|
|
|
qreal receivedObstacleListTimestamp; |
|
|
|
|
|
|
|
|
|
px::Path path; |
|
|
|
|
QMutex pathMutex; |
|
|
|
|
qreal receivedPathTimestamp; |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|