2015-05-23 13:41:37 +00:00
|
|
|
#!/usr/bin/env python
|
2015-05-23 13:05:17 +00:00
|
|
|
PACKAGE = "hand_control"
|
|
|
|
|
|
|
|
from dynamic_reconfigure.parameter_generator_catkin import *
|
|
|
|
|
|
|
|
gen = ParameterGenerator()
|
|
|
|
|
|
|
|
#gen.add("int_param", int_t, 0, "An Integer parameter", 50, 0, 100)
|
|
|
|
|
|
|
|
# "filtre" node
|
|
|
|
gen.add("z_max", double_t, 0, "The maximal altitude of the hand", 50., 0.)
|
2015-05-23 20:46:42 +00:00
|
|
|
gen.add("hue", double_t, 0, "The color hue of the hand", 0., 0., 360.)
|
2015-05-23 13:05:17 +00:00
|
|
|
gen.add("delta_hue", double_t, 0, "The tolerance of the hue filter", 20., 0., 180.)
|
2015-05-23 20:40:44 +00:00
|
|
|
gen.add("sat_min", double_t, 0, "The minimum color saturation of the hand", 0.1, 0., 1.)
|
|
|
|
gen.add("sat_max", double_t, 0, "The maximum color saturation of the hand", 1., 0., 1.)
|
|
|
|
gen.add("val_min", double_t, 0, "The minimum color value of the hand", 0.1, 0., 1.)
|
|
|
|
gen.add("val_max", double_t, 0, "The maximum color value of the hand", 1., 0., 1.)
|
2015-05-23 13:05:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
#gen.add("bool_param", bool_t, 0, "A Boolean parameter", True)
|
|
|
|
|
2015-05-23 13:41:37 +00:00
|
|
|
exit(gen.generate(PACKAGE, "hand_control", "Filtre"))
|