-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an option to subscribe to compressed image topics. #28
Add an option to subscribe to compressed image topics. #28
Conversation
Also allow for relative names in cam_base_topic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution. I just have a couple of suggestions.
Co-authored-by: Błażej Sowa <[email protected]>
Co-authored-by: Błażej Sowa <[email protected]>
c0027a7
to
b29a6ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please reset the compressed image subscription in on_shutdown
method.
Other than that, looks good. I will merge it after testing the new functionality.
@Mergifyio backport iron rolling |
✅ Backports have been created
|
* Add an option to subscribe compressed image topics Also allow for relative names in cam_base_topic * Fix code style divergence reported by colcon test * Properly forward the original header when decompressing image messages. * Update aruco_opencv/src/aruco_tracker.cpp Co-authored-by: Błażej Sowa <[email protected]> * Update aruco_opencv/src/aruco_tracker.cpp Co-authored-by: Błażej Sowa <[email protected]> * Restructure image callbacks * Remove the unnecessary 'copy elision' comment * Reset compressed_img_sub_ in on_shutdown() --------- Co-authored-by: Błażej Sowa <[email protected]> (cherry picked from commit 1150e04)
* Add an option to subscribe compressed image topics Also allow for relative names in cam_base_topic * Fix code style divergence reported by colcon test * Properly forward the original header when decompressing image messages. * Update aruco_opencv/src/aruco_tracker.cpp Co-authored-by: Błażej Sowa <[email protected]> * Update aruco_opencv/src/aruco_tracker.cpp Co-authored-by: Błażej Sowa <[email protected]> * Restructure image callbacks * Remove the unnecessary 'copy elision' comment * Reset compressed_img_sub_ in on_shutdown() --------- Co-authored-by: Błażej Sowa <[email protected]> (cherry picked from commit 1150e04)
* Add an option to subscribe compressed image topics Also allow for relative names in cam_base_topic * Fix code style divergence reported by colcon test * Properly forward the original header when decompressing image messages. * Update aruco_opencv/src/aruco_tracker.cpp Co-authored-by: Błażej Sowa <[email protected]> * Update aruco_opencv/src/aruco_tracker.cpp Co-authored-by: Błażej Sowa <[email protected]> * Restructure image callbacks * Remove the unnecessary 'copy elision' comment * Reset compressed_img_sub_ in on_shutdown() --------- Co-authored-by: Błażej Sowa <[email protected]> (cherry picked from commit 1150e04) Co-authored-by: Ray Ferric <[email protected]>
* Add an option to subscribe compressed image topics Also allow for relative names in cam_base_topic * Fix code style divergence reported by colcon test * Properly forward the original header when decompressing image messages. * Update aruco_opencv/src/aruco_tracker.cpp Co-authored-by: Błażej Sowa <[email protected]> * Update aruco_opencv/src/aruco_tracker.cpp Co-authored-by: Błażej Sowa <[email protected]> * Restructure image callbacks * Remove the unnecessary 'copy elision' comment * Reset compressed_img_sub_ in on_shutdown() --------- Co-authored-by: Błażej Sowa <[email protected]> (cherry picked from commit 1150e04) Co-authored-by: Ray Ferric <[email protected]>
I have added a new parameter called
image_sub_compressed: false
. When enabled, aruco_tracker will subscribe tocam_base_topic/compressed
instead ofcam_base_topic
.This modification is a workaround, because normally, image compression is handled by setting
image_transport::TransportHints
. However we are unable to use image_transport with lifecycle nodes.Enabling this feature makes aruco_tracker work much faster and allows us to successfully use it with a multi-camera setup.