How to use the qi.Logger function in qi

To help you get started, we’ve selected a few qi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aldebaran / naoqi_navigation_samples / places / explorationManager.py View on Github external
def __init__(self, session):
        self.session = session
        self.nav = self.session.service("ALNavigation")
        self.tabletService = self.session.service("ALTabletService")
        self.memory = self.session.service("ALMemory")
        self.application_name = "ExplorationManager"
        self.explorer_application_name = "Explorer"
        self.current_places = None
        self.logger = qi.Logger("ExplorationManager")
        self.explo_extension = ".explo"
        self.places_extension = ".places"
        self.packageUid = "exploration-manager"
        self.subscribers = {
            "Places/LoadPlaces": {"callback": self.loadPlaces},
            "Places/Save": {"callback": self.savePlacesCallback},
            "Places/AddPlace": {"callback": self.addPlaceCallback},
            "Places/Reset": {"callback":self.resetPlacesCallback}
        }
        self.events = {"metricalMap": "ExplorationManager/MetricalMap",
                       "places": "ExplorationManager/Places"}
        self.eventHelper = EventHelper(self.memory, self.subscribers)