Compare commits

..

No commits in common. "master" and "dev" have entirely different histories.
master ... dev

4 changed files with 6 additions and 15 deletions

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 4.2)
cmake_minimum_required(VERSION 3.5)
project(image2rtsp)
# Default to C99
@ -34,10 +34,7 @@ include_directories(${OpenCV_INCLUDE_DIRS})
file(GLOB SOURCES src/video.cpp)
add_executable(image2rtsp src/image2rtsp.cpp ${SOURCES})
target_link_libraries(image2rtsp
rclcpp::rclcpp
${sensor_msgs_TARGETS}
)
ament_target_dependencies(image2rtsp rclcpp sensor_msgs)
include_directories(
${GST_INCLUDE_DIRS}

View File

@ -98,4 +98,4 @@ ros2 launch image2rtsp rtsp.launch.py
```
## Note
- The YAML configuration allows you to fully customize the pipeline according to your needs (Useful insights can be found, for example, [here](https://github.com/maladzenkau/image2rtsp/pull/9)). This package does not provide any built-in acceleration. As its stability has not been validated across a wide range of Linux systems using advanced hardware or software techniques, support for such configurations is left to the user. There are no plans to update the package to support GPU/CPU acceleration. Please do not open issues related to software/hardware acceleration if they are directly related to the GStreamer pipeline itself.
- The YAML configuration allows you to fully customize the pipeline according to your needs. This package does not provide any built-in acceleration. As its stability has not been validated across a wide range of Linux systems using advanced hardware or software techniques, support for such configurations is left to the user. There are no plans to update the package to support GPU/CPU acceleration. Please do not open issues related to software/hardware acceleration if they are directly related to the GStreamer pipeline itself.

View File

@ -11,13 +11,7 @@
<depend>rclcpp</depend>
<depend>sensor_msgs</depend>
<depend>python3-opencv</depend>
<build_depend>gstreamer1.0-plugins-base</build_depend>
<build_depend>gstreamer1.0-plugins-good</build_depend>
<build_depend>gstreamer1.0-plugins-bad</build_depend>
<build_depend>gstreamer1.0-plugins-ugly</build_depend>
<build_depend>libgstrtspserver-1.0-dev</build_depend>
<depend>open_CV</depend>
<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>

View File

@ -172,7 +172,7 @@ void Image2rtsp::topic_callback(const sensor_msgs::msg::Image::SharedPtr msg){
void Image2rtsp::compressed_topic_callback(const sensor_msgs::msg::CompressedImage::SharedPtr msg){
if (appsrc == NULL) return;
// Decompress the image
cv::Mat img = cv::imdecode(cv::Mat(msg->data.to_vector()), cv::IMREAD_UNCHANGED);
cv::Mat img = cv::imdecode(cv::Mat(msg->data), cv::IMREAD_UNCHANGED);
if (img.empty()) {
RCLCPP_ERROR(this->get_logger(), "Failed to decompress image");
return;