#! /usr/bin/env python PACKAGE='pcl_ros' from dynamic_reconfigure.parameter_generator_catkin import * gen = ParameterGenerator() #enum = gen.enum ([ gen.const("ANN", int_t, 0, "ANN"), gen.const("FLANN", int_t, 1, "FLANN"), gen.const("organized", int_t, 2, "Dense/organized data locator") ], "Set the spatial locator") # def add (self, name, paramtype, level, description, default = None, min = None, max = None, edit_method = ""): gen.add ("k_search", int_t, 0, "Number of k-nearest neighbors to search for", 10, 0, 1000) gen.add ("radius_search", double_t, 0, "Sphere radius for nearest neighbor search", 0.0, 0.0, 0.5) #gen.add ("spatial_locator", int_t, 0, "Set the spatial locator", 0, 0, 2, enum) #gen.add ("spatial_locator", str_t, 0, "Set the spatial locator", "ANN") exit (gen.generate (PACKAGE, "pcl_ros", "Feature"))