mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-07-14 06:00:38 +03:00
43 lines
1.8 KiB
Nix
43 lines
1.8 KiB
Nix
|
|
# Copyright 2021 Open Source Robotics Foundation
|
|
# Distributed under the terms of the BSD license
|
|
|
|
{ lib, buildRosPackage, fetchurl, catkin, cmake-modules, cv-bridge, dynamic-reconfigure, geometry-msgs, image-transport, nodelet, roscpp, rostest, tf2, tf2-geometry-msgs, tf2-ros }:
|
|
buildRosPackage {
|
|
pname = "ros-melodic-image-rotate";
|
|
version = "1.15.0-r1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ros-gbp/image_pipeline-release/archive/release/melodic/image_rotate/1.15.0-1.tar.gz";
|
|
name = "1.15.0-1.tar.gz";
|
|
sha256 = "5c0bacf9c4f2a6761d532cb05d28d6fc877c2ec6b10471bbf1e59eede33449b1";
|
|
};
|
|
|
|
buildType = "catkin";
|
|
buildInputs = [ cmake-modules geometry-msgs ];
|
|
checkInputs = [ rostest ];
|
|
propagatedBuildInputs = [ cv-bridge dynamic-reconfigure image-transport nodelet roscpp tf2 tf2-geometry-msgs tf2-ros ];
|
|
nativeBuildInputs = [ catkin ];
|
|
|
|
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 ];
|
|
};
|
|
}
|