Skip to content
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. (backport #28) #30

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Mar 27, 2024

  • Also allow for relative names in cam_base_topic.

I have added a new parameter called image_sub_compressed: false. When enabled, aruco_tracker will subscribe to cam_base_topic/compressed instead of cam_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.


This is an automatic backport of pull request #28 done by [Mergify](https://mergify.com).

* 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 <bsowa123@gmail.com>

* Update aruco_opencv/src/aruco_tracker.cpp

Co-authored-by: Błażej Sowa <bsowa123@gmail.com>

* Restructure image callbacks

* Remove the unnecessary 'copy elision' comment

* Reset compressed_img_sub_ in on_shutdown()

---------

Co-authored-by: Błażej Sowa <bsowa123@gmail.com>
(cherry picked from commit 1150e04)
@bjsowa bjsowa merged commit 3e82a03 into rolling Mar 27, 2024
3 checks passed
@bjsowa bjsowa deleted the mergify/bp/rolling/pr-28 branch March 27, 2024 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants