2024-09-13 14:15:34 +00:00
|
|
|
|
2025-01-03 13:42:37 +00:00
|
|
|
# Copyright 2025 Open Source Robotics Foundation
|
2024-09-13 14:15:34 +00:00
|
|
|
# Distributed under the terms of the BSD license
|
|
|
|
|
|
|
|
{ lib, buildRosPackage, fetchurl, ament-cmake, ament-cmake-clang-format, ament-cmake-gtest, ament-cmake-ros, ament-lint-auto, ament-lint-common, cv-bridge, ffmpeg, opencv, pkg-config, rclcpp, ros-environment, sensor-msgs, std-msgs }:
|
|
|
|
buildRosPackage {
|
|
|
|
pname = "ros-rolling-ffmpeg-encoder-decoder";
|
|
|
|
version = "1.0.1-r1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ros2-gbp/ffmpeg_encoder_decoder-release/archive/release/rolling/ffmpeg_encoder_decoder/1.0.1-1.tar.gz";
|
|
|
|
name = "1.0.1-1.tar.gz";
|
|
|
|
sha256 = "d6adae78af221fb7fda9354ec8dfe27fa8d594bfa26a34662745f33022aab404";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildType = "ament_cmake";
|
|
|
|
buildInputs = [ ament-cmake ament-cmake-ros pkg-config ros-environment ];
|
|
|
|
checkInputs = [ ament-cmake-clang-format ament-cmake-gtest ament-lint-auto ament-lint-common ];
|
|
|
|
propagatedBuildInputs = [ cv-bridge ffmpeg opencv opencv.cxxdev rclcpp sensor-msgs std-msgs ];
|
|
|
|
nativeBuildInputs = [ ament-cmake ament-cmake-ros pkg-config ros-environment ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "ROS2 convenience wrapper around ffmpeg for encoding/decoding";
|
|
|
|
license = with lib.licenses; [ asl20 ];
|
|
|
|
};
|
|
|
|
}
|