#NEWLINE# def setEnabled( self , enabled ) : #NEWLINE# #INDENT# if ( enabled and ( not self . subscriber ) ) : #NEWLINE# #INDENT# self . subscriber = lcmUtils . addSubscriber ( 'LCMGL.*' , callback = self . onMessage ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( not enabled ) and self . subscriber ) : #NEWLINE# #INDENT# lcmUtils . removeSubscriber ( self . subscriber ) #NEWLINE# self . subscriber = None