Send the mocap data to PX4 with Dronekit

Does anyone know how to send mocap dat to PX4 with dronekit, I have seen the mavlink_msg_att_pos_mocap.h ,but I don’t know how to use the defined functions ! Is there anyone have some tips for me ?Thank you !