mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-12 20:49:50 +08:00
Supporting image compression formats passthrough (#1461)
* Supporting ros depth compression formats passthrough * Added image_compression_format (support jpg,png). Use Compression.h constants. * Bridging gap with #1457 * CoreWrapper: decode_images_on_demand * rgbd_sync->rgbd_split encoding/decoding test with image_transport validation. rgbd_split color passthrough * more tests * fixing ci on kilted+ * fixing test * fixing lyrical tests * fixing rolling ci * Improved test coverage * fixing some tf waitForTransform deadlocks when sim time is used in tests * CI: build rtabmap_slam on rolling rtabmap_slam builds without nav2_msgs, which is not on resolute yet: skip its key instead of leaving the package out. Only rtabmap_costmap_plugins (and the rtabmap_ros metapackage pulling it in) still need nav2.
This commit is contained in:
@@ -199,6 +199,19 @@ TEST_F(StereoSyncTest, ApproxSyncMaxIntervalRejectsDistantFrames)
|
||||
EXPECT_TRUE(spinUntil([&]() { return !out_->empty(); }));
|
||||
}
|
||||
|
||||
TEST_F(StereoSyncTest, ImageCompressionFormatAppliesToBothImages)
|
||||
{
|
||||
start({rclcpp::Parameter("image_compression_format", std::string(".png"))});
|
||||
collectCompressed();
|
||||
|
||||
publish(1000.0);
|
||||
ASSERT_TRUE(spinUntil([&]() { return !compressed_->empty(); }));
|
||||
|
||||
const rtabmap_msgs::msg::RGBDImage & got = compressed_->back();
|
||||
EXPECT_EQ(got.rgb_compressed.format, "mono8; png compressed mono8");
|
||||
EXPECT_EQ(got.depth_compressed.format, "mono8; png compressed mono8");
|
||||
}
|
||||
|
||||
TEST_F(StereoSyncTest, CompressesBothImagesAsJpeg)
|
||||
{
|
||||
// Both halves of a stereo pair are ordinary images, so both take the lossy path --
|
||||
|
||||
Reference in New Issue
Block a user