<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def generate_name(self, name=None):
        '''generate a Robot Name for the instance to use, if the user doesn't
           supply one.
        '''
        # If no name provided, use robot name
        if name == None:
            name = self.RobotNamer.generate()
        self.name = name.replace('-','_')