1
0
Fork 0
mirror of https://github.com/lopsided98/nix-ros-overlay.git synced 2025-07-14 22:20:34 +03:00
nix-ros-overlay/distros/foxy/image-rotate/default.nix

44 lines
1.9 KiB
Nix
Raw Normal View History

# Copyright 2020 Open Source Robotics Foundation
# Distributed under the terms of the BSD license
{ lib, buildRosPackage, fetchurl, ament-cmake, ament-cmake-gtest, ament-lint-auto, ament-lint-common, class-loader, cv-bridge, image-transport, rclcpp, rclcpp-components, tf2, tf2-geometry-msgs, tf2-ros }:
buildRosPackage {
pname = "ros-foxy-image-rotate";
version = "2.2.0-r2";
src = fetchurl {
url = "https://github.com/ros2-gbp/image_pipeline-release/archive/release/foxy/image_rotate/2.2.0-2.tar.gz";
name = "2.2.0-2.tar.gz";
sha256 = "3c792340b6a2b35517904daddb2db95919039b32b2c00816c6c5ff3bd72c7512";
};
buildType = "ament_cmake";
buildInputs = [ class-loader ];
checkInputs = [ ament-cmake-gtest ament-lint-auto ament-lint-common ];
propagatedBuildInputs = [ cv-bridge image-transport rclcpp rclcpp-components tf2 tf2-geometry-msgs tf2-ros ];
nativeBuildInputs = [ ament-cmake ];
meta = {
description = ''<p>
Contains a node that rotates an image stream in a way that minimizes
the angle between a vector in some arbitrary frame and a vector in the
camera frame. The frame of the outgoing image is published by the node.
</p>
<p>
This node is intended to allow camera images to be visualized in an
orientation that is more intuitive than the hardware-constrained
orientation of the physical camera. This is particularly helpful, for
example, to show images from the PR2's forearm cameras with a
consistent up direction, despite the fact that the forearms need to
rotate in arbitrary ways during manipulation.
</p>
<p>
It is not recommended to use the output from this node for further
computation, as it interpolates the source image, introduces black
borders, and does not output a camera_info.
</p>'';
license = with lib.licenses; [ bsdOriginal ];
};
}