def __try_set_value_from_config(self, config, field, setter):
    "First, try to call `setter(config[field])`, and if this call doesn't succeed. set the field in config to\n        its value stored in this class.\n\n        :param config: The dynamic reconfigure config dictionary.\n        :type config: dict\n        :param field: The field name (both in :py:obj:`config` and in :py:obj:`self`).\n        :type field: basestring\n        :param setter: The setter to use to set the value.\n        :type setter: lambda function\n        "
    try:
        setter(config[field])
    except ValueError:
        config[field] = getattr(self, field)
First, try to call `setter(config[field])`, and if this call doesn't succeed. set the field in config to
its value stored in this class.

:param config: The dynamic reconfigure config dictionary.
:type config: dict
:param field: The field name (both in :py:obj:`config` and in :py:obj:`self`).
:type field: basestring
:param setter: The setter to use to set the value.
:type setter: lambda function
def __try_set_value_from_config(self, config, field, setter):
    "First, try to call `setter(config[field])`, and if this call doesn't succeed. set the field in config to\n        its value stored in this class.\n\n        :param config: The dynamic reconfigure config dictionary.\n        :type config: dict\n        :param field: The field name (both in :py:obj:`config` and in :py:obj:`self`).\n        :type field: basestring\n        :param setter: The setter to use to set the value.\n        :type setter: lambda function\n        "
    try:
        setter(config[field])
    except ValueError:
        config[field] = getattr(self, field)