(self, roomba_pos)
Paste various Roomba problem icons onto the problems image
Paste various Roomba problem icons onto the problems image
Paste various Roomba problem icons onto the problems image
def draw_problem_roombas(self, roomba_pos):
        '''
        Paste various Roomba problem icons onto the problems image
        '''
        if self.flags.get('stuck'):
            self.log.info("MAP: Drawing stuck Roomba")
            self.roomba_problem.paste(self.icons['stuck'],roomba_pos)
        if self.flags.get('cancelled'):
            self.log.info("MAP: Drawing cancelled Roomba")
            self.roomba_problem.paste(self.icons['cancelled'],roomba_pos)
        if self.flags.get('bin_full'):
            self.log.info("MAP: Drawing full bin")
            self.roomba_problem.paste(self.icons['bin full'],roomba_pos)
        if self.flags.get('battery_low'):
            self.log.info("MAP: Drawing low battery Roomba")
            self.roomba_problem.paste(self.icons['battery'],roomba_pos)
        if self.flags.get('tank_low'):
            self.log.info("MAP: Drawing tank low Braava")
            self.roomba_problem.paste(self.icons['tank low'],roomba_pos)
def draw_problem_roombas ( self , roomba_pos ) : if self . flags . get ( 'stuck' ) : self . log . info ( "MAP: Drawing stuck Roomba" ) self . roomba_problem . paste ( self . icons [ 'stuck' ] , roomba_pos ) if self . flags . get ( 'cancelled' ) : self . log . info ( "MAP: Drawing cancelled Roomba" ) self . roomba_problem . paste ( self . icons [ 'cancelled' ] , roomba_pos ) if self . flags . get ( 'bin_full' ) : self . log . info ( "MAP: Drawing full bin" ) self . roomba_problem . paste ( self . icons [ 'bin full' ] , roomba_pos ) if self . flags . get ( 'battery_low' ) : self . log . info ( "MAP: Drawing low battery Roomba" ) self . roomba_problem . paste ( self . icons [ 'battery' ] , roomba_pos ) if self . flags . get ( 'tank_low' ) : self . log . info ( "MAP: Drawing tank low Braava" ) self . roomba_problem . paste ( self . icons [ 'tank low' ] , roomba_pos )