From 3042ecc8996f507e25fe98d6f5131fbcd0086fb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez=20Cordero?= Date: Mon, 22 Jan 2024 16:04:25 +0100 Subject: [PATCH] Removed cfg files related with ROS 1 parameters (#911) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed cfg files related with ROS 1 parameters Signed-off-by: Alejandro Hernández Cordero --- image_proc/cfg/CropDecimate.cfg | 35 --------------- image_proc/cfg/Debayer.cfg | 26 ------------ image_proc/cfg/Rectify.cfg | 22 ---------- image_proc/cfg/Resize.cfg | 37 ---------------- image_publisher/cfg/ImagePublisher.cfg | 44 ------------------- image_rotate/cfg/ImageRotate.cfg | 59 -------------------------- image_view/cfg/ImageView.cfg | 29 ------------- 7 files changed, 252 deletions(-) delete mode 100755 image_proc/cfg/CropDecimate.cfg delete mode 100755 image_proc/cfg/Debayer.cfg delete mode 100755 image_proc/cfg/Rectify.cfg delete mode 100755 image_proc/cfg/Resize.cfg delete mode 100755 image_publisher/cfg/ImagePublisher.cfg delete mode 100755 image_rotate/cfg/ImageRotate.cfg delete mode 100755 image_view/cfg/ImageView.cfg diff --git a/image_proc/cfg/CropDecimate.cfg b/image_proc/cfg/CropDecimate.cfg deleted file mode 100755 index e00ff7578..000000000 --- a/image_proc/cfg/CropDecimate.cfg +++ /dev/null @@ -1,35 +0,0 @@ -#! /usr/bin/env python - -PACKAGE='image_proc' - -from dynamic_reconfigure.parameter_generator_catkin import * - -gen = ParameterGenerator() - -# Decimation parameters -gen.add("decimation_x", int_t, 0, "Number of pixels to decimate to one horizontally", 1, 1, 16) -gen.add("decimation_y", int_t, 0, "Number of pixels to decimate to one vertically", 1, 1, 16) - -# ROI parameters -# Maximums are arbitrary set to the resolution of a 5Mp Prosilica, since we can't set -# the dynamically. -gen.add("x_offset", int_t, 0, "X offset of the region of interest", 0, 0, 2447) -gen.add("y_offset", int_t, 0, "Y offset of the region of interest", 0, 0, 2049) -gen.add("width", int_t, 0, "Width of the region of interest", 0, 0, 2448) -gen.add("height", int_t, 0, "Height of the region of interest", 0, 0, 2050) - -interpolate_enum = gen.enum([ gen.const("NN", int_t, 0, "Nearest-neighbor sampling"), - gen.const("Linear", int_t, 1, "Bilinear interpolation"), - gen.const("Cubic", int_t, 2, "Bicubic interpolation over 4x4 neighborhood"), - gen.const("Area", int_t, 3, "Resampling using pixel area relation"), - gen.const("Lanczos4", int_t, 4, "Lanczos interpolation over 8x8 neighborhood")], - "interpolation type") - -gen.add("interpolation", int_t, 0, - "Sampling algorithm", - 0, 0, 4, edit_method = interpolate_enum) - -# First string value is node name, used only for generating documentation -# Second string value ("CropDecimate") is name of class and generated -# .h file, with "Config" added, so class CropDecimateConfig -exit(gen.generate(PACKAGE, "image_proc", "CropDecimate")) diff --git a/image_proc/cfg/Debayer.cfg b/image_proc/cfg/Debayer.cfg deleted file mode 100755 index b5bc6d9aa..000000000 --- a/image_proc/cfg/Debayer.cfg +++ /dev/null @@ -1,26 +0,0 @@ -#! /usr/bin/env python - -PACKAGE='image_proc' - -from dynamic_reconfigure.parameter_generator_catkin import * - -gen = ParameterGenerator() - -debayer_enum = gen.enum([ gen.const("Bilinear", int_t, 0, - "Fast algorithm using bilinear interpolation"), - gen.const("EdgeAware", int_t, 1, - "Edge-aware algorithm"), - gen.const("EdgeAwareWeighted", int_t, 2, - "Weighted edge-aware algorithm"), - gen.const("VNG", int_t, 3, - "Slow but high quality Variable Number of Gradients algorithm")], - "Debayering algorithm") - -gen.add("debayer", int_t, 0, - "Debayering algorithm", - 0, 0, 3, edit_method = debayer_enum) - -# First string value is node name, used only for generating documentation -# Second string value ("Debayer") is name of class and generated -# .h file, with "Config" added, so class DebayerConfig -exit(gen.generate(PACKAGE, "image_proc", "Debayer")) diff --git a/image_proc/cfg/Rectify.cfg b/image_proc/cfg/Rectify.cfg deleted file mode 100755 index c264cd291..000000000 --- a/image_proc/cfg/Rectify.cfg +++ /dev/null @@ -1,22 +0,0 @@ -#! /usr/bin/env python - -PACKAGE='image_proc' - -from dynamic_reconfigure.parameter_generator_catkin import * - -gen = ParameterGenerator() - -interpolate_enum = gen.enum([ gen.const("NN", int_t, 0, "Nearest neighbor"), - gen.const("Linear", int_t, 1, "Linear"), - gen.const("Cubic", int_t, 2, "Cubic"), - gen.const("Lanczos4", int_t, 4, "Lanczos4")], - "interpolation type") - -gen.add("interpolation", int_t, 0, - "Interpolation algorithm between source image pixels", - 1, 0, 4, edit_method = interpolate_enum) - -# First string value is node name, used only for generating documentation -# Second string value ("Rectify") is name of class and generated -# .h file, with "Config" added, so class RectifyConfig -exit(gen.generate(PACKAGE, "image_proc", "Rectify")) diff --git a/image_proc/cfg/Resize.cfg b/image_proc/cfg/Resize.cfg deleted file mode 100755 index a29965434..000000000 --- a/image_proc/cfg/Resize.cfg +++ /dev/null @@ -1,37 +0,0 @@ -#! /usr/bin/env python - -from dynamic_reconfigure.parameter_generator_catkin import * - - -PACKAGE = 'image_proc' -ID = 'Resize' - -gen = ParameterGenerator() - -interpolate_enum = gen.enum([gen.const('NN', int_t, 0, 'Nearest neighbor'), - gen.const('Linear', int_t, 1, 'Linear'), - gen.const('Cubic', int_t, 2, 'Cubic'), - gen.const('Lanczos4', int_t, 4, 'Lanczos4')], - 'interpolation type') -gen.add('interpolation', int_t, level=0, - description='Interpolation algorithm between source image pixels', - default=1, min=0, max=4, edit_method=interpolate_enum) - -gen.add('use_scale', bool_t, level=0, - description='Flag to use scale instead of static size.', - default=True) -gen.add('scale_height', double_t, level=0, - description='Scale of height.', - default=1, min=0, max=10) -gen.add('scale_width', double_t, level=0, - description='Scale of width', - default=1, min=0, max=10) - -gen.add('height', int_t, level=0, - description='Destination height. Ignored if negative.', - default=-1, min=-1) -gen.add('width', int_t, level=0, - description='Destination width. Ignored if negative.', - default=-1, min=-1) - -exit(gen.generate(PACKAGE, PACKAGE, ID)) diff --git a/image_publisher/cfg/ImagePublisher.cfg b/image_publisher/cfg/ImagePublisher.cfg deleted file mode 100755 index 6b1766039..000000000 --- a/image_publisher/cfg/ImagePublisher.cfg +++ /dev/null @@ -1,44 +0,0 @@ -#! /usr/bin/env python -# Software License Agreement (BSD License) -# -# Copyright (c) 2010, Willow Garage, Inc. -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following -# disclaimer in the documentation and/or other materials provided -# with the distribution. -# * Neither the name of Willow Garage, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - - -PACKAGE='image_publisher' - -from dynamic_reconfigure.parameter_generator_catkin import * - -gen = ParameterGenerator() -gen.add("frame_id", str_t, 0, "Frame to use for camera image", "camera") -gen.add("publish_rate", double_t, 0, "Rate to publish image", 10, 0.1, 30) -gen.add("camera_info_url", str_t, 0, "Path to camera_info", "") - -exit(gen.generate(PACKAGE, "image_publisher", "ImagePublisher")) diff --git a/image_rotate/cfg/ImageRotate.cfg b/image_rotate/cfg/ImageRotate.cfg deleted file mode 100755 index 892b23185..000000000 --- a/image_rotate/cfg/ImageRotate.cfg +++ /dev/null @@ -1,59 +0,0 @@ -#! /usr/bin/env python -# Software License Agreement (BSD License) -# -# Copyright (c) 2010, Willow Garage, Inc. -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following -# disclaimer in the documentation and/or other materials provided -# with the distribution. -# * Neither the name of Willow Garage, Inc. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - - -PACKAGE='image_rotate' - -from dynamic_reconfigure.parameter_generator_catkin import * - -gen = ParameterGenerator() -gen.add("target_frame_id", str_t, 0, "Frame in which the target vector is specified. Empty means the input frame.", "base_link") -gen.add("target_x", double_t, 0, "X coordinate of the target vector", 0, -10, 10) -gen.add("target_y", double_t, 0, "Y coordinate of the target vector", 0, -10, 10) -gen.add("target_z", double_t, 0, "Z coordinate of the target vector", 1, -10, 10) - -gen.add("source_frame_id", str_t, 0, "Frame in which the source vector is specified. Empty means the input frame.", "") -gen.add("source_x", double_t, 0, "X coordinate of the direction the target should be aligned with.", 0, -10, 10) -gen.add("source_y", double_t, 0, "Y coordinate of the direction the target should be aligned with.", -1, -10, 10) -gen.add("source_z", double_t, 0, "Z coordinate of the direction the target should be aligned with.", 0, -10, 10) - -gen.add("output_frame_id", str_t, 0, "Frame to publish for the image's new orientation. Empty means add '_rotated' suffix to the image frame.", "") -gen.add("input_frame_id", str_t, 0, "Frame to use for the original camera image. Empty means that the frame in the image or camera_info should be used depending on use_camera_info.", "") - -gen.add("use_camera_info", bool_t, 0, "Indicates that the camera_info topic should be subscribed to to get the default input_frame_id. Otherwise the frame from the image message will be used.", True) - -gen.add("max_angular_rate", double_t, 0, "Limits the rate at which the image can rotate (rad/s). Zero means no limit.", 10, 0, 100) - -gen.add("output_image_size", double_t, 0, "Size of the output image as a function of the input image size. Can be varied continuously between the following special settings: 0 ensures no black ever appears, 1 is small image dimension, 2 is large image dimension, 3 is image diagonal.", 2, 0, 3) - -exit(gen.generate(PACKAGE, "image_rotate", "ImageRotate")) diff --git a/image_view/cfg/ImageView.cfg b/image_view/cfg/ImageView.cfg deleted file mode 100755 index 8cc088835..000000000 --- a/image_view/cfg/ImageView.cfg +++ /dev/null @@ -1,29 +0,0 @@ -#! /usr/bin/env python - -PACKAGE='image_view' -from dynamic_reconfigure.parameter_generator_catkin import * - -gen = ParameterGenerator() - -edit_method_colormap = gen.enum([ - gen.const("NO_COLORMAP", int_t, -1, "NO_COLORMAP"), - gen.const("AUTUMN", int_t, 0, "COLORMAP_AUTUMN"), - gen.const("BONE", int_t, 1, "COLORMAP_BONE"), - gen.const("JET", int_t, 2, "COLORMAP_JET"), - gen.const("WINTER", int_t, 3, "COLORMAP_WINTER"), - gen.const("RAINBOW", int_t, 4, "COLORMAP_RAINBOW"), - gen.const("OCEAN", int_t, 5, "COLORMAP_OCEAN"), - gen.const("SUMMER", int_t, 6, "COLORMAP_SUMMER"), - gen.const("SPRING", int_t, 7, "COLORMAP_SPRING"), - gen.const("COOL", int_t, 8, "COLORMAP_COOL"), - gen.const("HSV", int_t, 9, "COLORMAP_HSV"), - gen.const("PINK", int_t, 10, "COLORMAP_PINK"), - gen.const("HOT", int_t, 11, "COLORMAP_HOT"), -], "colormap") - -gen.add('do_dynamic_scaling', bool_t, 0, 'Do dynamic scaling about pixel values or not', False) -gen.add('colormap', int_t, 0, "colormap", -1, -1, 11, edit_method=edit_method_colormap); -gen.add('min_image_value', double_t, 0, "Minimum image value for scaling depth/float image.", default=0, min=0); -gen.add('max_image_value', double_t, 0, "Maximum image value for scaling depth/float image.", default=0, min=0); - -exit(gen.generate(PACKAGE, 'image_view', 'ImageView'))