2019-03-21 00:14:59 -04:00
|
|
|
|
|
|
|
# Copyright 2019 Open Source Robotics Foundation
|
|
|
|
# Distributed under the terms of the BSD license
|
|
|
|
|
2019-12-09 23:36:28 -05:00
|
|
|
{ lib, buildRosPackage, fetchurl, catkin, cmake-modules, cv-bridge, dynamic-reconfigure, geometry-msgs, image-transport, nodelet, roscpp, rostest, tf2, tf2-geometry-msgs, tf2-ros }:
|
2019-03-21 00:14:59 -04:00
|
|
|
buildRosPackage {
|
|
|
|
pname = "ros-melodic-image-rotate";
|
2019-06-26 22:39:38 -04:00
|
|
|
version = "1.13.0-r1";
|
2019-03-21 00:14:59 -04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-09-06 12:26:32 -04:00
|
|
|
url = "https://github.com/ros-gbp/image_pipeline-release/archive/release/melodic/image_rotate/1.13.0-1.tar.gz";
|
|
|
|
name = "1.13.0-1.tar.gz";
|
2019-06-26 22:39:38 -04:00
|
|
|
sha256 = "bbfb1e066ba98a6f4ea1d3b7586dc0f25219e3716f025a97f6d1b7b1587ddaf5";
|
2019-03-21 00:14:59 -04:00
|
|
|
};
|
|
|
|
|
2019-09-06 12:26:32 -04:00
|
|
|
buildType = "catkin";
|
2019-12-09 23:36:28 -05:00
|
|
|
buildInputs = [ cmake-modules geometry-msgs ];
|
2019-03-21 00:14:59 -04:00
|
|
|
checkInputs = [ rostest ];
|
2019-12-09 23:36:28 -05:00
|
|
|
propagatedBuildInputs = [ cv-bridge dynamic-reconfigure image-transport nodelet roscpp tf2 tf2-geometry-msgs tf2-ros ];
|
2019-04-06 22:15:06 -04:00
|
|
|
nativeBuildInputs = [ catkin ];
|
2019-03-21 00:14:59 -04:00
|
|
|
|
|
|
|
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>'';
|
2019-05-05 02:02:52 -04:00
|
|
|
license = with lib.licenses; [ bsdOriginal ];
|
2019-03-21 00:14:59 -04:00
|
|
|
};
|
|
|
|
}
|