ObstaclePlugin.cfg 1.2 KB

1234567891011121314151617181920
  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 apply 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, "The maximum height of any obstacle to be inserted into the costmap in meters.", 2, 0, 50)
  7. combo_enum = gen.enum([gen.const("Overwrite", int_t, 0, "Overwrite values"),
  8. gen.const("Maximum", int_t, 1, "Take the maximum of the values"),
  9. gen.const("Nothing", int_t, 99, "Do nothing")],
  10. "Method for combining layers enum")
  11. gen.add("combination_method", int_t, 0, "Method for combining two layers", 1, edit_method=combo_enum)
  12. #gen.add("max_obstacle_range", double_t, 0, "The default maximum distance from the robot at which an obstacle will be inserted into the cost map in meters.", 2.5, 0, 50)
  13. #gen.add("raytrace_range", double_t, 0, "The default range in meters at which to raytrace out obstacles from the map using sensor data.", 3, 0, 50)
  14. exit(gen.generate("costmap_2d", "costmap_2d", "ObstaclePlugin"))