2019-03-21 00:14:59 -04:00
|
|
|
|
|
|
|
# Copyright 2019 Open Source Robotics Foundation
|
|
|
|
# Distributed under the terms of the BSD license
|
|
|
|
|
2019-04-06 22:15:06 -04:00
|
|
|
{ lib, buildRosPackage, fetchurl, cmake-modules, tf2-geometry-msgs, image-transport, catkin, cv-bridge, tf2-ros, roscpp, tf2, rostest, dynamic-reconfigure, nodelet, geometry-msgs }:
|
2019-03-21 00:14:59 -04:00
|
|
|
buildRosPackage {
|
|
|
|
pname = "ros-melodic-image-rotate";
|
|
|
|
version = "1.12.23";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = https://github.com/ros-gbp/image_pipeline-release/archive/release/melodic/image_rotate/1.12.23-0.tar.gz;
|
|
|
|
sha256 = "300158018b97ce2b2f3cdfac00889d443b74165b3fb49105317148c76657638a";
|
|
|
|
};
|
|
|
|
|
2019-04-06 22:15:06 -04:00
|
|
|
buildInputs = [ cmake-modules tf2-geometry-msgs image-transport cv-bridge roscpp tf2-ros tf2 dynamic-reconfigure nodelet geometry-msgs ];
|
2019-03-21 00:14:59 -04:00
|
|
|
checkInputs = [ rostest ];
|
|
|
|
propagatedBuildInputs = [ tf2 cv-bridge tf2-ros tf2-geometry-msgs dynamic-reconfigure image-transport nodelet roscpp ];
|
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>'';
|
|
|
|
#license = lib.licenses.BSD;
|
|
|
|
};
|
|
|
|
}
|