def anonymous_name(id):
 import socket, random
 name = ('%s_%s_%s_%s' % (id, socket.gethostname(), os.getpid(), random.randint(0, sys.maxsize)))
 name = name.replace('.', '_')
 name = name.replace('-', '_')
 return name.replace(':', '_')

def anonymous_name ( id ) : import socket , random name = ( '%s_%s_%s_%s' % ( id , socket . gethostname ( ) , os . getpid ( ) , random . randint ( 0 , sys . maxsize ) ) ) name = name . replace ( '.' , '_' ) name = name . replace ( '-' , '_' ) return name . replace ( ':' , '_' )
generate a ros-legal anonymous name .