mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-05 17:47:49 +08:00
Fixing various issues detected by rtabmap_slam tests (#1773)
* Fixing getNodeData missing compressed grids * Fixing roundtrip laserScan <-> Pointcloud2 on all formats. * Keep already compressed user_data and laser_scan if possible * fixed double compression of user_data * reorder headers * removed dead function declaration * expand test coverage
This commit is contained in:
@@ -568,7 +568,7 @@ void SensorData::setUserData(const cv::Mat & userData, bool clearPreviousData)
|
||||
else
|
||||
{
|
||||
_userDataRaw = userData;
|
||||
if(!userData.empty())
|
||||
if(!userData.empty() && _userDataCompressed.empty())
|
||||
{
|
||||
_userDataCompressed = compressData2(userData);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user