Skip to content

metric_base

MetricBase

Bases: with_metaclass(ABCMeta, object)

Source code in OmniGibson/omnigibson/metrics/metric_base.py
class MetricBase(with_metaclass(ABCMeta, object)):
    def start_callback(self, env):
        pass

    def step_callback(self, env):
        pass

    def end_callback(self, env):
        pass

    @abstractmethod
    def gather_results(self):
        """Produce a dictionary of values for this metric, to be added onto demo information."""
        pass

gather_results() abstractmethod

Produce a dictionary of values for this metric, to be added onto demo information.

Source code in OmniGibson/omnigibson/metrics/metric_base.py
@abstractmethod
def gather_results(self):
    """Produce a dictionary of values for this metric, to be added onto demo information."""
    pass