VoxelPlugin.cfg 1.4 KB

12345678910111213141516171819202122
  1. #!/usr/bin/env python
  2. from dynamic_reconfigure.parameter_generator_catkin import ParameterGenerator, bool_t, double_t, int_t
  3. gen = ParameterGenerator()
  4. gen.add("enabled", bool_t, 0, "Whether to use this plugin or not", True)
  5. gen.add("footprint_clearing_enabled", bool_t, 0, "Whether to clear the robot's footprint of lethal obstacles", True)
  6. gen.add("max_obstacle_height", double_t, 0, "Max Obstacle Height", 2.0, 0, 50)
  7. gen.add("origin_z", double_t, 0, "The z origin of the map in meters.", 0, 0)
  8. gen.add("z_resolution", double_t, 0, "The z resolution of the map in meters/cell.", 0.2, 0, 50)
  9. gen.add("z_voxels", int_t, 0, "The number of voxels to in each vertical column.", 10, 0, 16)
  10. gen.add("unknown_threshold", int_t, 0, 'The number of unknown cells allowed in a column considered to be known', 15, 0, 16)
  11. gen.add("mark_threshold", int_t, 0, 'The maximum number of marked cells allowed in a column considered to be free', 0, 0, 16)
  12. combo_enum = gen.enum([gen.const("Overwrite", int_t, 0, "Overwrite values"),
  13. gen.const("Maximum", int_t, 1, "Take the maximum of the values"),
  14. gen.const("Nothing", int_t, 99, "Do nothing")],
  15. "Method for combining layers enum")
  16. gen.add("combination_method", int_t, 0, "Method for combining two layers", 1, 0, 2, edit_method=combo_enum)
  17. exit(gen.generate("costmap_2d", "costmap_2d", "VoxelPlugin"))