INNER CODE UNIT · Python

__init__

introlab/rtabmap · doxygen/generate_parameters_page.py:59

    def __init__(self, prefix, name, type_, default, description, branch):
        self.prefix = prefix
        self.name = name
        self.type = type_
        self.description = description
        # (default, branch) pairs: more than one when the parameter is declared
        # in several #if branches. `branch` is the innermost condition only:
        # the branches are read in order, first match wins, so the enclosing
        # negations would only repeat what the previous rows already said.
        self.defaults = [(default, branch)]

    @property
    def key(self):
        return '%s/%s' % (self.prefix, self.name)

    @property
    def accessor(self):
        return 'k%s%s' % (self.prefix, self.name)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…