Skip to content

Commit

Permalink
Fix ros-perception#63, regression in compressed_depth_image_transport…
Browse files Browse the repository at this point in the history
… with old bags
  • Loading branch information
tlind committed Aug 22, 2020
1 parent 73824bc commit bafebe1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compressed_depth_image_transport/src/codec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ sensor_msgs::Image::Ptr decodeCompressedDepthImage(const sensor_msgs::Compressed
compression_format = "png";
} else if (format.find("compressedDepth rvl") != std::string::npos) {
compression_format = "rvl";
} else if (format.find("compressedDepth") != std::string::npos && format.find("compressedDepth ") == std::string::npos) {
compression_format = "png";
} else {
ROS_ERROR("Unsupported image format: %s", message.format.c_str());
return sensor_msgs::Image::Ptr();
Expand Down

0 comments on commit bafebe1

Please sign in to comment.