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 lazy subscription to republisher #325

Merged

Conversation

bjsowa
Copy link
Contributor

@bjsowa bjsowa commented Sep 28, 2024

This PR add lazy subscription to republisher node using matched publisher events.

A simple use case I have in mind:

  1. I have a camera driver which retrieves jpeg-compressed images from camera and publishes them on image/compressed topic.
  2. I want to provide image topic with raw images for any nodes that need it.
  3. I don't want to decompress the images when there is no node which currently need the raw images.

@bjsowa bjsowa marked this pull request as ready for review September 28, 2024 17:00
@ahcorde
Copy link
Collaborator

ahcorde commented Sep 30, 2024

Pulls: #325
Gist: https://gist.githubusercontent.com/ahcorde/ed51c8a243a19c12f785a5912015644a/raw/7c76f55edaf8c06810bb1cadf4471b0a29e374b8/ros2.repos
BUILD args: --packages-above-and-dependencies image_transport --packages-above-and-dependencies image_transport
TEST args: --packages-above image_transport --packages-above image_transport
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/14631

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@ahcorde
Copy link
Collaborator

ahcorde commented Oct 1, 2024

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@ahcorde ahcorde merged commit 6cec0b6 into ros-perception:rolling Oct 1, 2024
2 checks passed
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.

2 participants