#!/usr/bin/env python
PACKAGE = "tr_hub_parser"

from dynamic_reconfigure.parameter_generator_catkin import *

gen = ParameterGenerator()

mode_enum = gen.enum([ gen.const("Precise", int_t, 0, "Precise"),
		       gen.const("Fast",      int_t, 1, "Fast"),
                       gen.const("Outdoor", int_t, 2, "Outdoor")],
                     "Set the working mode")

gen.add("Mode", int_t, 0, "Set the mode", 1, 0, 1, edit_method=mode_enum)

exit(gen.generate(PACKAGE, "tr_hub_parser", "Tr_hub_parser"))


#!/usr/bin/env python
PACKAGE = "tr_hub_parser"

from dynamic_reconfigure.parameter_generator_catkin import *

gen = ParameterGenerator()

mode_enum = gen.enum([ gen.const("Precise", int_t, 0, "Precise"),
		       gen.const("Fast",      int_t, 1, "Fast"),
                       gen.const("Outdoor", int_t, 2, "Outdoor")],
                     "Set the working mode")

gen.add("Mode", int_t, 0, "Set the mode", 1, 0, 1, edit_method=mode_enum)

exit(gen.generate(PACKAGE, "tr_hub_parser", "tr_hub_parser"))


Fix gen.generate() for dynamic reconfigure
Fix gen.generate() for dynamic reconfigure
