#NEWLINE# def from_tree( self , node ) : #NEWLINE# #INDENT# if ( node == None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( node . tag != 'inertial' ) : #NEWLINE# #INDENT# print ( ( 'Invalid node of type %s instead of inertial. Aborting.' % node . tag ) ) #NEWLINE# return #NEWLINE# #UNINDENT# self . pose = get_tag_pose ( node ) #NEWLINE# self . mass = get_tag ( node , 'mass' , 0 ) #NEWLINE# self . inertia = Inertia ( tree = get_node ( node , 'inertia' ) )