def setMode(self, mode='visualization'):
        '''
        Switches between visualization and real robot operation.
        mode='visualization'
        mode='robot'
        '''

        if (mode == 'visualization'):
            print "Setting mode to VISUALIZATION"
            self.useDevelopment = True

            self.visOnly = True
            self.planFromCurrentRobotState = False
        else:
            print "Setting mode to ROBOT OPERATION"
            self.useDevelopment = False

            self.visOnly = False
            self.planFromCurrentRobotState = True
dataset/ETHPy150Open RobotLocomotion/director/src/python/director/mappingdemo.py/MappingDemo.setMode/original