-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync ROS 2 branch up to version 0.2.1 (#95)
* 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
- Loading branch information
1 parent
84b410b
commit ffdf25c
Showing
15 changed files
with
411 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#ifndef PNG_STREAMERS_H_ | ||
#define PNG_STREAMERS_H_ | ||
|
||
#include <image_transport/image_transport.h> | ||
#include "web_video_server/image_streamer.h" | ||
#include "async_web_server_cpp/http_request.hpp" | ||
#include "async_web_server_cpp/http_connection.hpp" | ||
#include "web_video_server/multipart_stream.h" | ||
|
||
namespace web_video_server | ||
{ | ||
|
||
class PngStreamer : public ImageTransportImageStreamer | ||
{ | ||
public: | ||
PngStreamer(const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, | ||
rclcpp::Node::SharedPtr nh); | ||
~PngStreamer(); | ||
protected: | ||
virtual void sendImage(const cv::Mat &, const rclcpp::Time &time); | ||
|
||
private: | ||
MultipartStream stream_; | ||
int quality_; | ||
}; | ||
|
||
class PngStreamerType : public ImageStreamerType | ||
{ | ||
public: | ||
boost::shared_ptr<ImageStreamer> create_streamer(const async_web_server_cpp::HttpRequest &request, | ||
async_web_server_cpp::HttpConnectionPtr connection, | ||
rclcpp::Node::SharedPtr nh); | ||
std::string create_viewer(const async_web_server_cpp::HttpRequest &request); | ||
}; | ||
|
||
class PngSnapshotStreamer : public ImageTransportImageStreamer | ||
{ | ||
public: | ||
PngSnapshotStreamer(const async_web_server_cpp::HttpRequest &request, | ||
async_web_server_cpp::HttpConnectionPtr connection, rclcpp::Node::SharedPtr nh); | ||
~PngSnapshotStreamer(); | ||
protected: | ||
virtual void sendImage(const cv::Mat &, const rclcpp::Time &time); | ||
|
||
private: | ||
int quality_; | ||
}; | ||
|
||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.