I can't get real time position by swift->get_position(false, 2, async_callback_pos); when the swift pro execute "G0 X138.16 Y-56.98 Z38.1 F307.0"

swift->get_position(false, 2, async_callback_pos); shoud get positon when the swift pro execute move action. and if not ,it is useless.

Hello,
you can refer to the example below:

    import os
    import sys
    import time
    import functools
    sys.path.append(os.path.join(os.path.dirname(__file__), '../../..'))
    from uarm.wrapper import SwiftAPI

    """
    api test: report callback
    """
    def pos_callback(ret):
        print('report pos: {}, time: {}'.format(ret, time.time()))

    swift.register_report_position_callback(callback=pos_callback)
    swift.connect()
    swift.waiting_ready()

    swift.set_report_position(interval=0.1)
    swift.set_report_keys(on=True)
    swift.set_servo_detach()


    time.sleep(60)

    swift.set_report_position(interval=0)
    swift.set_report_keys(on=False)
    swift.set_servo_attach()

    swift.disconnect()