<commit_before>#!/usr/bin/env python2.7

PACKAGE='hanse_sonarlocalization'
import roslib; roslib.load_manifest(PACKAGE)

from dynamic_reconfigure.parameter_generator import *

gen = ParameterGenerator()

gen.add("distance_damping", double_t, 0, "distance_damping", 0.33, 0, 1)
gen.add("median_filter_width", int_t, 0, "medianFilterWidth", 4, 0, 30)
gen.add("median_filter_mu", double_t, 0, "medianFilterMu", 0.5, 0, 1)
gen.add("nms_filter_width", int_t, 0, "nmsFilterWidth", 4, 0, 30)
gen.add("length_cutoff", int_t, 0, "lengthCutoff", 256, 1, 256)
gen.add("pre_gain", double_t, 0, "preGain", 2, 0, 5)
gen.add("outside_slope", double_t, 0, "outsideSlope", 20, 0, 50)
gen.add("between_slope", double_t, 0, "betweenSlope", 50, 0, 200)
gen.add("final_gain", double_t, 0, "finalGain", 2, 0, 5)
gen.add("threshold", double_t, 0, "threshold", 0.5, 0, 1)

exit(gen.generate(PACKAGE, "sonarlocalization", "OnlineWallDetection"))<commit_msg>reduced wall detection length cutoff<commit_after>#!/usr/bin/env python2.7

PACKAGE='hanse_sonarlocalization'
import roslib; roslib.load_manifest(PACKAGE)

from dynamic_reconfigure.parameter_generator import *

gen = ParameterGenerator()

gen.add("distance_damping", double_t, 0, "distance_damping", 0.33, 0, 1)
gen.add("median_filter_width", int_t, 0, "medianFilterWidth", 4, 0, 30)
gen.add("median_filter_mu", double_t, 0, "medianFilterMu", 0.5, 0, 1)
gen.add("nms_filter_width", int_t, 0, "nmsFilterWidth", 4, 0, 30)
gen.add("length_cutoff", int_t, 0, "lengthCutoff", 246, 1, 256)
gen.add("pre_gain", double_t, 0, "preGain", 2, 0, 5)
gen.add("outside_slope", double_t, 0, "outsideSlope", 20, 0, 50)
gen.add("between_slope", double_t, 0, "betweenSlope", 50, 0, 200)
gen.add("final_gain", double_t, 0, "finalGain", 2, 0, 5)
gen.add("threshold", double_t, 0, "threshold", 0.5, 0, 1)

exit(gen.generate(PACKAGE, "sonarlocalization", "OnlineWallDetection"))
{'fraction_non_alphanumeric': 0.17488076311605724, 'fraction_numerical': 0.06041335453100159, 'mean_word_length': 7.391111111111111, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6742229', 'n_tokens_mistral': 869, 'n_tokens_neox': 740, 'n_words': 171}