#NEWLINE# def materialFromAffordance( aff ) : #NEWLINE# #INDENT# color = colorFromAffordance ( aff ) #NEWLINE# return urdf . Material ( name = stringWithAffordanceId ( 'material_%s' , aff ) , color = color , texture = None )