def on_packet(packet):
print("<STR_LIT>".format(packet.framenumber))<EOL>header, markers = packet.get_3d_markers()<EOL>print("<STR_LIT>".format(header))<EOL>for marker in markers:<EOL><INDENT>print("<STR_LIT:\t>", marker)<EOL><DEDENT>
Callback function that is called everytime a data packet arrives from QTM