#!/usr/bin/env python

PACKAGE = 'stairdetect'

from dynamic_reconfigure.parameter_generator_catkin import *

gen = ParameterGenerator()
gen.add("debug",                    bool_t,   0, "show/hide debug output", True)

gen.add("morph_kernel_size",        int_t,    0, "morph kernel size",      2,  1, 9)
gen.add("morph_num_iter",           int_t,    0, "morph num iteration",    2,  1, 10)

gen.add("median_kernel_size",       int_t,    0, "median kernel size",    3,  1, 11)

gen.add("lsd_scale",                double_t, 0, "lsd: lsd_scale",       0.25,  0.1, 1)
gen.add("lsd_sigma_scale",          double_t, 0, "lsd: lsd_sigma_scale", 0.25,  0.1, 1)
gen.add("lsd_quant",                double_t, 0, "lsd: lsd_quant",       2.0,  1, 10)
gen.add("lsd_angle_th",             double_t, 0, "lsd: lsd_angle_th",    22.5, 0.1, 360)
gen.add("lsd_log_eps",              double_t, 0, "lsd: lsd_log_eps",     0.0,  0, 1)
gen.add("lsd_density_th",           double_t, 0, "lsd: lsd_density_th",  0.7,  0, 1)

gen.add("staircase_min_area",       double_t, 0, "staircase_min_area",   0.5,  0.5, 8)
gen.add("staircase_max_area",       double_t, 0, "staircase_max_area",   10,  8, 30)


exit(gen.generate(PACKAGE, "stairdetect", "StairDetect"))
