def __init__()

in device_info_pkg/device_info_pkg/device_info_node.py [0:0]


    def __init__(self):
        """Create a DeviceInfoNode.
        """
        super().__init__("device_info_node")

        # Apt cache.
        self.apt_cache = apt.Cache()

        # Variables to store the version and secure boot details.
        self.hardware_version = None
        self.software_version = None
        self.sb = None

        # Initialize the variables.
        self.load_hardware_version()
        self.load_software_version()
        self.load_sb()

        # Service to get the DeepRacer hardware and software version details.
        self.get_device_info_service = self.create_service(GetDeviceInfoSrv,
                                                           constants.GET_DEVICE_INFO_SERVICE_NAME,
                                                           self.get_device_info)

        # Heartbeat timer.
        self.timer_count = 0
        self.timer = self.create_timer(5.0, self.timer_callback)