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 QoS profile query parameters #133

Merged
merged 2 commits into from
Jun 28, 2024
Merged

Conversation

sea-bass
Copy link
Contributor

@sea-bass sea-bass commented Feb 22, 2023

Public API Changes
N/A

Description
This PR add a qos_profile query parameter that allows specifying a non-default (QoS) profile for the ImageTransportImageStreamer and ROSCompressedStreamer classes, which are the two that create ROS 2 subscribers with the default QoS profile.

For example, to use the sensor data proflie, you could go to, e.g., the following URL:

http://localhost:8080/stream_viewer?topic=/camera/color/image_raw&qos_profile=sensor_data

This doesn't support all the profiles that exist in rclcpp, but maybe some of the common ones? It's easy enough to add more as people need them. For our use case at PickNik, we needed the sensor_data profile to get things working, so that's our motivation.

src/image_streamer.cpp Outdated Show resolved Hide resolved
@EzraBrooks
Copy link

@sea-bass we've been using this in prod for a long time, if you want to finish this up we can merge it!

@sea-bass
Copy link
Contributor Author

sea-bass commented Jun 28, 2024

@sea-bass we've been using this in prod for a long time, if you want to finish this up we can merge it!

It took me an eternity to tweak 2 lines, but it is ready.

Fun fact: I tried building on my personal laptop that runs Ubuntu 24.04 / Rolling and this does not compile for 2 reasons.

Filed an issue to track this: #143

@sea-bass sea-bass requested a review from EzraBrooks June 28, 2024 04:50
@sea-bass sea-bass merged commit eb9af5f into RobotWebTools:ros2 Jun 28, 2024
@sea-bass sea-bass deleted the qos-settings branch June 28, 2024 14:44
bjsowa pushed a commit to fictionlab/web_video_server that referenced this pull request Sep 17, 2024
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