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

How to let ros-realsense2 stop publishing some topics #3283

Open
Pittmann-XIE opened this issue Dec 20, 2024 · 1 comment
Open

How to let ros-realsense2 stop publishing some topics #3283

Pittmann-XIE opened this issue Dec 20, 2024 · 1 comment
Labels

Comments

@Pittmann-XIE
Copy link

Required Info
Camera Model { D405 }
Firmware Version (Open RealSense Viewer --> Click info)
Operating System & Version { Linux (Ubuntu 24)}
Kernel Version (Linux Only) (6.8.0-49-generic)
Platform PC
Librealsense SDK Version {2.55.1-1noble.20240702.042211 }
Language {python }
Segment {Robot }
ROS Distro {jazzy}
RealSense ROS Wrapper Version {4.55.1}

Issue Description

Goal

I want the realsense camera don't publish some specific topics, i.e.: don't publish "camera/color/image_rect_raw" but only publish
"camera/color/image_rect_raw/compressed".

Why I want to do this?

I want to reduce the resource consumption of the ros2 system. Therefore, it may be better to avoid publishing unused topics.

Thanks in advance!

@Pittmann-XIE Pittmann-XIE changed the title How to let ros-realsense2 stop publish unnecessary topics How to let ros-realsense2 stop publishing some topics Dec 20, 2024
@MartyG-RealSense
Copy link
Collaborator

Hi @Pittmann-XIE You can unsubscribe from specific topics after launch, though it is somewhat complicated to do so. References about creating an unsubscription mechanism can be found at #1909 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants