(self, x_y)
return [x_y[0] - self.icons['roomba'].size[0] // 2,
                x_y[1] - self.icons['roomba'].size[1] // 2,
                x_y[0] + self.icons['roomba'].size[0] // 2,
                x_y[1] + self.icons['roomba'].size[1] // 2]
calculate roomba position as list
calculate roomba position as list
calculate roomba position as list
def get_roomba_pos(self, x_y):
        '''
        calculate roomba position as list
        '''
        return [x_y[0] - self.icons['roomba'].size[0] // 2,
                x_y[1] - self.icons['roomba'].size[1] // 2,
                x_y[0] + self.icons['roomba'].size[0] // 2,
                x_y[1] + self.icons['roomba'].size[1] // 2]
def get_roomba_pos ( self , x_y ) : return [ x_y [ 0 ] - self . icons [ 'roomba' ] . size [ 0 ] // 2 , x_y [ 1 ] - self . icons [ 'roomba' ] . size [ 1 ] // 2 , x_y [ 0 ] + self . icons [ 'roomba' ] . size [ 0 ] // 2 , x_y [ 1 ] + self . icons [ 'roomba' ] . size [ 1 ] // 2 ]