2 PACKAGE = "toposens_markers"
3 NODE_NAME = "toposens_markers_node"
4 PARAMS_NAME = "TsMarkers"
6 from dynamic_reconfigure.parameter_generator_catkin import *
8 gen = ParameterGenerator()
9 gen.add("lifetime", double_t, 1, "Duration for which a marker should remain visible", 0.5, 0, 5)
10 gen.add("scale", double_t, 0, "Magnitude for resizing markers equally and simultaneously", 0.5, 0, 5)
11 gen.add("color_range", double_t, 0, "Range over which the color is scaled", 2, 0, 15)
13 ts_color_enum = gen.enum([gen.const("ColorScaleXAxis", int_t, 0, "Vary the color of the points accoring to their x-coordinate"),
14 gen.const("ColorScaleYAxis", int_t, 1, "Vary the color of the points accoring to their y-coordinate"),
15 gen.const("ColorScaleZAxis", int_t, 2, "Vary the color of the points accoring to their z-coordinate"),
16 gen.const("UniqueColors", int_t, 3, "Give each sensor their own color")],
17 "An enum to set color of the points")
20 gen.add("point_color", int_t, 0, "Coloring system for the points", 3, 0, 3, edit_method=ts_color_enum)
22 exit(gen.generate(PACKAGE, NODE_NAME, PARAMS_NAME))
24 # Make sure this file is given execution privileges
25 # chmod a+x cfg/TsMarkers.cfg