18 param = rospy.get_param(param_name,
'')
21 element.strip().strip(
"'")
22 for element
in param.strip(
'[').strip(
']').split(
',')
23 if len(element.strip().strip(
"'")) > 0]
26 services_glob =
get_param(
'~services_glob')
32 if globs
is not None and len(globs) > 0:
33 return filter(
lambda x:
any_match(x, globs), full_list)
39 return globs
is None or len(globs) == 0
or any(fnmatch.fnmatch(str(query), glob)
for glob
in globs)
def filter_globs(globs, full_list)
def any_match(query, globs)
def get_param(name, default, params_glob)