Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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)