rtabmap_ros icon indicating copy to clipboard operation
rtabmap_ros copied to clipboard

THERE IS NO rtabmap::util3d::uncompressImage() IN "rtabmap/core/util3d.h"

Open pen9u1nlee opened this issue 8 months ago • 1 comments

Hi, we run RGBD-SLAM in ROS noetic under Ubuntu 20.04, try to subscribe /rtabmap/mapData topic and extract keyframes. It is noticed that the RGBD data is compressed and stored in SensorData.msg:

# Compressed images
# use rtabmap::util3d::uncompressImage() from "rtabmap/core/util3d.h"
uint8[] left_compressed
uint8[] right_compressed

However, on decompression, we find that the method rtabmap::util3d::uncompressImage from rtabmap/core/util3d.h does not exist at all, and the most similar ones are in rtabmap/core/Compression.h with:

cv::Mat RTABMAP_CORE_EXPORT uncompressImage(const cv::Mat & bytes);
cv::Mat RTABMAP_CORE_EXPORT uncompressImage(const std::vector<unsigned char> & bytes);

please checkout if this is the correct decompression usage. Thx in advance.

pen9u1nlee avatar Apr 09 '25 09:04 pen9u1nlee

Oh yeah, that comment needs to be updated. You should be fine using the one from rtabmap/core/Compression.h.

matlabbe avatar Apr 10 '25 21:04 matlabbe