nix-ros-overlay/distros/humble/aruco-opencv/default.nix

26 lines
1.3 KiB
Nix

# Copyright 2025 Open Source Robotics Foundation
# Distributed under the terms of the BSD license
{ lib, buildRosPackage, fetchurl, ament-cmake, ament-cmake-copyright, ament-cmake-cpplint, ament-cmake-lint-cmake, ament-cmake-uncrustify, ament-cmake-xmllint, ament-lint-auto, aruco-opencv-msgs, cv-bridge, image-transport, python3Packages, rclcpp, rclcpp-components, rclcpp-lifecycle, tf2-geometry-msgs, tf2-ros, yaml-cpp }:
buildRosPackage {
pname = "ros-humble-aruco-opencv";
version = "2.3.1-r1";
src = fetchurl {
url = "https://github.com/ros2-gbp/aruco_opencv-release/archive/release/humble/aruco_opencv/2.3.1-1.tar.gz";
name = "2.3.1-1.tar.gz";
sha256 = "d429cd02e68c1f22f038cba2e564d3f6ef071737459eff17410e1929c64d2221";
};
buildType = "ament_cmake";
buildInputs = [ ament-cmake ];
checkInputs = [ ament-cmake-copyright ament-cmake-cpplint ament-cmake-lint-cmake ament-cmake-uncrustify ament-cmake-xmllint ament-lint-auto ];
propagatedBuildInputs = [ aruco-opencv-msgs cv-bridge image-transport python3Packages.img2pdf python3Packages.numpy python3Packages.opencv4 rclcpp rclcpp-components rclcpp-lifecycle tf2-geometry-msgs tf2-ros yaml-cpp ];
nativeBuildInputs = [ ament-cmake ];
meta = {
description = "ArUco marker detection using aruco module from OpenCV libraries.";
license = with lib.licenses; [ mit ];
};
}