Skip to content

Commit

Permalink
Fix #63, regression in compressed_depth_image_transport with old bags (
Browse files Browse the repository at this point in the history
  • Loading branch information
tlind authored Apr 16, 2021
1 parent 73824bc commit b21ed65
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 b21ed65

Please sign in to comment.