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

Restream buffered frames with minimum publish rate #88

Conversation

viktorku
Copy link
Member

@viktorku viktorku commented May 3, 2019

Image topics that are occasionally publishing end up buffered internally if not re-streamed at some rate. This PR adds an optional publish_rate parameter which if provided will make the server continuously restream messages older than the publish rate.

PS. We have been using this for many years at Pickit, albeit on an old diverged fork. This adapts some work @psoetens did four years ago, on top of the latest mainline version.

083332e
2fb83e0
7180287
6ce0eed

@jihoonl
Copy link
Member

jihoonl commented May 7, 2019

This cannot be merged until travis get fixed. This will be approved after #89 get merged.

@viktorku viktorku requested a review from jihoonl May 8, 2019 14:24
@viktorku
Copy link
Member Author

Merging this..

@viktorku viktorku merged commit 8e828bb into RobotWebTools:develop May 10, 2019
@viktorku viktorku deleted the revive-restreaming-buffered-frames branch May 10, 2019 12:10
@msadowski
Copy link

@viktorku thanks a lot for this PR! It's very useful! I just tested it and it works perfectly! Are there any plans to release this to the debs any time soon?

@jihoonl
Copy link
Member

jihoonl commented Jun 5, 2019

@msadowski I just rolled the new version. It should be available in the next sync

@msadowski
Copy link

@msadowski I just rolled the new version. It should be available in the next sync

Great, thanks!

dirk-thomas added a commit that referenced this pull request Sep 19, 2019
* fix SteadyTimer check for backported ROS versions (#71)

i.e. on current kinetic

* Add PngStreamer (#74)

* lax rule for topic name (#77)

* Add a workaround for MultipartStream constant busy state (#83)

* Add a workaround for MultipartStream constant busy state
* Remove C++11 features

* Add "default_stream_type" parameter (#84)

This allows users to specify default stream type in their .launch files. Using a "ros_compressed" stream type sometimes
results in a much lower resource consumption, and having it set as a default is much nicer for end users.

* update changelog

* 0.2.0

* Fall back to mjpeg if ros_compressed is unavailable (#87)

* Update travis config (#89)

* Restream buffered frames with minimum publish rate (#88)

* Restream buffered frames with minimum publish rate

* Implement restreaming for ros_compressed_streamer

* update changelog

* 0.2.1
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.

3 participants