Add temporary solution for decoding compressed depth message inside cv_bridge #311
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I added a temporary solution for directly decoding compressed depth image message inside cv_bridge with respect to https://answers.ros.org/question/249775/display-compresseddepth-image-python-cv2/ and https://github.com/ros-perception/image_transport_plugins/tree/indigo-devel/compressed_depth_image_transport.
It is very inconvenient if no python package is provided to support decoding compressed depth image directly, but it seems like there is no plan for python support of image_transport so I added this temporary solution in cv_bridge. Future improvement should be to add python wrapper of image_transport instead of implementing that functionality inside python.
I'm also wondering is it possible to export python wrapper directly from c++ code like https://github.com/opencv/opencv_contrib and https://docs.opencv.org/trunk/da/d49/tutorial_py_bindings_basics.html?